summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug901086.js
blob: 9725962e8ec56ae0a48354c0ffefdd98e69ad4c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
enableSPSProfiling();
function foo(obj,x,y,z) {
    if (!y)
	assertEq(0, 1);
    obj.x = x;
    return y + z;
}
function bar() {
    var objz = {x:2}
    for(var i = 0; i < 1100; i++) {
	foo(objz,1,2,3);
	foo(objz, false, "bar", "foo");
    }
}
bar();