js/src/jit-test/tests/basic/testApplyInterpretLowered.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     2 /* Read correct return value when the interpreter pops a lowered call/apply. */
     4 function recompile() {}
     6 function foo() {
     7   if (arguments[0] == 9)
     8     recompile();
     9   return arguments[0];
    10 }
    11 function bar() {
    12   for (var i = 0; i < 10; i++)
    13     assertEq(foo.apply(null, [i]), i);
    14 }
    15 bar();

mercurial