summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lld/duplicate_imports.wast.out38
-rw-r--r--test/lld/em_asm.wast.out41
-rw-r--r--test/lld/em_asm_table.wast.out32
-rw-r--r--test/lld/hello_world.wast.mem.out37
-rw-r--r--test/lld/hello_world.wast.out37
-rw-r--r--test/lld/init.wast.out36
-rw-r--r--test/lld/recursive.wast.out37
-rw-r--r--test/lld/reserved_func_ptr.wast.jscall.out48
-rw-r--r--test/lld/reserved_func_ptr.wast.out39
9 files changed, 336 insertions, 9 deletions
diff --git a/test/lld/duplicate_imports.wast.out b/test/lld/duplicate_imports.wast.out
index 996a419fa..3edf1a8a7 100644
--- a/test/lld/duplicate_imports.wast.out
+++ b/test/lld/duplicate_imports.wast.out
@@ -101,4 +101,40 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 13, "initializers": ["__post_instantiate"], "declares": ["puts"], "externs": [], "implementedFunctions": ["___post_instantiate","_main","_stackSave","_stackAlloc","_stackRestore","___growWasmMemory"], "exports": ["memory","__post_instantiate","main","__heap_base","__data_end","stackSave","stackAlloc","stackRestore","__growWasmMemory"], "invokeFuncs": ["invoke_ffd"] }
+(;
+--BEGIN METADATA --
+{
+ "staticBump": 13,
+ "initializers": [
+ "__post_instantiate"
+ ],
+ "declares": [
+ "puts"
+ ],
+ "externs": [
+ ],
+ "implementedFunctions": [
+ "___post_instantiate",
+ "_main",
+ "_stackSave",
+ "_stackAlloc",
+ "_stackRestore",
+ "___growWasmMemory"
+ ],
+ "exports": [
+ "memory",
+ "__post_instantiate",
+ "main",
+ "__heap_base",
+ "__data_end",
+ "stackSave",
+ "stackAlloc",
+ "stackRestore",
+ "__growWasmMemory"
+ ],
+ "invokeFuncs": [
+ "invoke_ffd"
+ ]
+}
+-- END METADATA --
+;)
diff --git a/test/lld/em_asm.wast.out b/test/lld/em_asm.wast.out
index f878bb9cf..bceda9a75 100644
--- a/test/lld/em_asm.wast.out
+++ b/test/lld/em_asm.wast.out
@@ -75,4 +75,43 @@
)
)
)
-;; METADATA: { "asmConsts": {"2": ["{ Module.print(\"Got \" + $0); }", ["ii"], [""]],"0": ["{ Module.print(\"Hello world\"); }", ["i"], [""]],"1": ["{ return $0 + $1; }", ["iii"], [""]]},"staticBump": 84, "initializers": ["__post_instantiate"], "declares": [], "externs": [], "implementedFunctions": ["___post_instantiate","_main","_stackSave","_stackAlloc","_stackRestore","___growWasmMemory"], "exports": ["memory","__post_instantiate","main","__heap_base","__data_end","stackSave","stackAlloc","stackRestore","__growWasmMemory"], "invokeFuncs": [] }
+(;
+--BEGIN METADATA --
+{
+ "asmConsts": {
+ "2": ["{ Module.print(\"Got \" + $0); }", ["ii"], [""]],
+ "0": ["{ Module.print(\"Hello world\"); }", ["i"], [""]],
+ "1": ["{ return $0 + $1; }", ["iii"], [""]]
+ },
+ "staticBump": 84,
+ "initializers": [
+ "__post_instantiate"
+ ],
+ "declares": [
+ ],
+ "externs": [
+ ],
+ "implementedFunctions": [
+ "___post_instantiate",
+ "_main",
+ "_stackSave",
+ "_stackAlloc",
+ "_stackRestore",
+ "___growWasmMemory"
+ ],
+ "exports": [
+ "memory",
+ "__post_instantiate",
+ "main",
+ "__heap_base",
+ "__data_end",
+ "stackSave",
+ "stackAlloc",
+ "stackRestore",
+ "__growWasmMemory"
+ ],
+ "invokeFuncs": [
+ ]
+}
+-- END METADATA --
+;)
diff --git a/test/lld/em_asm_table.wast.out b/test/lld/em_asm_table.wast.out
index 8d99e9a6f..be0d1a794 100644
--- a/test/lld/em_asm_table.wast.out
+++ b/test/lld/em_asm_table.wast.out
@@ -61,4 +61,34 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 480, "initializers": [], "declares": ["emscripten_log"], "externs": [], "implementedFunctions": ["_stackSave","_stackAlloc","_stackRestore","___growWasmMemory","_dynCall_vii","_dynCall_iiii"], "exports": ["__data_end","stackSave","stackAlloc","stackRestore","__growWasmMemory","dynCall_vii","dynCall_iiii"], "invokeFuncs": [] }
+(;
+--BEGIN METADATA --
+{
+ "staticBump": 480,
+ "declares": [
+ "emscripten_log"
+ ],
+ "externs": [
+ ],
+ "implementedFunctions": [
+ "_stackSave",
+ "_stackAlloc",
+ "_stackRestore",
+ "___growWasmMemory",
+ "_dynCall_vii",
+ "_dynCall_iiii"
+ ],
+ "exports": [
+ "__data_end",
+ "stackSave",
+ "stackAlloc",
+ "stackRestore",
+ "__growWasmMemory",
+ "dynCall_vii",
+ "dynCall_iiii"
+ ],
+ "invokeFuncs": [
+ ]
+}
+-- END METADATA --
+;)
diff --git a/test/lld/hello_world.wast.mem.out b/test/lld/hello_world.wast.mem.out
index b38b7ff3e..2a8a0a062 100644
--- a/test/lld/hello_world.wast.mem.out
+++ b/test/lld/hello_world.wast.mem.out
@@ -58,4 +58,39 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 13, "initializers": ["__post_instantiate"], "declares": ["puts"], "externs": [], "implementedFunctions": ["___post_instantiate","_main","_stackSave","_stackAlloc","_stackRestore","___growWasmMemory"], "exports": ["memory","__post_instantiate","main","__heap_base","__data_end","stackSave","stackAlloc","stackRestore","__growWasmMemory"], "invokeFuncs": [] }
+(;
+--BEGIN METADATA --
+{
+ "staticBump": 13,
+ "initializers": [
+ "__post_instantiate"
+ ],
+ "declares": [
+ "puts"
+ ],
+ "externs": [
+ ],
+ "implementedFunctions": [
+ "___post_instantiate",
+ "_main",
+ "_stackSave",
+ "_stackAlloc",
+ "_stackRestore",
+ "___growWasmMemory"
+ ],
+ "exports": [
+ "memory",
+ "__post_instantiate",
+ "main",
+ "__heap_base",
+ "__data_end",
+ "stackSave",
+ "stackAlloc",
+ "stackRestore",
+ "__growWasmMemory"
+ ],
+ "invokeFuncs": [
+ ]
+}
+-- END METADATA --
+;)
diff --git a/test/lld/hello_world.wast.out b/test/lld/hello_world.wast.out
index 40fd6a1fe..e20a58d16 100644
--- a/test/lld/hello_world.wast.out
+++ b/test/lld/hello_world.wast.out
@@ -59,4 +59,39 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 13, "initializers": ["__post_instantiate"], "declares": ["puts"], "externs": [], "implementedFunctions": ["___post_instantiate","_main","_stackSave","_stackAlloc","_stackRestore","___growWasmMemory"], "exports": ["memory","__post_instantiate","main","__heap_base","__data_end","stackSave","stackAlloc","stackRestore","__growWasmMemory"], "invokeFuncs": [] }
+(;
+--BEGIN METADATA --
+{
+ "staticBump": 13,
+ "initializers": [
+ "__post_instantiate"
+ ],
+ "declares": [
+ "puts"
+ ],
+ "externs": [
+ ],
+ "implementedFunctions": [
+ "___post_instantiate",
+ "_main",
+ "_stackSave",
+ "_stackAlloc",
+ "_stackRestore",
+ "___growWasmMemory"
+ ],
+ "exports": [
+ "memory",
+ "__post_instantiate",
+ "main",
+ "__heap_base",
+ "__data_end",
+ "stackSave",
+ "stackAlloc",
+ "stackRestore",
+ "__growWasmMemory"
+ ],
+ "invokeFuncs": [
+ ]
+}
+-- END METADATA --
+;)
diff --git a/test/lld/init.wast.out b/test/lld/init.wast.out
index 3c9afa227..fb944aff4 100644
--- a/test/lld/init.wast.out
+++ b/test/lld/init.wast.out
@@ -71,4 +71,38 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 8, "initializers": ["__post_instantiate"], "declares": [], "externs": [], "implementedFunctions": ["___post_instantiate","_main","_stackSave","_stackAlloc","_stackRestore","___growWasmMemory"], "exports": ["memory","__post_instantiate","main","__heap_base","__data_end","stackSave","stackAlloc","stackRestore","__growWasmMemory"], "invokeFuncs": [] }
+(;
+--BEGIN METADATA --
+{
+ "staticBump": 8,
+ "initializers": [
+ "__post_instantiate"
+ ],
+ "declares": [
+ ],
+ "externs": [
+ ],
+ "implementedFunctions": [
+ "___post_instantiate",
+ "_main",
+ "_stackSave",
+ "_stackAlloc",
+ "_stackRestore",
+ "___growWasmMemory"
+ ],
+ "exports": [
+ "memory",
+ "__post_instantiate",
+ "main",
+ "__heap_base",
+ "__data_end",
+ "stackSave",
+ "stackAlloc",
+ "stackRestore",
+ "__growWasmMemory"
+ ],
+ "invokeFuncs": [
+ ]
+}
+-- END METADATA --
+;)
diff --git a/test/lld/recursive.wast.out b/test/lld/recursive.wast.out
index e17247950..6a705085e 100644
--- a/test/lld/recursive.wast.out
+++ b/test/lld/recursive.wast.out
@@ -117,4 +117,39 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 19, "initializers": ["__post_instantiate"], "declares": ["printf"], "externs": [], "implementedFunctions": ["___post_instantiate","_main","_stackSave","_stackAlloc","_stackRestore","___growWasmMemory"], "exports": ["memory","__post_instantiate","main","__heap_base","__data_end","stackSave","stackAlloc","stackRestore","__growWasmMemory"], "invokeFuncs": [] }
+(;
+--BEGIN METADATA --
+{
+ "staticBump": 19,
+ "initializers": [
+ "__post_instantiate"
+ ],
+ "declares": [
+ "printf"
+ ],
+ "externs": [
+ ],
+ "implementedFunctions": [
+ "___post_instantiate",
+ "_main",
+ "_stackSave",
+ "_stackAlloc",
+ "_stackRestore",
+ "___growWasmMemory"
+ ],
+ "exports": [
+ "memory",
+ "__post_instantiate",
+ "main",
+ "__heap_base",
+ "__data_end",
+ "stackSave",
+ "stackAlloc",
+ "stackRestore",
+ "__growWasmMemory"
+ ],
+ "invokeFuncs": [
+ ]
+}
+-- END METADATA --
+;)
diff --git a/test/lld/reserved_func_ptr.wast.jscall.out b/test/lld/reserved_func_ptr.wast.jscall.out
index 7e612a72c..7e95fb080 100644
--- a/test/lld/reserved_func_ptr.wast.jscall.out
+++ b/test/lld/reserved_func_ptr.wast.jscall.out
@@ -294,4 +294,50 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 0, "initializers": ["__post_instantiate"], "jsCallStartIndex": 3, "jsCallFuncType": ["ddi","fffi","iii","v","vi","viii"], "declares": ["_Z4atoiPKc"], "externs": [], "implementedFunctions": ["___post_instantiate","_main","_stackSave","_stackAlloc","_stackRestore","___growWasmMemory","_dynCall_viii"], "exports": ["memory","__post_instantiate","main","__heap_base","__data_end","stackSave","stackAlloc","stackRestore","__growWasmMemory","dynCall_viii"], "invokeFuncs": [] }
+(;
+--BEGIN METADATA --
+{
+ "staticBump": 0,
+ "initializers": [
+ "__post_instantiate"
+ ],
+ "jsCallStartIndex": 3,
+ "jsCallFuncType": [
+ "ddi",
+ "fffi",
+ "iii",
+ "v",
+ "vi",
+ "viii"
+ ],
+ "declares": [
+ "_Z4atoiPKc"
+ ],
+ "externs": [
+ ],
+ "implementedFunctions": [
+ "___post_instantiate",
+ "_main",
+ "_stackSave",
+ "_stackAlloc",
+ "_stackRestore",
+ "___growWasmMemory",
+ "_dynCall_viii"
+ ],
+ "exports": [
+ "memory",
+ "__post_instantiate",
+ "main",
+ "__heap_base",
+ "__data_end",
+ "stackSave",
+ "stackAlloc",
+ "stackRestore",
+ "__growWasmMemory",
+ "dynCall_viii"
+ ],
+ "invokeFuncs": [
+ ]
+}
+-- END METADATA --
+;)
diff --git a/test/lld/reserved_func_ptr.wast.out b/test/lld/reserved_func_ptr.wast.out
index 0b244a9bd..1c448d4ed 100644
--- a/test/lld/reserved_func_ptr.wast.out
+++ b/test/lld/reserved_func_ptr.wast.out
@@ -155,4 +155,41 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 0, "initializers": ["__post_instantiate"], "declares": ["_Z4atoiPKc"], "externs": [], "implementedFunctions": ["___post_instantiate","_main","_stackSave","_stackAlloc","_stackRestore","___growWasmMemory","_dynCall_viii"], "exports": ["memory","__post_instantiate","main","__heap_base","__data_end","stackSave","stackAlloc","stackRestore","__growWasmMemory","dynCall_viii"], "invokeFuncs": [] }
+(;
+--BEGIN METADATA --
+{
+ "staticBump": 0,
+ "initializers": [
+ "__post_instantiate"
+ ],
+ "declares": [
+ "_Z4atoiPKc"
+ ],
+ "externs": [
+ ],
+ "implementedFunctions": [
+ "___post_instantiate",
+ "_main",
+ "_stackSave",
+ "_stackAlloc",
+ "_stackRestore",
+ "___growWasmMemory",
+ "_dynCall_viii"
+ ],
+ "exports": [
+ "memory",
+ "__post_instantiate",
+ "main",
+ "__heap_base",
+ "__data_end",
+ "stackSave",
+ "stackAlloc",
+ "stackRestore",
+ "__growWasmMemory",
+ "dynCall_viii"
+ ],
+ "invokeFuncs": [
+ ]
+}
+-- END METADATA --
+;)