diff options
author | Alon Zakai <alonzakai@gmail.com> | 2019-04-15 13:57:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-15 13:57:56 -0700 |
commit | 1e91e1b666cc76874732d27843d0048c15b6152b (patch) | |
tree | 67186c2b0370f77102cc2167b4676c3cc13203c6 /test/wasm2js/br.2asm.js | |
parent | a803c119f1a4babb7efc3dda0f475e1e87893475 (diff) | |
download | binaryen-1e91e1b666cc76874732d27843d0048c15b6152b.tar.gz binaryen-1e91e1b666cc76874732d27843d0048c15b6152b.tar.bz2 binaryen-1e91e1b666cc76874732d27843d0048c15b6152b.zip |
Use a single table in wasm2js (#2005)
This replaces the multiple asm.js tables (of power-of-2 size) with a single simple table.
Also supports importing the table.
Diffstat (limited to 'test/wasm2js/br.2asm.js')
-rw-r--r-- | test/wasm2js/br.2asm.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/wasm2js/br.2asm.js b/test/wasm2js/br.2asm.js index ba323f2d6..90c9194ea 100644 --- a/test/wasm2js/br.2asm.js +++ b/test/wasm2js/br.2asm.js @@ -601,7 +601,7 @@ function asmFunc(global, env, buffer) { return i64toi32_i32$4 | 0; } - var FUNCTION_TABLE_iiii = [f]; + var FUNCTION_TABLE = [f]; return { type_i32: $1, type_i64: $2, @@ -750,6 +750,7 @@ function asmFunc(global, env, buffer) { } + var FUNCTION_TABLE = []; return { }; |