aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-16 10:06:30 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-16 10:06:30 -0800
commit58132ad51111bcb024f7a9f2bdce970324c05e00 (patch)
tree0a509eb56ead2fed56e4f4f2432387ed1b75903e /tools/test-js-optimizer.js
parent22dc3bb223334137a3b7c77906b8960a9197be7a (diff)
improve side effect detection in js optimizer
Diffstat (limited to 'tools/test-js-optimizer.js')
-rw-r--r--tools/test-js-optimizer.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/test-js-optimizer.js b/tools/test-js-optimizer.js
index f9c499f4..95985bc8 100644
--- a/tools/test-js-optimizer.js
+++ b/tools/test-js-optimizer.js
@@ -216,6 +216,16 @@ function hoisting() {
var $79 = $_pr6;
}
} while (0);
+ pause(9);
+ var $cmp70 = ($call69 | 0) != 0;
+ if ($cmp70) {
+ __label__ = 40;
+ } else {
+ __label__ = 41;
+ }
+ $if_then72$$if_end73$126 : do {
+ if (__label__ == 40) {} else if (__label__ == 41) {}
+ } while (0);
}
function innerShouldAlsoBeHoisted() {
function hoisting() {