diff options
author | jgravelle-google <jgravelle@google.com> | 2017-02-23 07:27:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-23 07:27:08 -0800 |
commit | 7e133b55c7babaabb83fc0f665b4a60022d4b8fb (patch) | |
tree | 74f9f3e15b39f37c0aa125b9c60da31b7b0541f7 /test | |
parent | 38a029f5b697878d13e41d5ecdc6c5fa69837b77 (diff) | |
download | binaryen-7e133b55c7babaabb83fc0f665b4a60022d4b8fb.tar.gz binaryen-7e133b55c7babaabb83fc0f665b4a60022d4b8fb.tar.bz2 binaryen-7e133b55c7babaabb83fc0f665b4a60022d4b8fb.zip |
Fully handle EM_ASM in s2wasm (#910)
* Fully handle EM_ASM in s2wasm
* Iterate with size_ts, remember to erase from importsMap as well
* Fix dot_s test EM_ASM signatures
* Move Name out to its own file, support/name.h
* Move removeImportsWithSubstring out of Module class
Diffstat (limited to 'test')
-rw-r--r-- | test/dot_s/asm_const.wast | 6 | ||||
-rw-r--r-- | test/dot_s/memops.wast | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/dot_s/asm_const.wast b/test/dot_s/asm_const.wast index c9c8c638d..8580c63d6 100644 --- a/test/dot_s/asm_const.wast +++ b/test/dot_s/asm_const.wast @@ -1,12 +1,12 @@ (module (type $FUNCSIG$vi (func (param i32))) (import "env" "memory" (memory $0 1)) - (import "env" "emscripten_asm_const_vi" (func $emscripten_asm_const_vi (param i32))) + (import "env" "emscripten_asm_const_v" (func $emscripten_asm_const_v (param i32))) (table 0 anyfunc) (data (i32.const 16) "{ Module.print(\"hello, world!\"); }\00") (export "main" (func $main)) (func $main (result i32) - (call $emscripten_asm_const_vi + (call $emscripten_asm_const_v (i32.const 0) ) (return @@ -14,4 +14,4 @@ ) ) ) -;; METADATA: { "asmConsts": {"0": ["{ Module.print(\"hello, world!\"); }", ["vi"]]},"staticBump": 51, "initializers": [] } +;; METADATA: { "asmConsts": {"0": ["{ Module.print(\"hello, world!\"); }", ["v"]]},"staticBump": 51, "initializers": [] } diff --git a/test/dot_s/memops.wast b/test/dot_s/memops.wast index bb55b5b51..073b5178a 100644 --- a/test/dot_s/memops.wast +++ b/test/dot_s/memops.wast @@ -1,7 +1,7 @@ (module (type $FUNCSIG$vi (func (param i32))) (import "env" "memory" (memory $0 1)) - (import "env" "emscripten_asm_const_vi" (func $emscripten_asm_const_vi (param i32))) + (import "env" "emscripten_asm_const_v" (func $emscripten_asm_const_v (param i32))) (table 0 anyfunc) (data (i32.const 16) "{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }\00") (export "main" (func $main)) @@ -10,7 +10,7 @@ (i32.const 8) (get_local $0) ) - (call $emscripten_asm_const_vi + (call $emscripten_asm_const_v (i32.const 0) ) (return) @@ -206,4 +206,4 @@ ) ) ) -;; METADATA: { "asmConsts": {"0": ["{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }", ["vi"]]},"staticBump": 67, "initializers": [] } +;; METADATA: { "asmConsts": {"0": ["{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }", ["v"]]},"staticBump": 67, "initializers": [] } |