diff options
author | Ryan Kelly <ryan@rfk.id.au> | 2014-01-23 22:30:42 +1100 |
---|---|---|
committer | Ryan Kelly <ryan@rfk.id.au> | 2014-01-23 22:37:37 +1100 |
commit | d55c07198d9aa3352cda6e44d73dc160e9a877fe (patch) | |
tree | fed8b3a4af3fa2ea7898adc19f93d560ad84b669 | |
parent | d21f2ea3adcd5c4f0d6e2ffaaa61f24dbb581737 (diff) |
Add TODO about more permissive label handling in registerizeHarder
-rw-r--r-- | tools/js-optimizer.js | 1 |
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 = []; |