summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1107011-2.js
blob: d59685ea05a25f0dfbd7c4615a179059b2d98cb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function foo() {
    var x = 0, y = 0, a = new Float32Array(1);
    function bar() {
        x = y;
        y = a[0];
    }
    for (var i = 0; i < 1000; i++) {
        bar();
    }
}
for (var i=0; i < 50; i++)
    foo();