summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bailout-inline-fun-call-no-args.js
blob: be888552e66d62609561540746b01c0c4ecffcbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// |jit-test| --fast-warmup; --no-threads

var iter = 0;

function foo() {
  var x = iter;
  bailout();
  return x;
}

function bar(x) {
  return foo.call();
}

with ({}) {}
for (var i = 0; i < 100; i++) {
  iter = i;
  assertEq(bar(), i);
}