summaryrefslogtreecommitdiff
path: root/test/wasm2js/func_ptrs.2asm.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/func_ptrs.2asm.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/func_ptrs.2asm.js')
-rw-r--r--test/wasm2js/func_ptrs.2asm.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/wasm2js/func_ptrs.2asm.js b/test/wasm2js/func_ptrs.2asm.js
index 1415c414f..5ad0aff27 100644
--- a/test/wasm2js/func_ptrs.2asm.js
+++ b/test/wasm2js/func_ptrs.2asm.js
@@ -32,9 +32,9 @@ function asmFunc(global, env, buffer) {
return $0 + 1 | 0 | 0;
}
- function $5($0) {
- $0 = $0 | 0;
- return $0 - 2 | 0 | 0;
+ function $5(a) {
+ a = a | 0;
+ return a - 2 | 0 | 0;
}
function $6($0) {
@@ -100,14 +100,14 @@ function asmFunc(global, env, buffer) {
return 5 | 0;
}
- function $5($0) {
- $0 = $0 | 0;
- return FUNCTION_TABLE[$0]() | 0 | 0;
+ function $5(i) {
+ i = i | 0;
+ return FUNCTION_TABLE[i]() | 0 | 0;
}
- function $6($0) {
- $0 = $0 | 0;
- return FUNCTION_TABLE[$0]() | 0 | 0;
+ function $6(i) {
+ i = i | 0;
+ return FUNCTION_TABLE[i]() | 0 | 0;
}
var FUNCTION_TABLE = [t1, t2, t3, u1, u2, t1, t3];
@@ -152,9 +152,9 @@ function asmFunc(global, env, buffer) {
return 2 | 0;
}
- function $2($0) {
- $0 = $0 | 0;
- return FUNCTION_TABLE[$0]() | 0 | 0;
+ function $2(i) {
+ i = i | 0;
+ return FUNCTION_TABLE[i]() | 0 | 0;
}
var FUNCTION_TABLE = [t1, t2];