diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-26 17:42:39 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-27 13:50:01 -0700 |
commit | 14d6b2cdab8e48deddb2b114c47406bcb1796b3a (patch) | |
tree | 0d3e45899feba230080399b83641d881c37555fd /tools/test-js-optimizer-t2c.js | |
parent | 9ce739dbabb00ce0391c3790253fa686edb0a006 (diff) |
remove stack parameter from js optimizer traverse(), to avoid overhead when not needed
Diffstat (limited to 'tools/test-js-optimizer-t2c.js')
-rw-r--r-- | tools/test-js-optimizer-t2c.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tools/test-js-optimizer-t2c.js b/tools/test-js-optimizer-t2c.js deleted file mode 100644 index 85292ba5..00000000 --- a/tools/test-js-optimizer-t2c.js +++ /dev/null @@ -1,18 +0,0 @@ -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 -} -// EMSCRIPTEN_GENERATED_FUNCTIONS: ["shifty"] |