Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | // Don't eliminate a phi if it has no SSA uses but its value is still |
michael@0 | 2 | // observable in the interpreter. |
michael@0 | 3 | var t1 = 100; |
michael@0 | 4 | function test1(x) { |
michael@0 | 5 | // g(x) is inlined with --ion-eager, but don't mark the phi |
michael@0 | 6 | // for x as unused. |
michael@0 | 7 | for (var i = 0; i < 90; i++) { |
michael@0 | 8 | f1(x); |
michael@0 | 9 | if (i >= 80) |
michael@0 | 10 | t1; |
michael@0 | 11 | } |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | function f1(x) {}; |
michael@0 | 15 | test1(2); |
michael@0 | 16 | |
michael@0 | 17 | var t2 = 100; |
michael@0 | 18 | function test2(g) { |
michael@0 | 19 | // g(x) is inlined with --ion-eager, but don't mark the phi |
michael@0 | 20 | // for g as unused. |
michael@0 | 21 | for (var i = 0; i < 90; i++) { |
michael@0 | 22 | g(); |
michael@0 | 23 | if (i >= 80) |
michael@0 | 24 | t2; |
michael@0 | 25 | } |
michael@0 | 26 | } |
michael@0 | 27 | |
michael@0 | 28 | function f2() {}; |
michael@0 | 29 | test2(f2); |