blob: 07c61aba118924fbd3d2af35810eadc7e2cc8fda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
setJitCompilerOption("base-reg-for-locals", 0); // SP
function g(x) {
with (this) {} // Don't inline.
return x;
}
function f(x) {
var sum = 0;
for (var i = 0; i < x; i++) {
sum += g(i);
}
return sum;
}
assertEq(f(2000), 1999000);
|