mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-22 19:21:47 +00:00
Rename memory instructions; Rework constant handling
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user