aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-03 11:39:31 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-03 11:39:31 -0800
commite02fa83807fef1a78292daf12c94255ac7127134 (patch)
tree7e1da55995c8a4e019a863bb1e1e0ed1db57ca57 /tools/test-js-optimizer.js
parentf6e838357b58559ac376c7975f64b87da5a52b0a (diff)
remove label setting when we get to a single entry, even if the label setting is not in a block by itself
Diffstat (limited to 'tools/test-js-optimizer.js')
-rw-r--r--tools/test-js-optimizer.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/test-js-optimizer.js b/tools/test-js-optimizer.js
index 0b7d7702..155aa647 100644
--- a/tools/test-js-optimizer.js
+++ b/tools/test-js-optimizer.js
@@ -314,5 +314,28 @@ function moreLabels() {
} while (0);
$if_then$$for_inc$5 : do {} while (0);
}
+ pause(999);
+ $while_body$$while_end$31 : do {
+ if ($cmp3) {
+ var $6 = $5;
+ {
+ while (1) {
+ var $6;
+ $iter = $6 + 3;
+ if (FHEAP[$iter + 1] < $pct_addr) {
+ var $6 = $iter;
+ } else {
+ var $_lcssa = $iter;
+ break $while_body$$while_end$31;
+ }
+ }
+ }
+ } else {
+ var $_lcssa = $5;
+ __label__ = 2;
+ }
+ } while (0);
+ var $_lcssa;
+ cheez();
}
// EMSCRIPTEN_GENERATED_FUNCTIONS: ["abc", "xyz", "xyz2", "expr", "loopy", "bits", "maths", "hoisting", "demangle", "lua", "moreLabels"]