summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1493900-1.js
blob: 643c1943d6c73b73c54b01a8a1133cea7b115c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function f() {
    var objs = [];
    for (var i = 0; i < 100; i++) {
        objs[i] = {};
    }
    var o = objs[0];
    var a = new Float64Array(1024);
    function g(a, b) {
        let p = b;
        for (; p.x < 0; p = p.x) {
            while (p === p) {}
        }
        for (var i = 0; i < 10000; ++i) {}
    }
    g(a, o);
}
f();