diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-29 15:27:37 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-29 15:27:37 -0800 |
commit | 4f876565ff4ead7f0527bbcc6b9dce71654d3ed1 (patch) | |
tree | 9d030f59ff2d95765bcf54993f10bebf34a6cf15 /tools/test-js-optimizer-t2.js | |
parent | 85436a9cc37153035a069bfe8c2dedc18b262912 (diff) |
clean optimizeShifts
Diffstat (limited to 'tools/test-js-optimizer-t2.js')
-rw-r--r-- | tools/test-js-optimizer-t2.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/test-js-optimizer-t2.js b/tools/test-js-optimizer-t2.js index 55417ec0..ffda2703 100644 --- a/tools/test-js-optimizer-t2.js +++ b/tools/test-js-optimizer-t2.js @@ -60,10 +60,8 @@ function shifty($id) { pause(5); // loops count as more uses! var $res_spec242 = get($real), $cp = get('b'), $tileno = arguments[2]; - while (get(1)) { - q(HEAP32[($parameters_addr + 5624 + (($res_spec242 - 1 | 0) << 2) | 0) >> 2]); - q(HEAP32[(HEAP32[($cp + 108 | 0) >> 2] + $tileno * 5588 + 420 | 0) >> 2]); - } + q(HEAP32[($parameters_addr + 5624 + (($res_spec242 - 1 | 0) << 2) | 0) >> 2]); + q(HEAP32[(HEAP32[($cp + 108 | 0) >> 2] + $tileno * 5588 + 420 | 0) >> 2]); pause(6); q($idx << 1 << 2); q(1 << $idx << 1); // Do not turn this into the slower 1 << $idx + 1 (which is identical though) |