aboutsummaryrefslogtreecommitdiff
path: root/tools/js-optimizer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-08 18:18:12 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-08 18:18:12 -0800
commiteb3ec20f8b8c78932d659ffdc6a1f5092a39d777 (patch)
treefe38161ba30f66bd7da106ed8202db4887398c4c /tools/js-optimizer.js
parentd041b0fe9f08069b5786d505cfe958899031b521 (diff)
fix registerize pass for float32
Diffstat (limited to 'tools/js-optimizer.js')
-rw-r--r--tools/js-optimizer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index cba31861..c69f7362 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -1930,7 +1930,7 @@ function registerize(ast) {
// we just use a fresh register to make sure we avoid this, but it could be
// optimized to check for safe registers (free, and not used in this loop level).
var varRegs = {}; // maps variables to the register they will use all their life
- var freeRegsClasses = asm ? [[], []] : []; // two classes for asm, one otherwise
+ var freeRegsClasses = asm ? [[], [], []] : []; // two classes for asm, one otherwise XXX - hardcoded length
var nextReg = 1;
var fullNames = {};
var loopRegs = {}; // for each loop nesting level, the list of bound variables