fixes, dist files

This commit is contained in:
dcode
2019-05-25 23:14:21 +02:00
parent 476f7d904c
commit bc294203bf
41 changed files with 3364 additions and 1602 deletions

View File

@ -2912,7 +2912,44 @@
end
end
)
(func $~lib/rt/pure/growRoots (; 21 ;) (type $FUNCSIG$v)
(func $~lib/rt/tlsf/__free (; 21 ;) (type $FUNCSIG$vi) (param $0 i32)
global.get $~lib/rt/tlsf/ROOT
i32.eqz
if
i32.const 0
i32.const 88
i32.const 561
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 0
i32.ne
if (result i32)
local.get $0
i32.const 15
i32.and
i32.eqz
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 88
i32.const 562
i32.const 2
call $~lib/builtins/abort
unreachable
end
global.get $~lib/rt/tlsf/ROOT
local.get $0
i32.const 16
i32.sub
call $~lib/rt/tlsf/freeBlock
)
(func $~lib/rt/pure/growRoots (; 22 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@ -2943,9 +2980,22 @@
call $~lib/rt/tlsf/__alloc
local.set $5
local.get $5
i32.const 16
i32.sub
call $~lib/rt/rtrace/onfree
local.get $5
local.get $0
local.get $1
call $~lib/memory/memory.copy
local.get $0
if
local.get $0
i32.const 16
i32.sub
call $~lib/rt/rtrace/onalloc
local.get $0
call $~lib/rt/tlsf/__free
end
local.get $5
global.set $~lib/rt/pure/ROOTS
local.get $5
@ -2957,7 +3007,7 @@
i32.add
global.set $~lib/rt/pure/END
)
(func $~lib/rt/pure/appendRoot (; 22 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/appendRoot (; 23 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
global.get $~lib/rt/pure/CUR
local.set $1
@ -2973,11 +3023,11 @@
local.get $0
i32.store
local.get $1
i32.const 1
i32.const 4
i32.add
global.set $~lib/rt/pure/CUR
)
(func $~lib/rt/pure/decrement (; 23 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/decrement (; 24 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
@ -3081,7 +3131,7 @@
end
end
)
(func $~lib/rt/pure/__release (; 24 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/__release (; 25 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
global.get $~lib/heap/HEAP_BASE
i32.gt_u
@ -3092,11 +3142,11 @@
call $~lib/rt/pure/decrement
end
)
(func $rc/local-init/getRef (; 25 ;) (type $FUNCSIG$i) (result i32)
(func $rc/local-init/getRef (; 26 ;) (type $FUNCSIG$i) (result i32)
i32.const 24
call $~lib/rt/pure/__retain
)
(func $rc/local-init/Ref#constructor (; 26 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $rc/local-init/Ref#constructor (; 27 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
@ -3108,7 +3158,7 @@
end
local.get $0
)
(func $start:rc/local-init (; 27 ;) (type $FUNCSIG$v)
(func $start:rc/local-init (; 28 ;) (type $FUNCSIG$v)
(local $0 i32)
block
i32.const 24
@ -3131,10 +3181,10 @@
call $~lib/rt/pure/__release
end
)
(func $start (; 28 ;) (type $FUNCSIG$v)
(func $start (; 29 ;) (type $FUNCSIG$v)
call $start:rc/local-init
)
(func $~lib/rt/pure/markGray (; 29 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/markGray (; 30 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
@ -3161,7 +3211,7 @@
call $~lib/rt/__visit_members
end
)
(func $~lib/rt/pure/scanBlack (; 30 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/scanBlack (; 31 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
local.get $0
i32.load offset=4
@ -3178,7 +3228,7 @@
i32.const 4
call $~lib/rt/__visit_members
)
(func $~lib/rt/pure/scan (; 31 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/scan (; 32 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
@ -3215,7 +3265,7 @@
end
end
)
(func $~lib/rt/pure/collectWhite (; 32 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/collectWhite (; 33 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
@ -3234,17 +3284,26 @@
i32.const 0
end
if
local.get $0
local.get $1
i32.const 1879048192
i32.const -1
i32.xor
i32.and
i32.const 0
i32.or
i32.store offset=4
local.get $0
i32.const 16
i32.add
i32.const 5
call $~lib/rt/__visit_members
global.get $~lib/rt/tlsf/ROOT
local.get $0
call $~lib/rt/tlsf/freeBlock
end
global.get $~lib/rt/tlsf/ROOT
local.get $0
call $~lib/rt/tlsf/freeBlock
)
(func $~lib/rt/pure/__visit (; 33 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/rt/pure/__visit (; 34 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -3398,7 +3457,7 @@
end
end
)
(func $~lib/rt/__visit_members (; 34 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/rt/__visit_members (; 35 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
block
end
@ -3455,6 +3514,6 @@
unreachable
end
)
(func $null (; 35 ;) (type $FUNCSIG$v)
(func $null (; 36 ;) (type $FUNCSIG$v)
)
)