aboutsummaryrefslogtreecommitdiff
path: root/tools/eliminator
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-03 18:09:59 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-07 14:23:22 -0800
commitbd9c3093f95947039d5e33aade6f5df1597ca9d5 (patch)
tree2dab60733c67ddb5751fde7722ee0d8872cd9f69 /tools/eliminator
parent61a8933a8df57a9bca285f8b14ab68fdf9da2c19 (diff)
add normalize/denormalizeAsm to js optimizer, fix eliminator for asm
Diffstat (limited to 'tools/eliminator')
-rw-r--r--tools/eliminator/asm-eliminator-test-output.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/eliminator/asm-eliminator-test-output.js b/tools/eliminator/asm-eliminator-test-output.js
index 6b15a0cb..10b881a5 100644
--- a/tools/eliminator/asm-eliminator-test-output.js
+++ b/tools/eliminator/asm-eliminator-test-output.js
@@ -9,17 +9,14 @@ function __Z11printResultPiS_j($needle, $haystack, $len) {
$needle = $needle | 0;
$haystack = $haystack | 0;
$len = $len | 0;
- var $3 = 0;
- var __stackBase__ = STACKTOP;
+ var $3 = 0, __stackBase__ = 0;
$3 = _bsearch($needle, $haystack, $len, 4, 2);
if (($3 | 0) == 0) {
- $puts = _puts(_str | 0);
+ _puts(_str | 0);
STACKTOP = __stackBase__;
return;
} else {
- $7 = $3;
- $8 = HEAP32[($7 & 16777215) >> 2] | 0;
- $9 = _printf(__str1 | 0, (tempInt = STACKTOP, STACKTOP = STACKTOP + 4 | 0, HEAP32[(tempInt & 16777215) >> 2] = $8, tempInt));
+ _printf(__str1 | 0, (tempInt = STACKTOP, STACKTOP = STACKTOP + 4 | 0, HEAP32[(tempInt & 16777215) >> 2] = HEAP32[($3 & 16777215) >> 2] | 0, tempInt));
STACKTOP = __stackBase__;
return;
}