summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug754713-1.js
blob: cfe4dfe87740e7d05aff517a68384238117ac90c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Don't eliminate a phi if it has no SSA uses but its value is still
// observable in the interpreter.
var t = 100;
function foo(ox) {
    var x = ox;
    var n = 0;
    for (var i = 0; i < 90; i++) {
        n += x.f.g;
        if (i >= 80)
            t;
    }
}
function f() {}
function g() {}
f.prototype = {f:g};
foo(new f());