mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 12:11:50 +00:00
Use stack IR when emitting text format (#312)
This commit is contained in:
@ -2,32 +2,26 @@
|
||||
(type $iv (func (param i32)))
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(table 1 anyfunc)
|
||||
(table $0 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $class-extends/test))
|
||||
(func $class-extends/test (; 0 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
||||
(drop
|
||||
(i32.load
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(drop
|
||||
(i32.load16_s offset=4
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(i32.store
|
||||
(get_local $0)
|
||||
(i32.const 2)
|
||||
)
|
||||
(i32.store16 offset=4
|
||||
(get_local $0)
|
||||
(i32.const 3)
|
||||
)
|
||||
(func $class-extends/test (; 0 ;) (type $iv) (param $0 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
drop
|
||||
get_local $0
|
||||
i32.load16_s offset=4
|
||||
drop
|
||||
get_local $0
|
||||
i32.const 2
|
||||
i32.store
|
||||
get_local $0
|
||||
i32.const 3
|
||||
i32.store16 offset=4
|
||||
)
|
||||
(func $null (; 1 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
(func $null (; 1 ;) (type $v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user