diff options
author | max99x <max99x@gmail.com> | 2011-08-28 13:11:17 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-08-28 13:11:17 +0300 |
commit | 36a03b4ea08c7423c45a56bb7ee5e46c5a150a50 (patch) | |
tree | 7d446d1061d127ae0ce34316858f7c947d27c24d /tools/eliminator/eliminator-test-output.js | |
parent | 19458449a6c3eca2f63bdaae134173a000a89ce0 (diff) |
Eliminator: prevent inlining into loops & fix for circular dependencies.
Diffstat (limited to 'tools/eliminator/eliminator-test-output.js')
-rw-r--r-- | tools/eliminator/eliminator-test-output.js | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/tools/eliminator/eliminator-test-output.js b/tools/eliminator/eliminator-test-output.js index 1480f5e5..19faa80d 100644 --- a/tools/eliminator/eliminator-test-output.js +++ b/tools/eliminator/eliminator-test-output.js @@ -10,7 +10,7 @@ var g = function(a1, a2) { var c = a * 2 - 1; - a++; + a = c; foo(c); foo(2); @@ -62,6 +62,16 @@ function h() { x = y ? x + 1 : 7; var x = -5; } + + if (1) { + otherGlob = glob; + breakMe(); + } + var oneUse2 = glob2; + while (1) { + otherGlob2 = oneUse2; + breakMe(); + } return out; } function strtok_part(b, j, f) { @@ -77,7 +87,7 @@ function strtok_part(b, j, f) { function py() { - - - HEAP[HEAP[__PyThreadState_Current] + 12] = HEAP[HEAP[__PyThreadState_Current] + 12] + 1; + var $7 = HEAP[HEAP[__PyThreadState_Current] + 12] + 1; + var $8 = HEAP[__PyThreadState_Current] + 12; + HEAP[$8] = $7; } |