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

@@ -2939,7 +2939,44 @@
end
end
)
(func $~lib/rt/pure/growRoots (; 24 ;) (type $FUNCSIG$v)
(func $~lib/rt/tlsf/__free (; 24 ;) (type $FUNCSIG$vi) (param $0 i32)
global.get $~lib/rt/tlsf/ROOT
i32.eqz
if
i32.const 0
i32.const 24
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 24
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 (; 25 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -2970,9 +3007,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
@@ -2984,7 +3034,7 @@
i32.add
global.set $~lib/rt/pure/END
)
(func $~lib/rt/pure/appendRoot (; 25 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/appendRoot (; 26 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
global.get $~lib/rt/pure/CUR
local.set $1
@@ -3000,11 +3050,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 (; 26 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/decrement (; 27 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
@@ -3108,7 +3158,7 @@
end
end
)
(func $~lib/rt/pure/__release (; 27 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/__release (; 28 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
global.get $~lib/heap/HEAP_BASE
i32.gt_u
@@ -3119,7 +3169,7 @@
call $~lib/rt/pure/decrement
end
)
(func $rc/ternary-mismatch/test2 (; 28 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $rc/ternary-mismatch/test2 (; 29 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
if (result i32)
global.get $rc/ternary-mismatch/gloRef
@@ -3128,7 +3178,7 @@
call $rc/ternary-mismatch/getRef
end
)
(func $start:rc/ternary-mismatch (; 29 ;) (type $FUNCSIG$v)
(func $start:rc/ternary-mismatch (; 30 ;) (type $FUNCSIG$v)
i32.const 0
call $rc/ternary-mismatch/Ref#constructor
global.set $rc/ternary-mismatch/gloRef
@@ -3147,10 +3197,10 @@
global.get $rc/ternary-mismatch/gloRef
call $~lib/rt/pure/__release
)
(func $start (; 30 ;) (type $FUNCSIG$v)
(func $start (; 31 ;) (type $FUNCSIG$v)
call $start:rc/ternary-mismatch
)
(func $~lib/rt/pure/markGray (; 31 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/markGray (; 32 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
@@ -3177,7 +3227,7 @@
call $~lib/rt/__visit_members
end
)
(func $~lib/rt/pure/scanBlack (; 32 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/scanBlack (; 33 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
local.get $0
i32.load offset=4
@@ -3194,7 +3244,7 @@
i32.const 4
call $~lib/rt/__visit_members
)
(func $~lib/rt/pure/scan (; 33 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/scan (; 34 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
@@ -3231,7 +3281,7 @@
end
end
)
(func $~lib/rt/pure/collectWhite (; 34 ;) (type $FUNCSIG$vi) (param $0 i32)
(func $~lib/rt/pure/collectWhite (; 35 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
@@ -3250,17 +3300,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 (; 35 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/rt/pure/__visit (; 36 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
@@ -3414,7 +3473,7 @@
end
end
)
(func $~lib/rt/__visit_members (; 36 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/rt/__visit_members (; 37 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
block
end
@@ -3471,6 +3530,6 @@
unreachable
end
)
(func $null (; 37 ;) (type $FUNCSIG$v)
(func $null (; 38 ;) (type $FUNCSIG$v)
)
)