/js/src/jit-test/tests/basic/testApplyInterpretLowered.js
http://github.com/zpao/v8monkey · JavaScript · 15 lines · 11 code · 3 blank · 1 comment · 3 complexity · 7b8b10a8364c31b6e82a44a6697bf783 MD5 · raw file
- /* Read correct return value when the interpreter pops a lowered call/apply. */
- function recompile() {}
- function foo() {
- if (arguments[0] == 9)
- recompile();
- return arguments[0];
- }
- function bar() {
- for (var i = 0; i < 10; i++)
- assertEq(foo.apply(null, [i]), i);
- }
- bar();