Skip to content

Commit 299309d

Browse files
committed
enabling ext ops in asmjs intr
adding a unittest adding the copyright and dealing with whitespaces and dup newlines fix formatting
1 parent 838b864 commit 299309d

4 files changed

Lines changed: 375 additions & 4 deletions

File tree

lib/Runtime/Language/InterpreterLoop.inl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ SWAP_BP_FOR_OPCODE:
233233
}
234234
case INTERPRETER_OPCODE::ExtendedMediumLayoutPrefix:
235235
{
236-
#ifndef INTERPRETER_ASMJS // Asmjs doesn't have any extended opcodes for now, remove that case
237236
ip = [this](const byte * ip) -> const byte *
238237
{
239238
INTERPRETER_OPCODE op = (INTERPRETER_OPCODE)(ReadByteOp<INTERPRETER_OPCODE>(ip
@@ -262,7 +261,6 @@ SWAP_BP_FOR_OPCODE:
262261
// Aborting the current interpreter loop to switch the profile mode
263262
return nullptr;
264263
}
265-
#endif
266264
#endif
267265
break;
268266
}
@@ -309,7 +307,6 @@ SWAP_BP_FOR_OPCODE:
309307
}
310308
case INTERPRETER_OPCODE::ExtendedLargeLayoutPrefix:
311309
{
312-
#ifndef INTERPRETER_ASMJS // Asmjs doesn't have any extended opcodes for now, remove that case
313310
ip = [this](const byte * ip) -> const byte *
314311
{
315312
INTERPRETER_OPCODE op = (INTERPRETER_OPCODE)(ReadByteOp<INTERPRETER_OPCODE>(ip
@@ -338,7 +335,6 @@ SWAP_BP_FOR_OPCODE:
338335
// Aborting the current interpreter loop to switch the profile mode
339336
return nullptr;
340337
}
341-
#endif
342338
#endif
343339
break;
344340
}

test/Bugs/rlexe.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,4 +299,12 @@
299299
<compile-flags> -bgjit- -simdjs -simd128typespec -asmjs- -mic:1 -lic:1 -off:simplejit</compile-flags>
300300
</default>
301301
</test>
302+
<test>
303+
<default>
304+
<files>testSimdManyVars.js</files>
305+
<baseline>testSimdManyVars.baseline</baseline>
306+
<tags>exclude_dynapogo,exclude_ship</tags>
307+
<compile-flags> -simdjs -asmjs -off:backend -testtrace:asmjs</compile-flags>
308+
</default>
309+
</test>
302310
</regress-exe>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Successfully compiled asm.js code
2+
PASS

0 commit comments

Comments
 (0)