diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-08 18:18:12 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-08 18:18:12 -0800 |
commit | eb3ec20f8b8c78932d659ffdc6a1f5092a39d777 (patch) | |
tree | fe38161ba30f66bd7da106ed8202db4887398c4c /tools/js-optimizer.js | |
parent | d041b0fe9f08069b5786d505cfe958899031b521 (diff) |
fix registerize pass for float32
Diffstat (limited to 'tools/js-optimizer.js')
-rw-r--r-- | tools/js-optimizer.js | 2 |
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 |