summaryrefslogtreecommitdiff
path: root/test/wasm2js/emscripten.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-04-22 14:46:42 -0700
committerGitHub <noreply@github.com>2019-04-22 14:46:42 -0700
commit711a22c65f28029ae0ca2d31a0cd6f8be9b953c7 (patch)
tree26b2db972bf4c4a2bf8041e07609cc0dd07a7eb5 /test/wasm2js/emscripten.2asm.js
parentff710e63eaed7cf8fbf3042843f6243597da49be (diff)
downloadbinaryen-711a22c65f28029ae0ca2d31a0cd6f8be9b953c7.tar.gz
binaryen-711a22c65f28029ae0ca2d31a0cd6f8be9b953c7.tar.bz2
binaryen-711a22c65f28029ae0ca2d31a0cd6f8be9b953c7.zip
wasm2js: get rid of some non-flat code assumptions (#2036)
We run flatten there, which lets us simplify things a lot. Turns out that for assertions we didn't run it, which is why we still needed the old non-flat code paths. This adds flatten there and removes that old code and assumptions.
Diffstat (limited to 'test/wasm2js/emscripten.2asm.js')
-rw-r--r--test/wasm2js/emscripten.2asm.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/wasm2js/emscripten.2asm.js b/test/wasm2js/emscripten.2asm.js
index b0509ebb6..a0639aad0 100644
--- a/test/wasm2js/emscripten.2asm.js
+++ b/test/wasm2js/emscripten.2asm.js
@@ -30,8 +30,7 @@ function asmFunc(global, env, buffer) {
var wasm2js_i32$0 = 0;
syscall$6(1 | 0, 2 | 0) | 0;
syscall$54(3 | 0, 4 | 0) | 0;
- wasm2js_i32$0 = HEAP32[(0 + 1030 | 0) >> 2] | 0;
- FUNCTION_TABLE[wasm2js_i32$0]();
+ wasm2js_i32$0 = HEAP32[(0 + 1030 | 0) >> 2] | 0, FUNCTION_TABLE[wasm2js_i32$0]();
}
function other() {