mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 06:21:29 +00:00
Do not emit debug info by default
This basically flips the --noDebug flag to become a --debug flag, so some optimizations, like inlining, aren't skipped by default, which might be unexpected.
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iv (func (param i32)))
|
||||
(type $iiv (func (param i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(memory $0 0)
|
||||
(table $0 4 anyfunc)
|
||||
@ -83,68 +82,37 @@
|
||||
set_global $~lib/allocator/arena/offset
|
||||
get_local $1
|
||||
)
|
||||
(func $~lib/collector/itcm/ManagedObjectList#clear (; 1 ;) (type $iv) (param $0 i32)
|
||||
get_local $0
|
||||
get_local $0
|
||||
i32.store
|
||||
get_local $0
|
||||
get_local $0
|
||||
i32.store offset=4
|
||||
)
|
||||
(func $~lib/collector/itcm/ManagedObject#get:color (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
i32.const 3
|
||||
i32.and
|
||||
)
|
||||
(func $~lib/collector/itcm/ManagedObject#get:next (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
i32.const -4
|
||||
i32.and
|
||||
)
|
||||
(func $~lib/collector/itcm/ManagedObject#set:next (; 4 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
get_local $0
|
||||
get_local $1
|
||||
get_local $0
|
||||
i32.load
|
||||
i32.const 3
|
||||
i32.and
|
||||
i32.or
|
||||
i32.store
|
||||
)
|
||||
(func $~lib/collector/itcm/ManagedObject#unlink (; 5 ;) (type $iv) (param $0 i32)
|
||||
(local $1 i32)
|
||||
get_local $0
|
||||
call $~lib/collector/itcm/ManagedObject#get:next
|
||||
tee_local $1
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $0
|
||||
i32.store offset=4
|
||||
get_local $0
|
||||
get_local $1
|
||||
call $~lib/collector/itcm/ManagedObject#set:next
|
||||
)
|
||||
(func $~lib/collector/itcm/ManagedObjectList#push (; 6 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
(func $~lib/collector/itcm/ManagedObjectList#push (; 1 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
(local $2 i32)
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $2
|
||||
get_local $1
|
||||
get_local $0
|
||||
call $~lib/collector/itcm/ManagedObject#set:next
|
||||
get_local $1
|
||||
i32.load
|
||||
i32.const 3
|
||||
i32.and
|
||||
i32.or
|
||||
i32.store
|
||||
get_local $1
|
||||
get_local $2
|
||||
i32.store offset=4
|
||||
get_local $2
|
||||
get_local $1
|
||||
call $~lib/collector/itcm/ManagedObject#set:next
|
||||
get_local $2
|
||||
i32.load
|
||||
i32.const 3
|
||||
i32.and
|
||||
i32.or
|
||||
i32.store
|
||||
get_local $0
|
||||
get_local $1
|
||||
i32.store offset=4
|
||||
)
|
||||
(func $~lib/collector/itcm/ManagedObject#makeGray (; 7 ;) (type $iv) (param $0 i32)
|
||||
(func $~lib/collector/itcm/ManagedObject#makeGray (; 2 ;) (type $iv) (param $0 i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
get_local $0
|
||||
get_global $~lib/collector/itcm/iter
|
||||
i32.eq
|
||||
@ -154,7 +122,22 @@
|
||||
set_global $~lib/collector/itcm/iter
|
||||
end
|
||||
get_local $0
|
||||
call $~lib/collector/itcm/ManagedObject#unlink
|
||||
i32.load
|
||||
i32.const -4
|
||||
i32.and
|
||||
tee_local $2
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $1
|
||||
i32.store offset=4
|
||||
get_local $1
|
||||
get_local $2
|
||||
get_local $1
|
||||
i32.load
|
||||
i32.const 3
|
||||
i32.and
|
||||
i32.or
|
||||
i32.store
|
||||
get_global $~lib/collector/itcm/toSpace
|
||||
get_local $0
|
||||
call $~lib/collector/itcm/ManagedObjectList#push
|
||||
@ -167,7 +150,7 @@
|
||||
i32.or
|
||||
i32.store
|
||||
)
|
||||
(func $~lib/collector/itcm/__gc_mark (; 8 ;) (type $iv) (param $0 i32)
|
||||
(func $~lib/collector/itcm/__gc_mark (; 3 ;) (type $iv) (param $0 i32)
|
||||
(local $1 i32)
|
||||
get_local $0
|
||||
if
|
||||
@ -175,7 +158,9 @@
|
||||
i32.const 16
|
||||
i32.sub
|
||||
tee_local $1
|
||||
call $~lib/collector/itcm/ManagedObject#get:color
|
||||
i32.load
|
||||
i32.const 3
|
||||
i32.and
|
||||
get_global $~lib/collector/itcm/white
|
||||
i32.eq
|
||||
if
|
||||
@ -184,20 +169,7 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $~lib/collector/itcm/ManagedObject#set:color (; 9 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
get_local $0
|
||||
get_local $0
|
||||
i32.load
|
||||
i32.const -4
|
||||
i32.and
|
||||
get_local $1
|
||||
i32.or
|
||||
i32.store
|
||||
)
|
||||
(func $~lib/allocator/arena/__memory_free (; 10 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $~lib/collector/itcm/step (; 11 ;) (type $v)
|
||||
(func $~lib/collector/itcm/step (; 4 ;) (type $v)
|
||||
(local $0 i32)
|
||||
block $break|0
|
||||
block $case3|0
|
||||
@ -216,34 +188,46 @@
|
||||
end
|
||||
i32.const 16
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
tee_local $0
|
||||
set_global $~lib/collector/itcm/fromSpace
|
||||
get_global $~lib/collector/itcm/fromSpace
|
||||
i32.const -1
|
||||
i32.store offset=8
|
||||
get_global $~lib/collector/itcm/fromSpace
|
||||
call $~lib/collector/itcm/ManagedObjectList#clear
|
||||
tee_local $0
|
||||
get_local $0
|
||||
i32.store
|
||||
get_local $0
|
||||
get_local $0
|
||||
i32.store offset=4
|
||||
i32.const 16
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
tee_local $0
|
||||
set_global $~lib/collector/itcm/toSpace
|
||||
get_global $~lib/collector/itcm/toSpace
|
||||
i32.const -1
|
||||
i32.store offset=8
|
||||
get_global $~lib/collector/itcm/toSpace
|
||||
call $~lib/collector/itcm/ManagedObjectList#clear
|
||||
tee_local $0
|
||||
get_local $0
|
||||
i32.store
|
||||
get_local $0
|
||||
get_local $0
|
||||
i32.store offset=4
|
||||
get_global $~lib/collector/itcm/toSpace
|
||||
set_global $~lib/collector/itcm/iter
|
||||
i32.const 1
|
||||
set_global $~lib/collector/itcm/state
|
||||
end
|
||||
call $~iterateRoots
|
||||
get_global $std/gc-object/obj
|
||||
i32.const 1
|
||||
call_indirect (type $iv)
|
||||
i32.const 2
|
||||
set_global $~lib/collector/itcm/state
|
||||
br $break|0
|
||||
end
|
||||
get_global $~lib/collector/itcm/iter
|
||||
call $~lib/collector/itcm/ManagedObject#get:next
|
||||
i32.load
|
||||
i32.const -4
|
||||
i32.and
|
||||
tee_local $0
|
||||
get_global $~lib/collector/itcm/toSpace
|
||||
i32.ne
|
||||
@ -251,9 +235,14 @@
|
||||
get_local $0
|
||||
set_global $~lib/collector/itcm/iter
|
||||
get_local $0
|
||||
get_local $0
|
||||
i32.load
|
||||
i32.const -4
|
||||
i32.and
|
||||
get_global $~lib/collector/itcm/white
|
||||
i32.eqz
|
||||
call $~lib/collector/itcm/ManagedObject#set:color
|
||||
i32.or
|
||||
i32.store
|
||||
i32.const 1
|
||||
set_global $~argc
|
||||
get_local $0
|
||||
@ -263,9 +252,13 @@
|
||||
i32.load offset=8
|
||||
call_indirect (type $iv)
|
||||
else
|
||||
call $~iterateRoots
|
||||
get_global $std/gc-object/obj
|
||||
i32.const 1
|
||||
call_indirect (type $iv)
|
||||
get_global $~lib/collector/itcm/iter
|
||||
call $~lib/collector/itcm/ManagedObject#get:next
|
||||
i32.load
|
||||
i32.const -4
|
||||
i32.and
|
||||
get_global $~lib/collector/itcm/toSpace
|
||||
i32.eq
|
||||
if
|
||||
@ -279,7 +272,9 @@
|
||||
i32.eqz
|
||||
set_global $~lib/collector/itcm/white
|
||||
get_local $0
|
||||
call $~lib/collector/itcm/ManagedObject#get:next
|
||||
i32.load
|
||||
i32.const -4
|
||||
i32.and
|
||||
set_global $~lib/collector/itcm/iter
|
||||
i32.const 3
|
||||
set_global $~lib/collector/itcm/state
|
||||
@ -293,23 +288,24 @@
|
||||
i32.ne
|
||||
if
|
||||
get_local $0
|
||||
call $~lib/collector/itcm/ManagedObject#get:next
|
||||
i32.load
|
||||
i32.const -4
|
||||
i32.and
|
||||
set_global $~lib/collector/itcm/iter
|
||||
get_local $0
|
||||
i32.const 8
|
||||
i32.ge_u
|
||||
if
|
||||
call $~lib/allocator/arena/__memory_free
|
||||
end
|
||||
else
|
||||
get_global $~lib/collector/itcm/toSpace
|
||||
call $~lib/collector/itcm/ManagedObjectList#clear
|
||||
tee_local $0
|
||||
get_local $0
|
||||
i32.store
|
||||
get_local $0
|
||||
get_local $0
|
||||
i32.store offset=4
|
||||
i32.const 1
|
||||
set_global $~lib/collector/itcm/state
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $~lib/collector/itcm/__gc_allocate (; 12 ;) (type $FUNCSIG$i) (result i32)
|
||||
(func $~lib/collector/itcm/__gc_allocate (; 5 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
call $~lib/collector/itcm/step
|
||||
i32.const 24
|
||||
@ -318,8 +314,13 @@
|
||||
i32.const 2
|
||||
i32.store offset=8
|
||||
get_local $0
|
||||
get_local $0
|
||||
i32.load
|
||||
i32.const -4
|
||||
i32.and
|
||||
get_global $~lib/collector/itcm/white
|
||||
call $~lib/collector/itcm/ManagedObject#set:color
|
||||
i32.or
|
||||
i32.store
|
||||
get_global $~lib/collector/itcm/fromSpace
|
||||
get_local $0
|
||||
call $~lib/collector/itcm/ManagedObjectList#push
|
||||
@ -327,7 +328,7 @@
|
||||
i32.const 16
|
||||
i32.add
|
||||
)
|
||||
(func $std/gc-object/Base~gc (; 13 ;) (type $iv) (param $0 i32)
|
||||
(func $std/gc-object/Base~gc (; 6 ;) (type $iv) (param $0 i32)
|
||||
get_local $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -336,7 +337,7 @@
|
||||
get_local $0
|
||||
call $~lib/collector/itcm/__gc_mark
|
||||
)
|
||||
(func $std/gc-object/Custom~gc (; 14 ;) (type $iv) (param $0 i32)
|
||||
(func $std/gc-object/Custom~gc (; 7 ;) (type $iv) (param $0 i32)
|
||||
get_local $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -352,7 +353,7 @@
|
||||
i32.load offset=4
|
||||
call $~lib/collector/itcm/__gc_mark
|
||||
)
|
||||
(func $~lib/collector/itcm/__gc_collect (; 15 ;) (type $v)
|
||||
(func $~lib/collector/itcm/__gc_collect (; 8 ;) (type $v)
|
||||
(local $0 i32)
|
||||
block $break|0
|
||||
block $case1|0
|
||||
@ -378,10 +379,7 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $~lib/gc/gc.collect (; 16 ;) (type $v)
|
||||
call $~lib/collector/itcm/__gc_collect
|
||||
)
|
||||
(func $std/gc-object/main (; 17 ;) (type $v)
|
||||
(func $std/gc-object/main (; 9 ;) (type $v)
|
||||
get_global $~started
|
||||
i32.eqz
|
||||
if
|
||||
@ -390,7 +388,7 @@
|
||||
set_global $~started
|
||||
end
|
||||
)
|
||||
(func $start (; 18 ;) (type $v)
|
||||
(func $start (; 10 ;) (type $v)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
set_global $~lib/allocator/arena/startOffset
|
||||
@ -407,21 +405,16 @@
|
||||
i32.store offset=4
|
||||
get_local $0
|
||||
set_global $std/gc-object/obj
|
||||
call $~lib/gc/gc.collect
|
||||
call $~lib/collector/itcm/__gc_collect
|
||||
get_global $std/gc-object/obj
|
||||
get_global $std/gc-object/obj
|
||||
i32.store
|
||||
call $~lib/gc/gc.collect
|
||||
call $~lib/collector/itcm/__gc_collect
|
||||
i32.const 0
|
||||
set_global $std/gc-object/obj
|
||||
call $~lib/gc/gc.collect
|
||||
call $~lib/collector/itcm/__gc_collect
|
||||
)
|
||||
(func $null (; 19 ;) (type $v)
|
||||
(func $null (; 11 ;) (type $v)
|
||||
nop
|
||||
)
|
||||
(func $~iterateRoots (; 20 ;) (type $FUNCSIG$v)
|
||||
get_global $std/gc-object/obj
|
||||
i32.const 1
|
||||
call_indirect (type $iv)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user