aboutsummaryrefslogtreecommitdiff
path: root/tools/eliminator
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-03 18:11:18 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-07 14:23:22 -0800
commit3a56e5d5cfaebe5c03a9126b66eb7b62188fb11c (patch)
treeba8901acf1ae188e83ac5f4c626c84a075a955b7 /tools/eliminator
parentbd9c3093f95947039d5e33aade6f5df1597ca9d5 (diff)
make eliminateAsm test be correct asm.js
Diffstat (limited to 'tools/eliminator')
-rw-r--r--tools/eliminator/asm-eliminator-test-output.js1
-rw-r--r--tools/eliminator/asm-eliminator-test.js3
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/eliminator/asm-eliminator-test-output.js b/tools/eliminator/asm-eliminator-test-output.js
index 10b881a5..af12b469 100644
--- a/tools/eliminator/asm-eliminator-test-output.js
+++ b/tools/eliminator/asm-eliminator-test-output.js
@@ -10,6 +10,7 @@ function __Z11printResultPiS_j($needle, $haystack, $len) {
$haystack = $haystack | 0;
$len = $len | 0;
var $3 = 0, __stackBase__ = 0;
+ __stackBase__ = STACKTOP;
$3 = _bsearch($needle, $haystack, $len, 4, 2);
if (($3 | 0) == 0) {
_puts(_str | 0);
diff --git a/tools/eliminator/asm-eliminator-test.js b/tools/eliminator/asm-eliminator-test.js
index 963fd9c8..f829b6bc 100644
--- a/tools/eliminator/asm-eliminator-test.js
+++ b/tools/eliminator/asm-eliminator-test.js
@@ -13,7 +13,8 @@ function __Z11printResultPiS_j($needle, $haystack, $len) {
$len = $len | 0;
var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $puts = 0, $7 = 0, $8 = 0, $9 = 0;
var label = 0;
- var __stackBase__ = STACKTOP;
+ var __stackBase__ = 0;
+ __stackBase__ = STACKTOP;
$1 = $needle;
$2 = $haystack;
$3 = _bsearch($1, $2, $len, 4, 2);