diff options
Diffstat (limited to 'test/wasm2js')
-rw-r--r-- | test/wasm2js/dot_import.2asm.js | 6 | ||||
-rw-r--r-- | test/wasm2js/dot_import.2asm.js.opt | 6 | ||||
-rw-r--r-- | test/wasm2js/emscripten.2asm.js | 6 | ||||
-rw-r--r-- | test/wasm2js/emscripten.2asm.js.opt | 6 | ||||
-rw-r--r-- | test/wasm2js/func_ptrs.2asm.js | 7 |
5 files changed, 26 insertions, 5 deletions
diff --git a/test/wasm2js/dot_import.2asm.js b/test/wasm2js/dot_import.2asm.js index 0cd48aaf1..a35eabe95 100644 --- a/test/wasm2js/dot_import.2asm.js +++ b/test/wasm2js/dot_import.2asm.js @@ -13,8 +13,12 @@ function asmFunc(imports) { var Math_sqrt = Math.sqrt; var mod_ule = imports["mod.ule"]; var base = mod_ule["ba.se"]; + function $0() { + base(); + } + return { - "exported": base + "exported": $0 }; } diff --git a/test/wasm2js/dot_import.2asm.js.opt b/test/wasm2js/dot_import.2asm.js.opt index 0cd48aaf1..a35eabe95 100644 --- a/test/wasm2js/dot_import.2asm.js.opt +++ b/test/wasm2js/dot_import.2asm.js.opt @@ -13,8 +13,12 @@ function asmFunc(imports) { var Math_sqrt = Math.sqrt; var mod_ule = imports["mod.ule"]; var base = mod_ule["ba.se"]; + function $0() { + base(); + } + return { - "exported": base + "exported": $0 }; } diff --git a/test/wasm2js/emscripten.2asm.js b/test/wasm2js/emscripten.2asm.js index 52412f676..8ba8564ce 100644 --- a/test/wasm2js/emscripten.2asm.js +++ b/test/wasm2js/emscripten.2asm.js @@ -61,6 +61,10 @@ function asmFunc(imports) { exported(1 | 0) | 0; } + function other() { + main(); + } + function foo() { wasm2js_trap(); } @@ -218,7 +222,7 @@ function asmFunc(imports) { return { "main": main, - "other": main, + "other": other, "__growWasmMemory": __growWasmMemory, "exported": exported, "sub_zero": sub_zero, diff --git a/test/wasm2js/emscripten.2asm.js.opt b/test/wasm2js/emscripten.2asm.js.opt index 1faf11933..caef23896 100644 --- a/test/wasm2js/emscripten.2asm.js.opt +++ b/test/wasm2js/emscripten.2asm.js.opt @@ -70,6 +70,10 @@ function asmFunc(imports) { FUNCTION_TABLE[HEAP32[257]](); } + function other() { + main(); + } + function foo() { wasm2js_trap(); } @@ -213,7 +217,7 @@ function asmFunc(imports) { return { "main": main, - "other": main, + "other": other, "__growWasmMemory": __growWasmMemory, "exported": internal, "sub_zero": sub_zero, diff --git a/test/wasm2js/func_ptrs.2asm.js b/test/wasm2js/func_ptrs.2asm.js index ccd220152..4b7c4fd44 100644 --- a/test/wasm2js/func_ptrs.2asm.js +++ b/test/wasm2js/func_ptrs.2asm.js @@ -27,11 +27,16 @@ function asmFunc(imports) { return a - 2 | 0 | 0; } + function $6($0) { + $0 = $0 | 0; + print($0 | 0); + } + return { "one": $3, "two": $4, "three": $5, - "four": print + "four": $6 }; } |