~ubuntu-branches/ubuntu/vivid/mozjs24/vivid

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/basic/testApplyInterpretLowered2.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* Make sure the interpreter can pop lowered frames pushed by CompileFunction. */
 
3
 
 
4
function recompile() {}
 
5
 
 
6
function bar() {
 
7
  for (var i = 0; i < 50; i++) {
 
8
    var foo = new Function("recompile(arguments[0] + " + i + "); return arguments[0]");
 
9
    assertEq(foo.apply(null, [i]), i);
 
10
  }
 
11
}
 
12
bar();