mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 18:01:31 +00:00
Update Binaryen
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
(module
|
||||
(type $iv (func (param i32)))
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $v (func))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iiv (func (param i32 i32)))
|
||||
(type $iiiiv (func (param i32 i32 i32 i32)))
|
||||
(type $i (func (result i32)))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
||||
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
||||
@ -321,9 +322,7 @@
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
(call $~iterateRoots
|
||||
(i32.const 1)
|
||||
)
|
||||
(call $~iterateRoots)
|
||||
(set_global $~lib/collector/itcm/state
|
||||
(i32.const 2)
|
||||
)
|
||||
@ -362,9 +361,7 @@
|
||||
)
|
||||
)
|
||||
(block
|
||||
(call $~iterateRoots
|
||||
(i32.const 1)
|
||||
)
|
||||
(call $~iterateRoots)
|
||||
(if
|
||||
(i32.eq
|
||||
(call $~lib/collector/itcm/ManagedObject#get:next
|
||||
@ -435,25 +432,16 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $~lib/collector/itcm/__gc_allocate (; 13 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(if
|
||||
(i32.gt_u
|
||||
(get_local $0)
|
||||
(i32.const 1073741808)
|
||||
)
|
||||
(unreachable)
|
||||
)
|
||||
(func $~lib/collector/itcm/__gc_allocate (; 13 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
(call $~lib/collector/itcm/step)
|
||||
(i32.store offset=8
|
||||
(tee_local $0
|
||||
(call $~lib/allocator/arena/__memory_allocate
|
||||
(i32.add
|
||||
(get_local $0)
|
||||
(i32.const 16)
|
||||
)
|
||||
(i32.const 20)
|
||||
)
|
||||
)
|
||||
(get_local $1)
|
||||
(i32.const 0)
|
||||
)
|
||||
(call $~lib/collector/itcm/ManagedObject#set:color
|
||||
(get_local $0)
|
||||
@ -545,10 +533,7 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
(set_global $std/gc-basics/obj
|
||||
(call $~lib/collector/itcm/__gc_allocate
|
||||
(i32.const 4)
|
||||
(i32.const 0)
|
||||
)
|
||||
(call $~lib/collector/itcm/__gc_allocate)
|
||||
)
|
||||
(i32.store
|
||||
(get_global $std/gc-basics/obj)
|
||||
@ -659,14 +644,14 @@
|
||||
)
|
||||
(call $~lib/gc/gc.collect)
|
||||
)
|
||||
(func $~iterateRoots (; 19 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
||||
(func $~iterateRoots (; 19 ;) (; has Stack IR ;) (type $FUNCSIG$v)
|
||||
(call_indirect (type $iv)
|
||||
(get_global $std/gc-basics/obj)
|
||||
(get_local $0)
|
||||
(i32.const 1)
|
||||
)
|
||||
(call_indirect (type $iv)
|
||||
(get_global $std/gc-basics/obj2)
|
||||
(get_local $0)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user