summaryrefslogtreecommitdiff
path: root/test/lld
diff options
context:
space:
mode:
Diffstat (limited to 'test/lld')
-rw-r--r--test/lld/bigint.wat.out12
-rw-r--r--test/lld/duplicate_imports.wat.out14
-rw-r--r--test/lld/em_asm.wat.mem.out14
-rw-r--r--test/lld/em_asm.wat.out14
-rw-r--r--test/lld/em_asm_O0.wat.out12
-rw-r--r--test/lld/em_asm_main_thread.wat.out22
-rw-r--r--test/lld/em_asm_shared.wat.out12
-rw-r--r--test/lld/em_asm_table.wat.out12
-rw-r--r--test/lld/em_js_O0.wat.out8
-rw-r--r--test/lld/gdollar_mainmodule.wat.out12
-rw-r--r--test/lld/hello_world.passive.wat.out16
-rw-r--r--test/lld/hello_world.wat.mem.out14
-rw-r--r--test/lld/hello_world.wat.out14
-rw-r--r--test/lld/init.wat.out18
-rw-r--r--test/lld/longjmp.wat.out16
-rw-r--r--test/lld/main_module.wat.out18
-rw-r--r--test/lld/main_module_table.wat.out14
-rw-r--r--test/lld/main_module_table_2.wat.out14
-rw-r--r--test/lld/main_module_table_3.wat.out14
-rw-r--r--test/lld/main_module_table_4.wat.out14
-rw-r--r--test/lld/main_module_table_5.wat.out18
-rw-r--r--test/lld/recursive.wat.out16
-rw-r--r--test/lld/recursive_safe_stack.wat.out18
-rw-r--r--test/lld/reserved_func_ptr.wat.out18
-rw-r--r--test/lld/safe_stack_standalone-wasm.wat.out20
-rw-r--r--test/lld/shared.wat.out10
-rw-r--r--test/lld/shared_add_to_table.wasm.out14
-rw-r--r--test/lld/shared_longjmp.wat.out12
-rw-r--r--test/lld/standalone-wasm-with-start.wat.out12
-rw-r--r--test/lld/standalone-wasm.wat.out16
-rw-r--r--test/lld/standalone-wasm2.wat.out14
-rw-r--r--test/lld/standalone-wasm3.wat.out10
32 files changed, 231 insertions, 231 deletions
diff --git a/test/lld/bigint.wat.out b/test/lld/bigint.wat.out
index a3214282f..7e2b090c4 100644
--- a/test/lld/bigint.wat.out
+++ b/test/lld/bigint.wat.out
@@ -14,13 +14,13 @@
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
(export "dynCall_jj" (func $dynCall_jj))
- (func $foo (; 0 ;) (param $0 i64) (result i64)
+ (func $foo (param $0 i64) (result i64)
(unreachable)
)
- (func $stackSave (; 1 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -35,17 +35,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 3 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 4 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $dynCall_jj (; 5 ;) (param $fptr i32) (param $0 i64) (result i64)
+ (func $dynCall_jj (param $fptr i32) (param $0 i64) (result i64)
(call_indirect (type $i64_=>_i64)
(local.get $0)
(local.get $fptr)
diff --git a/test/lld/duplicate_imports.wat.out b/test/lld/duplicate_imports.wat.out
index 7bd86fd95..8c03c8467 100644
--- a/test/lld/duplicate_imports.wat.out
+++ b/test/lld/duplicate_imports.wat.out
@@ -26,7 +26,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $main (; 4 ;) (result i32)
+ (func $main (result i32)
(drop
(call $puts1
(i32.const 568)
@@ -34,13 +34,13 @@
)
(i32.const 0)
)
- (func $__wasm_call_ctors (; 5 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $stackSave (; 6 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -55,17 +55,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 8 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 9 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $legalfunc$puts2 (; 10 ;) (param $0 i64) (result i32)
+ (func $legalfunc$puts2 (param $0 i64) (result i32)
(call $legalimport$puts2
(i32.wrap_i64
(local.get $0)
diff --git a/test/lld/em_asm.wat.mem.out b/test/lld/em_asm.wat.mem.out
index 951755cc6..92aba59ad 100644
--- a/test/lld/em_asm.wat.mem.out
+++ b/test/lld/em_asm.wat.mem.out
@@ -18,10 +18,10 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $__wasm_call_ctors (; 1 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $__original_main (; 2 ;) (result i32)
+ (func $__original_main (result i32)
(local $0 i32)
(global.set $global$0
(local.tee $0
@@ -68,13 +68,13 @@
)
(i32.const 0)
)
- (func $main (; 3 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $stackSave (; 4 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -89,12 +89,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 6 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 7 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/em_asm.wat.out b/test/lld/em_asm.wat.out
index 5167d837d..b11abfef1 100644
--- a/test/lld/em_asm.wat.out
+++ b/test/lld/em_asm.wat.out
@@ -19,10 +19,10 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $__wasm_call_ctors (; 1 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $__original_main (; 2 ;) (result i32)
+ (func $__original_main (result i32)
(local $0 i32)
(global.set $global$0
(local.tee $0
@@ -69,13 +69,13 @@
)
(i32.const 0)
)
- (func $main (; 3 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $stackSave (; 4 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -90,12 +90,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 6 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 7 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/em_asm_O0.wat.out b/test/lld/em_asm_O0.wat.out
index 0a6cc1c4c..7e0044a90 100644
--- a/test/lld/em_asm_O0.wat.out
+++ b/test/lld/em_asm_O0.wat.out
@@ -23,7 +23,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $main (; 3 ;) (result i32)
+ (func $main (result i32)
(local $t1 i32)
(local $t2 i32)
(drop
@@ -49,13 +49,13 @@
)
(i32.const 0)
)
- (func $__wasm_call_ctors (; 4 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $stackSave (; 5 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 6 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -70,12 +70,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 7 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 8 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/em_asm_main_thread.wat.out b/test/lld/em_asm_main_thread.wat.out
index b5d351caf..64a0ffe01 100644
--- a/test/lld/em_asm_main_thread.wat.out
+++ b/test/lld/em_asm_main_thread.wat.out
@@ -23,10 +23,10 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $__wasm_call_ctors (; 1 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $__original_main (; 2 ;) (result i32)
+ (func $__original_main (result i32)
(local $0 i32)
(local $1 i32)
(global.set $global$0
@@ -104,10 +104,10 @@
)
(i32.const 0)
)
- (func $__em_asm_sig_builder::inner<>\20const\20__em_asm_sig_builder::__em_asm_sig<>\28\29 (; 3 ;) (result i32)
+ (func $__em_asm_sig_builder::inner<>\20const\20__em_asm_sig_builder::__em_asm_sig<>\28\29 (result i32)
(i32.const 0)
)
- (func $__em_asm_sig_builder::inner<int\2c\20int>\20const\20__em_asm_sig_builder::__em_asm_sig<int\2c\20int>\28int\2c\20int\29 (; 4 ;) (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $__em_asm_sig_builder::inner<int\2c\20int>\20const\20__em_asm_sig_builder::__em_asm_sig<int\2c\20int>\28int\2c\20int\29 (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(global.set $global$0
(local.tee $3
@@ -152,7 +152,7 @@
)
)
)
- (func $__em_asm_sig_builder::inner<int>\20const\20__em_asm_sig_builder::__em_asm_sig<int>\28int\29 (; 5 ;) (param $0 i32) (param $1 i32)
+ (func $__em_asm_sig_builder::inner<int>\20const\20__em_asm_sig_builder::__em_asm_sig<int>\28int\29 (param $0 i32) (param $1 i32)
(local $2 i32)
(global.set $global$0
(local.tee $2
@@ -188,16 +188,16 @@
)
)
)
- (func $__em_asm_sig_builder::sig_char\28int\29 (; 6 ;) (param $0 i32) (result i32)
+ (func $__em_asm_sig_builder::sig_char\28int\29 (param $0 i32) (result i32)
(i32.const 105)
)
- (func $main (; 7 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $stackSave (; 8 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 9 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -212,12 +212,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 10 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 11 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/em_asm_shared.wat.out b/test/lld/em_asm_shared.wat.out
index c31d75e8c..d32f9a156 100644
--- a/test/lld/em_asm_shared.wat.out
+++ b/test/lld/em_asm_shared.wat.out
@@ -27,13 +27,13 @@
(export "_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJiEEE6bufferE" (global $global$2))
(export "main" (func $main))
(export "__post_instantiate" (func $__post_instantiate))
- (func $__wasm_call_ctors (; 6 ;)
+ (func $__wasm_call_ctors
(call $__wasm_apply_relocs)
)
- (func $__wasm_apply_relocs (; 7 ;)
+ (func $__wasm_apply_relocs
(nop)
)
- (func $__original_main (; 8 ;) (result i32)
+ (func $__original_main (result i32)
(local $0 i32)
(local $1 i32)
(call $stackRestore
@@ -92,14 +92,14 @@
)
(i32.const 0)
)
- (func $main (; 9 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $__post_instantiate (; 10 ;)
+ (func $__post_instantiate
(call $__assign_got_enties)
(call $__wasm_call_ctors)
)
- (func $__assign_got_enties (; 11 ;)
+ (func $__assign_got_enties
(global.set $gimport$6
(call $g$_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJEEE6bufferE)
)
diff --git a/test/lld/em_asm_table.wat.out b/test/lld/em_asm_table.wat.out
index 3d71b49af..943367e64 100644
--- a/test/lld/em_asm_table.wat.out
+++ b/test/lld/em_asm_table.wat.out
@@ -20,10 +20,10 @@
(export "__growWasmMemory" (func $__growWasmMemory))
(export "dynCall_vii" (func $dynCall_vii))
(export "dynCall_iiii" (func $dynCall_iiii))
- (func $stackSave (; 2 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -38,24 +38,24 @@
)
(local.get $1)
)
- (func $stackRestore (; 4 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 5 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $dynCall_vii (; 6 ;) (param $fptr i32) (param $0 i32) (param $1 i32)
+ (func $dynCall_vii (param $fptr i32) (param $0 i32) (param $1 i32)
(call_indirect (type $i32_i32_=>_none)
(local.get $0)
(local.get $1)
(local.get $fptr)
)
)
- (func $dynCall_iiii (; 7 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $dynCall_iiii (param $fptr i32) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call_indirect (type $i32_i32_i32_=>_i32)
(local.get $0)
(local.get $1)
diff --git a/test/lld/em_js_O0.wat.out b/test/lld/em_js_O0.wat.out
index bfca21703..ce9e6458f 100644
--- a/test/lld/em_js_O0.wat.out
+++ b/test/lld/em_js_O0.wat.out
@@ -15,10 +15,10 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $stackSave (; 0 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 1 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -33,12 +33,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 2 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 3 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/gdollar_mainmodule.wat.out b/test/lld/gdollar_mainmodule.wat.out
index 85cf5e445..ab54044a6 100644
--- a/test/lld/gdollar_mainmodule.wat.out
+++ b/test/lld/gdollar_mainmodule.wat.out
@@ -26,13 +26,13 @@
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
(export "__assign_got_enties" (func $__assign_got_enties))
- (func $main (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(i32.const 0)
)
- (func $stackSave (; 3 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $gimport$2)
)
- (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $gimport$2
(local.tee $1
@@ -47,17 +47,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 5 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $gimport$2
(local.get $0)
)
)
- (func $__growWasmMemory (; 6 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $__assign_got_enties (; 7 ;)
+ (func $__assign_got_enties
(global.set $gimport$6
(call $g$someglobal1)
)
diff --git a/test/lld/hello_world.passive.wat.out b/test/lld/hello_world.passive.wat.out
index e811b43e0..172d05fe1 100644
--- a/test/lld/hello_world.passive.wat.out
+++ b/test/lld/hello_world.passive.wat.out
@@ -20,17 +20,17 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $__wasm_call_ctors (; 1 ;)
+ (func $__wasm_call_ctors
(call $__wasm_init_memory)
)
- (func $__wasm_init_memory (; 2 ;)
+ (func $__wasm_init_memory
(memory.init 0
(i32.const 568)
(i32.const 0)
(i32.const 14)
)
)
- (func $__original_main (; 3 ;) (result i32)
+ (func $__original_main (result i32)
(drop
(call $puts
(i32.const 568)
@@ -38,13 +38,13 @@
)
(i32.const 0)
)
- (func $main (; 4 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $stackSave (; 5 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 6 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -59,12 +59,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 7 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 8 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/hello_world.wat.mem.out b/test/lld/hello_world.wat.mem.out
index 54951e8aa..3661f5e79 100644
--- a/test/lld/hello_world.wat.mem.out
+++ b/test/lld/hello_world.wat.mem.out
@@ -17,10 +17,10 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $__wasm_call_ctors (; 1 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $__original_main (; 2 ;) (result i32)
+ (func $__original_main (result i32)
(drop
(call $puts
(i32.const 568)
@@ -28,13 +28,13 @@
)
(i32.const 0)
)
- (func $main (; 3 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $stackSave (; 4 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -49,12 +49,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 6 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 7 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/hello_world.wat.out b/test/lld/hello_world.wat.out
index 1ce91bcb3..894d65d52 100644
--- a/test/lld/hello_world.wat.out
+++ b/test/lld/hello_world.wat.out
@@ -18,10 +18,10 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $__wasm_call_ctors (; 1 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $__original_main (; 2 ;) (result i32)
+ (func $__original_main (result i32)
(drop
(call $puts
(i32.const 568)
@@ -29,13 +29,13 @@
)
(i32.const 0)
)
- (func $main (; 3 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $stackSave (; 4 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -50,12 +50,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 6 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 7 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/init.wat.out b/test/lld/init.wat.out
index 1ff306e3a..44b81ff14 100644
--- a/test/lld/init.wat.out
+++ b/test/lld/init.wat.out
@@ -16,23 +16,23 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $__wasm_call_ctors (; 0 ;)
+ (func $__wasm_call_ctors
(call $init_x)
(call $init_y)
)
- (func $init_x (; 1 ;)
+ (func $init_x
(i32.store offset=568
(i32.const 0)
(i32.const 14)
)
)
- (func $init_y (; 2 ;)
+ (func $init_y
(i32.store offset=572
(i32.const 0)
(i32.const 144)
)
)
- (func $__original_main (; 3 ;) (result i32)
+ (func $__original_main (result i32)
(i32.add
(i32.load offset=568
(i32.const 0)
@@ -42,13 +42,13 @@
)
)
)
- (func $main (; 4 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $stackSave (; 5 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 6 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -63,12 +63,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 7 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 8 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/longjmp.wat.out b/test/lld/longjmp.wat.out
index 1b6bbd341..83c4b5a83 100644
--- a/test/lld/longjmp.wat.out
+++ b/test/lld/longjmp.wat.out
@@ -30,10 +30,10 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $0 (; 8 ;)
+ (func $0
(nop)
)
- (func $1 (; 9 ;) (result i32)
+ (func $1 (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -133,20 +133,20 @@
)
(unreachable)
)
- (func $2 (; 10 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $2 (param $0 i32) (param $1 i32) (result i32)
(call $1)
)
- (func $dynCall_vii (; 11 ;) (param $fptr i32) (param $0 i32) (param $1 i32)
+ (func $dynCall_vii (param $fptr i32) (param $0 i32) (param $1 i32)
(call_indirect (type $i32_i32_=>_none)
(local.get $0)
(local.get $1)
(local.get $fptr)
)
)
- (func $stackSave (; 12 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 13 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -161,12 +161,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 14 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 15 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/main_module.wat.out b/test/lld/main_module.wat.out
index 478a7a08f..f8897ff09 100644
--- a/test/lld/main_module.wat.out
+++ b/test/lld/main_module.wat.out
@@ -31,10 +31,10 @@
(export "__growWasmMemory" (func $__growWasmMemory))
(export "__assign_got_enties" (func $__assign_got_enties))
(export "dynCall_i" (func $dynCall_i))
- (func $__wasm_call_ctors (; 3 ;)
+ (func $__wasm_call_ctors
(call $__wasm_apply_relocs)
)
- (func $__wasm_apply_relocs (; 4 ;)
+ (func $__wasm_apply_relocs
(i32.store
(i32.add
(global.get $gimport$2)
@@ -50,7 +50,7 @@
(global.get $gimport$7)
)
)
- (func $print_message\28\29 (; 5 ;) (result i32)
+ (func $print_message\28\29 (result i32)
(drop
(call $puts
(i32.add
@@ -63,10 +63,10 @@
(global.get $gimport$5)
)
)
- (func $stackSave (; 6 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $sp)
)
- (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $sp
(local.tee $1
@@ -81,17 +81,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 8 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $sp
(local.get $0)
)
)
- (func $__growWasmMemory (; 9 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $__assign_got_enties (; 10 ;)
+ (func $__assign_got_enties
(global.set $gimport$5
(call $g$external_var)
)
@@ -105,7 +105,7 @@
)
)
)
- (func $dynCall_i (; 11 ;) (param $fptr i32) (result i32)
+ (func $dynCall_i (param $fptr i32) (result i32)
(call_indirect (type $none_=>_i32)
(local.get $fptr)
)
diff --git a/test/lld/main_module_table.wat.out b/test/lld/main_module_table.wat.out
index 412d1715f..069115956 100644
--- a/test/lld/main_module_table.wat.out
+++ b/test/lld/main_module_table.wat.out
@@ -18,13 +18,13 @@
(export "__growWasmMemory" (func $__growWasmMemory))
(export "__assign_got_enties" (func $__assign_got_enties))
(export "dynCall_v" (func $dynCall_v))
- (func $__stdio_write (; 0 ;)
+ (func $__stdio_write
(nop)
)
- (func $stackSave (; 1 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $sp)
)
- (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $sp
(local.tee $1
@@ -39,17 +39,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 3 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $sp
(local.get $0)
)
)
- (func $__growWasmMemory (; 4 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $__assign_got_enties (; 5 ;)
+ (func $__assign_got_enties
(global.set $gimport$9
(i32.add
(global.get $__table_base)
@@ -57,7 +57,7 @@
)
)
)
- (func $dynCall_v (; 6 ;) (param $fptr i32)
+ (func $dynCall_v (param $fptr i32)
(call_indirect (type $none_=>_none)
(local.get $fptr)
)
diff --git a/test/lld/main_module_table_2.wat.out b/test/lld/main_module_table_2.wat.out
index 1dd833150..4e264eb2d 100644
--- a/test/lld/main_module_table_2.wat.out
+++ b/test/lld/main_module_table_2.wat.out
@@ -18,13 +18,13 @@
(export "__growWasmMemory" (func $__growWasmMemory))
(export "__assign_got_enties" (func $__assign_got_enties))
(export "dynCall_v" (func $dynCall_v))
- (func $__stdio_write (; 0 ;)
+ (func $__stdio_write
(nop)
)
- (func $stackSave (; 1 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $sp)
)
- (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $sp
(local.tee $1
@@ -39,17 +39,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 3 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $sp
(local.get $0)
)
)
- (func $__growWasmMemory (; 4 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $__assign_got_enties (; 5 ;)
+ (func $__assign_got_enties
(global.set $gimport$9
(i32.add
(global.get $__table_base)
@@ -57,7 +57,7 @@
)
)
)
- (func $dynCall_v (; 6 ;) (param $fptr i32)
+ (func $dynCall_v (param $fptr i32)
(call_indirect (type $none_=>_none)
(local.get $fptr)
)
diff --git a/test/lld/main_module_table_3.wat.out b/test/lld/main_module_table_3.wat.out
index f48ab6216..9e227396f 100644
--- a/test/lld/main_module_table_3.wat.out
+++ b/test/lld/main_module_table_3.wat.out
@@ -18,13 +18,13 @@
(export "__growWasmMemory" (func $__growWasmMemory))
(export "__assign_got_enties" (func $__assign_got_enties))
(export "dynCall_v" (func $dynCall_v))
- (func $__stdio_write (; 0 ;)
+ (func $__stdio_write
(nop)
)
- (func $stackSave (; 1 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $sp)
)
- (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $sp
(local.tee $1
@@ -39,17 +39,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 3 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $sp
(local.get $0)
)
)
- (func $__growWasmMemory (; 4 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $__assign_got_enties (; 5 ;)
+ (func $__assign_got_enties
(global.set $gimport$9
(i32.add
(global.get $__table_base)
@@ -57,7 +57,7 @@
)
)
)
- (func $dynCall_v (; 6 ;) (param $fptr i32)
+ (func $dynCall_v (param $fptr i32)
(call_indirect (type $none_=>_none)
(local.get $fptr)
)
diff --git a/test/lld/main_module_table_4.wat.out b/test/lld/main_module_table_4.wat.out
index db2ef3cd8..e3976804e 100644
--- a/test/lld/main_module_table_4.wat.out
+++ b/test/lld/main_module_table_4.wat.out
@@ -18,13 +18,13 @@
(export "__growWasmMemory" (func $__growWasmMemory))
(export "__assign_got_enties" (func $__assign_got_enties))
(export "dynCall_v" (func $dynCall_v))
- (func $__stdio_write (; 0 ;)
+ (func $__stdio_write
(nop)
)
- (func $stackSave (; 1 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $sp)
)
- (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $sp
(local.tee $1
@@ -39,17 +39,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 3 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $sp
(local.get $0)
)
)
- (func $__growWasmMemory (; 4 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $__assign_got_enties (; 5 ;)
+ (func $__assign_got_enties
(global.set $gimport$9
(i32.add
(global.get $tb)
@@ -57,7 +57,7 @@
)
)
)
- (func $dynCall_v (; 6 ;) (param $fptr i32)
+ (func $dynCall_v (param $fptr i32)
(call_indirect (type $none_=>_none)
(local.get $fptr)
)
diff --git a/test/lld/main_module_table_5.wat.out b/test/lld/main_module_table_5.wat.out
index 590164b0f..9fd8dda28 100644
--- a/test/lld/main_module_table_5.wat.out
+++ b/test/lld/main_module_table_5.wat.out
@@ -18,19 +18,19 @@
(export "__growWasmMemory" (func $__growWasmMemory))
(export "__assign_got_enties" (func $__assign_got_enties))
(export "dynCall_v" (func $dynCall_v))
- (func $__stdio_write (; 0 ;)
+ (func $__stdio_write
(nop)
)
- (func $other (; 1 ;)
+ (func $other
(nop)
)
- (func $stuff (; 2 ;)
+ (func $stuff
(nop)
)
- (func $stackSave (; 3 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $sp)
)
- (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $sp
(local.tee $1
@@ -45,17 +45,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 5 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $sp
(local.get $0)
)
)
- (func $__growWasmMemory (; 6 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $__assign_got_enties (; 7 ;)
+ (func $__assign_got_enties
(global.set $gimport$9
(i32.add
(global.get $tb)
@@ -63,7 +63,7 @@
)
)
)
- (func $dynCall_v (; 8 ;) (param $fptr i32)
+ (func $dynCall_v (param $fptr i32)
(call_indirect (type $none_=>_none)
(local.get $fptr)
)
diff --git a/test/lld/recursive.wat.out b/test/lld/recursive.wat.out
index 22d4ba729..c304f3485 100644
--- a/test/lld/recursive.wat.out
+++ b/test/lld/recursive.wat.out
@@ -18,10 +18,10 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $__wasm_call_ctors (; 1 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $foo (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $foo (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(global.set $global$0
(local.tee $2
@@ -56,7 +56,7 @@
(local.get $0)
)
)
- (func $__original_main (; 3 ;) (result i32)
+ (func $__original_main (result i32)
(local $0 i32)
(global.set $global$0
(local.tee $0
@@ -87,13 +87,13 @@
)
(i32.const 0)
)
- (func $main (; 4 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $stackSave (; 5 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 6 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -108,12 +108,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 7 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 8 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/recursive_safe_stack.wat.out b/test/lld/recursive_safe_stack.wat.out
index a9248782c..36b803a1e 100644
--- a/test/lld/recursive_safe_stack.wat.out
+++ b/test/lld/recursive_safe_stack.wat.out
@@ -23,10 +23,10 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $__wasm_call_ctors (; 2 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $foo (; 3 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $foo (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -85,7 +85,7 @@
(local.get $0)
)
)
- (func $__original_main (; 4 ;) (result i32)
+ (func $__original_main (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -140,18 +140,18 @@
)
(i32.const 0)
)
- (func $main (; 5 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $__set_stack_limit (; 6 ;) (param $0 i32)
+ (func $__set_stack_limit (param $0 i32)
(global.set $__stack_limit
(local.get $0)
)
)
- (func $stackSave (; 7 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 8 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block
@@ -178,7 +178,7 @@
)
(local.get $1)
)
- (func $stackRestore (; 9 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(local $1 i32)
(if
(i32.lt_u
@@ -193,7 +193,7 @@
(local.get $1)
)
)
- (func $__growWasmMemory (; 10 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/reserved_func_ptr.wat.out b/test/lld/reserved_func_ptr.wat.out
index a7d39b4b3..c783b31a1 100644
--- a/test/lld/reserved_func_ptr.wat.out
+++ b/test/lld/reserved_func_ptr.wat.out
@@ -23,16 +23,16 @@
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
(export "dynCall_viii" (func $dynCall_viii))
- (func $__wasm_call_ctors (; 1 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $address_taken_func\28int\2c\20int\2c\20int\29 (; 2 ;) (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $address_taken_func\28int\2c\20int\2c\20int\29 (param $0 i32) (param $1 i32) (param $2 i32)
(nop)
)
- (func $address_taken_func2\28int\2c\20int\2c\20int\29 (; 3 ;) (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $address_taken_func2\28int\2c\20int\2c\20int\29 (param $0 i32) (param $1 i32) (param $2 i32)
(nop)
)
- (func $main (; 4 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -116,10 +116,10 @@
)
(i32.const 0)
)
- (func $stackSave (; 5 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 6 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -134,17 +134,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 7 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 8 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $dynCall_viii (; 9 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $dynCall_viii (param $fptr i32) (param $0 i32) (param $1 i32) (param $2 i32)
(call_indirect (type $i32_i32_i32_=>_none)
(local.get $0)
(local.get $1)
diff --git a/test/lld/safe_stack_standalone-wasm.wat.out b/test/lld/safe_stack_standalone-wasm.wat.out
index 3632831ac..11e9d0109 100644
--- a/test/lld/safe_stack_standalone-wasm.wat.out
+++ b/test/lld/safe_stack_standalone-wasm.wat.out
@@ -23,10 +23,10 @@
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
(export "_start" (func $_start))
- (func $__wasm_call_ctors (; 1 ;)
+ (func $__wasm_call_ctors
(nop)
)
- (func $foo (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $foo (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -85,7 +85,7 @@
(local.get $0)
)
)
- (func $__original_main (; 3 ;) (result i32)
+ (func $__original_main (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -140,18 +140,18 @@
)
(i32.const 0)
)
- (func $main (; 4 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $__set_stack_limit (; 5 ;) (param $0 i32)
+ (func $__set_stack_limit (param $0 i32)
(global.set $__stack_limit
(local.get $0)
)
)
- (func $stackSave (; 6 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block
@@ -178,7 +178,7 @@
)
(local.get $1)
)
- (func $stackRestore (; 8 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(local $1 i32)
(if
(i32.lt_u
@@ -193,12 +193,12 @@
(local.get $1)
)
)
- (func $__growWasmMemory (; 9 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $_start (; 10 ;)
+ (func $_start
(drop
(call $main
(i32.const 0)
diff --git a/test/lld/shared.wat.out b/test/lld/shared.wat.out
index 5cc1cf88f..0a2529ad6 100644
--- a/test/lld/shared.wat.out
+++ b/test/lld/shared.wat.out
@@ -20,10 +20,10 @@
(export "ptr_puts" (global $global$0))
(export "ptr_local_func" (global $global$1))
(export "__post_instantiate" (func $__post_instantiate))
- (func $__wasm_call_ctors (; 4 ;)
+ (func $__wasm_call_ctors
(call $__wasm_apply_relocs)
)
- (func $__wasm_apply_relocs (; 5 ;)
+ (func $__wasm_apply_relocs
(i32.store
(i32.add
(global.get $gimport$2)
@@ -39,7 +39,7 @@
(global.get $gimport$7)
)
)
- (func $print_message\28\29 (; 6 ;) (result i32)
+ (func $print_message\28\29 (result i32)
(drop
(call $puts
(i32.add
@@ -52,11 +52,11 @@
(global.get $gimport$5)
)
)
- (func $__post_instantiate (; 7 ;)
+ (func $__post_instantiate
(call $__assign_got_enties)
(call $__wasm_call_ctors)
)
- (func $__assign_got_enties (; 8 ;)
+ (func $__assign_got_enties
(global.set $gimport$5
(call $g$external_var)
)
diff --git a/test/lld/shared_add_to_table.wasm.out b/test/lld/shared_add_to_table.wasm.out
index 5343b7089..b89853e4e 100644
--- a/test/lld/shared_add_to_table.wasm.out
+++ b/test/lld/shared_add_to_table.wasm.out
@@ -26,18 +26,18 @@
(export "main" (func $main))
(export "__dso_handle" (global $global$1))
(export "__post_instantiate" (func $__post_instantiate))
- (func $__wasm_call_ctors (; 5 ;)
+ (func $__wasm_call_ctors
(call $__wasm_apply_relocs)
)
- (func $__wasm_apply_relocs (; 6 ;)
+ (func $__wasm_apply_relocs
)
- (func $waka_func_mine\28int\29 (; 7 ;) (param $0 i32) (result i32)
+ (func $waka_func_mine\28int\29 (param $0 i32) (result i32)
(i32.add
(local.get $0)
(i32.const 1)
)
)
- (func $__original_main (; 8 ;) (result i32)
+ (func $__original_main (result i32)
(local $0 i32)
(local $1 i32)
(local.set $0
@@ -61,14 +61,14 @@
)
)
)
- (func $main (; 9 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $__post_instantiate (; 10 ;)
+ (func $__post_instantiate
(call $__assign_got_enties)
(call $__wasm_call_ctors)
)
- (func $__assign_got_enties (; 11 ;)
+ (func $__assign_got_enties
(global.set $gimport$8
(call $g$waka_mine)
)
diff --git a/test/lld/shared_longjmp.wat.out b/test/lld/shared_longjmp.wat.out
index 871e26b27..628412ed9 100644
--- a/test/lld/shared_longjmp.wat.out
+++ b/test/lld/shared_longjmp.wat.out
@@ -33,13 +33,13 @@
(export "__threwValue" (global $global$1))
(export "dynCall_vii" (func $dynCall_vii))
(export "__post_instantiate" (func $__post_instantiate))
- (func $0 (; 11 ;)
+ (func $0
(call $1)
)
- (func $1 (; 12 ;)
+ (func $1
(nop)
)
- (func $2 (; 13 ;)
+ (func $2
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -142,18 +142,18 @@
)
(unreachable)
)
- (func $dynCall_vii (; 14 ;) (param $fptr i32) (param $0 i32) (param $1 i32)
+ (func $dynCall_vii (param $fptr i32) (param $0 i32) (param $1 i32)
(call_indirect (type $i32_i32_=>_none)
(local.get $0)
(local.get $1)
(local.get $fptr)
)
)
- (func $__post_instantiate (; 15 ;)
+ (func $__post_instantiate
(call $__assign_got_enties)
(call $0)
)
- (func $__assign_got_enties (; 16 ;)
+ (func $__assign_got_enties
(global.set $gimport$13
(call $g$__THREW__)
)
diff --git a/test/lld/standalone-wasm-with-start.wat.out b/test/lld/standalone-wasm-with-start.wat.out
index 1ac0d3d9c..05e70d61a 100644
--- a/test/lld/standalone-wasm-with-start.wat.out
+++ b/test/lld/standalone-wasm-with-start.wat.out
@@ -16,16 +16,16 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $_start (; 0 ;) (result i32)
+ (func $_start (result i32)
(nop)
)
- (func $foo (; 1 ;) (result i32)
+ (func $foo (result i32)
(nop)
)
- (func $stackSave (; 2 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -40,12 +40,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 4 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 5 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
diff --git a/test/lld/standalone-wasm.wat.out b/test/lld/standalone-wasm.wat.out
index 64dbfaf0a..3b128a771 100644
--- a/test/lld/standalone-wasm.wat.out
+++ b/test/lld/standalone-wasm.wat.out
@@ -19,19 +19,19 @@
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
(export "_start" (func $_start))
- (func $__original_main (; 0 ;) (result i32)
+ (func $__original_main (result i32)
(nop)
)
- (func $main (; 1 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
- (func $foo (; 2 ;) (result i32)
+ (func $foo (result i32)
(nop)
)
- (func $stackSave (; 3 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -46,17 +46,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 5 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 6 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $_start (; 7 ;)
+ (func $_start
(drop
(call $main
(i32.const 0)
diff --git a/test/lld/standalone-wasm2.wat.out b/test/lld/standalone-wasm2.wat.out
index def030c64..d9da38420 100644
--- a/test/lld/standalone-wasm2.wat.out
+++ b/test/lld/standalone-wasm2.wat.out
@@ -17,19 +17,19 @@
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
(export "_start" (func $_start))
- (func $__original_main (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $__original_main (param $0 i32) (param $1 i32) (result i32)
(nop)
)
- (func $main (; 1 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main
(local.get $0)
(local.get $1)
)
)
- (func $stackSave (; 2 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -44,17 +44,17 @@
)
(local.get $1)
)
- (func $stackRestore (; 4 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 5 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
- (func $_start (; 6 ;)
+ (func $_start
(drop
(call $main
(i32.const 0)
diff --git a/test/lld/standalone-wasm3.wat.out b/test/lld/standalone-wasm3.wat.out
index 639b18988..325c0840c 100644
--- a/test/lld/standalone-wasm3.wat.out
+++ b/test/lld/standalone-wasm3.wat.out
@@ -14,13 +14,13 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $__original_main (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $__original_main (param $0 i32) (param $1 i32) (result i32)
(nop)
)
- (func $stackSave (; 1 ;) (result i32)
+ (func $stackSave (result i32)
(global.get $global$0)
)
- (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
+ (func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $global$0
(local.tee $1
@@ -35,12 +35,12 @@
)
(local.get $1)
)
- (func $stackRestore (; 3 ;) (param $0 i32)
+ (func $stackRestore (param $0 i32)
(global.set $global$0
(local.get $0)
)
)
- (func $__growWasmMemory (; 4 ;) (param $newSize i32) (result i32)
+ (func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)