aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/js-optimizer.js2
-rw-r--r--tools/test-js-optimizer-asm-pre-output.js1
-rw-r--r--tools/test-js-optimizer-asm-pre.js1
3 files changed, 3 insertions, 1 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index 862b39eb..b02ae3cc 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -459,7 +459,7 @@ function simplifyExpressionsPre(ast) {
go = true;
}
if (!go) {
- stack.push(2);
+ stack.push(1);
return;
}
// We might be able to remove this correction
diff --git a/tools/test-js-optimizer-asm-pre-output.js b/tools/test-js-optimizer-asm-pre-output.js
index 1716059f..0e95580f 100644
--- a/tools/test-js-optimizer-asm-pre-output.js
+++ b/tools/test-js-optimizer-asm-pre-output.js
@@ -18,6 +18,7 @@ function a() {
f(g() | 0);
f(g() | 0 & -1);
f((g() | 0) >> 2);
+ $56 = _fcntl() | 0 | 1;
}
function b($this, $__n) {
$this = $this | 0;
diff --git a/tools/test-js-optimizer-asm-pre.js b/tools/test-js-optimizer-asm-pre.js
index 14531c23..4f3ba780 100644
--- a/tools/test-js-optimizer-asm-pre.js
+++ b/tools/test-js-optimizer-asm-pre.js
@@ -19,6 +19,7 @@ function a() {
f(g() | 0 | 0);
f(g() | 0 & -1);
f((g() | 0) >> 2);
+ $56 = (_fcntl() | 0) | 1;
}
function b($this, $__n) {
$this = $this | 0;