mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-27 05:31:56 +00:00
Use stack IR when emitting text format (#312)
This commit is contained in:
@ -2,42 +2,36 @@
|
||||
(type $v (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(memory $0 0)
|
||||
(table 1 anyfunc)
|
||||
(table $0 1 anyfunc)
|
||||
(elem (i32.const 0) $export/ns.two)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $export/add (; 0 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
||||
(i32.const 3)
|
||||
(func $export/add (; 0 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 3
|
||||
)
|
||||
(func $export/sub (; 1 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
||||
(i32.const -1)
|
||||
(func $export/sub (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const -1
|
||||
)
|
||||
(func $export/ns.two (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
(func $export/ns.two (; 2 ;) (type $v)
|
||||
nop
|
||||
)
|
||||
(func $start (; 3 ;) (; has Stack IR ;) (type $v)
|
||||
(func $start (; 3 ;) (type $v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
(set_local $0
|
||||
(call $export/add)
|
||||
)
|
||||
(set_local $1
|
||||
(call $export/sub)
|
||||
)
|
||||
(drop
|
||||
(call $export/add)
|
||||
)
|
||||
(call $export/ns.two)
|
||||
(set_local $0
|
||||
(call $export/add)
|
||||
)
|
||||
(set_local $1
|
||||
(call $export/sub)
|
||||
)
|
||||
(drop
|
||||
(call $export/add)
|
||||
)
|
||||
(call $export/ns.two)
|
||||
call $export/add
|
||||
set_local $0
|
||||
call $export/sub
|
||||
set_local $1
|
||||
call $export/add
|
||||
drop
|
||||
call $export/ns.two
|
||||
call $export/add
|
||||
set_local $0
|
||||
call $export/sub
|
||||
set_local $1
|
||||
call $export/add
|
||||
drop
|
||||
call $export/ns.two
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user