diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-13 15:22:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-13 15:22:28 -0700 |
commit | aff455b14835e51d540e878923b83695f8517a88 (patch) | |
tree | 6b622890282c64365b78591ae052bcedce7b4e12 /tools/test-js-optimizer-asm-pre.js | |
parent | d2317359b2bb02ed4c8f773867c470c5a92a181e (diff) |
avoid creating ~~~ (from ~~ ^ -1) which is confusing for asm given the role of ~~
Diffstat (limited to 'tools/test-js-optimizer-asm-pre.js')
-rw-r--r-- | tools/test-js-optimizer-asm-pre.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-asm-pre.js b/tools/test-js-optimizer-asm-pre.js index b762a60e..2e87224b 100644 --- a/tools/test-js-optimizer-asm-pre.js +++ b/tools/test-js-optimizer-asm-pre.js @@ -70,6 +70,7 @@ function b($this, $__n) { HEAP32[$4] = HEAP32[$5]^-1; // Rewrite to ~ and eliminate the |0. HEAP32[$4] = ((HEAP32[$5]|0)^-1)|0; + h((~~g) ^ -1); // do NOT convert this, as it would lead to ~~~ which is confusing in asm, given the role of ~~ return; } function rett() { |