summaryrefslogtreecommitdiff
path: root/test/wasm2js.asserts.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-05-01 17:18:04 -0700
committerGitHub <noreply@github.com>2019-05-01 17:18:04 -0700
commitaf459403bc6e1bb99468ad05f351665143193082 (patch)
treefd6b0c2e0bd14822c3e3bb1e0f4a3b42c78bb56c /test/wasm2js.asserts.js
parent2bd3758a22131cfd6925b3fd995657b211095c90 (diff)
downloadbinaryen-af459403bc6e1bb99468ad05f351665143193082.tar.gz
binaryen-af459403bc6e1bb99468ad05f351665143193082.tar.bz2
binaryen-af459403bc6e1bb99468ad05f351665143193082.zip
wasm2js: don't run coalesce-locals if not optimizing (#2076)
That pass is very slow on unoptimized code (super-linear on the number of locals, which if unoptimized can be massive due to flatten).
Diffstat (limited to 'test/wasm2js.asserts.js')
-rw-r--r--test/wasm2js.asserts.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/wasm2js.asserts.js b/test/wasm2js.asserts.js
index 40d66a815..7cc3bde33 100644
--- a/test/wasm2js.asserts.js
+++ b/test/wasm2js.asserts.js
@@ -56,16 +56,16 @@ function asmFunc0(global, env, buffer) {
}
- function $1($0_1, $1_1) {
- $0_1 = $0_1 | 0;
- $1_1 = $1_1 | 0;
- return $0_1 + $1_1 | 0 | 0;
+ function $1(x, y) {
+ x = x | 0;
+ y = y | 0;
+ return x + y | 0 | 0;
}
- function $2($0_1, $1_1) {
- $0_1 = $0_1 | 0;
- $1_1 = $1_1 | 0;
- return ($0_1 | 0) / ($1_1 | 0) | 0 | 0;
+ function $2(x, y) {
+ x = x | 0;
+ y = y | 0;
+ return (x | 0) / (y | 0) | 0 | 0;
}
var FUNCTION_TABLE = [];