summaryrefslogtreecommitdiff
path: root/test/wasm2js/f32.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-04-15 13:57:56 -0700
committerGitHub <noreply@github.com>2019-04-15 13:57:56 -0700
commit1e91e1b666cc76874732d27843d0048c15b6152b (patch)
tree67186c2b0370f77102cc2167b4676c3cc13203c6 /test/wasm2js/f32.2asm.js
parenta803c119f1a4babb7efc3dda0f475e1e87893475 (diff)
downloadbinaryen-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/f32.2asm.js')
-rw-r--r--test/wasm2js/f32.2asm.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/wasm2js/f32.2asm.js b/test/wasm2js/f32.2asm.js
index e8a12f19c..ff8f2d94a 100644
--- a/test/wasm2js/f32.2asm.js
+++ b/test/wasm2js/f32.2asm.js
@@ -119,6 +119,7 @@ function asmFunc(global, env, buffer) {
return Math_fround((wasm2js_f32$0 = Math_fround(Math_ceil(var$0)), wasm2js_f32$1 = Math_fround(Math_floor(var$0)), wasm2js_i32$0 = var$0 < Math_fround(0.0), wasm2js_i32$0 ? wasm2js_f32$0 : wasm2js_f32$1));
}
+ var FUNCTION_TABLE = [];
return {
add: $0,
sub: $1,