Rename memory instructions; Rework constant handling

This commit is contained in:
dcodeIO
2018-07-18 23:49:32 +02:00
parent 34e8facfdc
commit a1b75b69b7
170 changed files with 26392 additions and 5185 deletions

View File

@ -5,6 +5,7 @@
(global $export/b i32 (i32.const 2))
(global $export/c i32 (i32.const 3))
(memory $0 0)
(export "memory" (memory $0))
(export "add" (func $export/add))
(export "renamed_sub" (func $export/sub))
(export "renamed_mul" (func $export/mul))
@ -15,7 +16,7 @@
(export "rerenamed_c" (global $export/c))
(export "renamed_add" (func $export/add))
(export "rerenamed_sub" (func $export/mul))
(export "memory" (memory $0))
(export "renamed_ns.two" (func $export/ns.two))
(start $start)
(func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(i32.add
@ -35,7 +36,10 @@
(get_local $1)
)
)
(func $start (; 3 ;) (type $v)
(func $export/ns.two (; 3 ;) (type $v)
(nop)
)
(func $start (; 4 ;) (type $v)
(drop
(i32.add
(call $export/add