diff options
author | Alon Zakai <azakai@google.com> | 2019-05-01 10:43:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 10:43:01 -0700 |
commit | 73709b4da08d285c2237c8c23a54ba53274c0c7f (patch) | |
tree | 2f428e5367c511b22391a8c471edbc0e7ed0688a /test/wasm2js/hello_world.2asm.js | |
parent | ac93469d7fde75397403db94d9bf0c1bac0cf60f (diff) | |
download | binaryen-73709b4da08d285c2237c8c23a54ba53274c0c7f.tar.gz binaryen-73709b4da08d285c2237c8c23a54ba53274c0c7f.tar.bz2 binaryen-73709b4da08d285c2237c8c23a54ba53274c0c7f.zip |
wasm2js: run more optimizations (#2073)
In particular, coalesce-locals is useful even if closure is run later (apparently it finds stuff closure can't).
Diffstat (limited to 'test/wasm2js/hello_world.2asm.js')
-rw-r--r-- | test/wasm2js/hello_world.2asm.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/wasm2js/hello_world.2asm.js b/test/wasm2js/hello_world.2asm.js index 45dc5d7db..f3e0d33bb 100644 --- a/test/wasm2js/hello_world.2asm.js +++ b/test/wasm2js/hello_world.2asm.js @@ -21,10 +21,10 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function add(x, y) { - x = x | 0; - y = y | 0; - return x + y | 0 | 0; + function add($0, $1) { + $0 = $0 | 0; + $1 = $1 | 0; + return $0 + $1 | 0 | 0; } var FUNCTION_TABLE = []; |