summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bailout-with-object-or-null.js
blob: 260a20933d8ca0bb6349941f3ed97fbe703c7eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function foo(p) {
    this.f = p;
}
function use(v, a, b) {
    var f = v.f;
    g = f;
    g = a + b;
    if (f != null)
        return;
}

with({}){}

for (var i = 0; i < 2000; i++)
    use(new foo(i % 2 ? {} : null), 1, 2);
use(new foo(null), 2147483548, 1000);