aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kelly <ryan@rfk.id.au>2014-01-23 22:30:42 +1100
committerRyan Kelly <ryan@rfk.id.au>2014-01-23 22:37:37 +1100
commitd55c07198d9aa3352cda6e44d73dc160e9a877fe (patch)
treefed8b3a4af3fa2ea7898adc19f93d560ad84b669
parentd21f2ea3adcd5c4f0d6e2ffaaa61f24dbb581737 (diff)
Add TODO about more permissive label handling in registerizeHarder
-rw-r--r--tools/js-optimizer.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index abb854c6..21d521fd 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -2597,6 +2597,7 @@ function registerizeHarder(ast) {
if (labelCond && labelCond[0] === '==') {
// If there are multiple blocks with the same label, all bets are off.
// This seems to happen sometimes for short blocks that end with a return.
+ // TODO: it should be safe to merge the duplicates if they're identical.
if (labelCond[1] in labelledBlocks) {
labelledBlocks = {};
labelledJumps = [];