diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-26 10:23:08 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-26 10:23:08 -0700 |
commit | 18a6854c28e0fcef76f31a5c552cc3a189213625 (patch) | |
tree | f4e97d5f10df57559bd7cc087cbf2d7af08115e1 /tools/test-js-optimizer-t2c.js | |
parent | c3ed656997ea4515d846debf45121af1bd174a51 (diff) | |
parent | 493d0dcf303d66726be5bb08c187f8183ee96a65 (diff) |
Merge branch 'incoming'
Diffstat (limited to 'tools/test-js-optimizer-t2c.js')
-rw-r--r-- | tools/test-js-optimizer-t2c.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tools/test-js-optimizer-t2c.js b/tools/test-js-optimizer-t2c.js index 52e9b4f9..85292ba5 100644 --- a/tools/test-js-optimizer-t2c.js +++ b/tools/test-js-optimizer-t2c.js @@ -1,18 +1,18 @@ function shifty() { - $pPage = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2) >> 2]; - var $ead_192394 = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2) >> 2]; - $pPage2 = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2)]; - var $ead_192394b = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2)]; - $pPage2 = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16)]; - var $ead_192394b = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16)]; - // We prefer to do additions then shifts, so the shift happens last, because the shift output is known to be 32-bit. So these should not change - q(16 >> 2); - q($13 + 8 >> 2); - q(28 + $13 >> 2); - q(48 + $13 + 12 >> 2); - q($13 + $15 + 12 >> 2); - q(HEAPF32[$output + ($j37 << 4) + 4 >> 2]); - q(5 + $13 + 8 << 2); - q(((h() | 0) >> 2) << 2); // removing the shifts is dangerous + $pPage = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2) >> 2]; + var $ead_192394 = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2) >> 2]; + $pPage2 = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2)]; + var $ead_192394b = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2)]; + $pPage2 = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16)]; + var $ead_192394b = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16)]; + // We prefer to do additions then shifts, so the shift happens last, because the shift output is known to be 32-bit. So these should not change + q(16 >> 2); + q($13 + 8 >> 2); + q(28 + $13 >> 2); + q(48 + $13 + 12 >> 2); + q($13 + $15 + 12 >> 2); + q(HEAPF32[$output + ($j37 << 4) + 4 >> 2]); + q(5 + $13 + 8 << 2); + q(((h() | 0) >> 2) << 2); // removing the shifts is dangerous } // EMSCRIPTEN_GENERATED_FUNCTIONS: ["shifty"] |