mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-28 06:01:51 +00:00
use gc interface directly, document
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$vi (func (param i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
@ -78,7 +77,7 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $1
|
||||
)
|
||||
(func $~lib/runtime/doAllocate (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/runtime/allocate (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
i32.const 1
|
||||
i32.const 32
|
||||
@ -99,51 +98,47 @@
|
||||
i32.const 8
|
||||
i32.add
|
||||
)
|
||||
(func $~lib/runtime/assertUnregistered (; 3 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
(func $~lib/runtime/register (; 3 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
i32.const 84
|
||||
i32.le_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 313
|
||||
i32.const 2
|
||||
i32.const 161
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
local.get $0
|
||||
i32.const 8
|
||||
i32.sub
|
||||
local.tee $2
|
||||
i32.load
|
||||
i32.const -1520547049
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 314
|
||||
i32.const 2
|
||||
i32.const 163
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $~lib/runtime/doRegister (; 4 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
call $~lib/runtime/assertUnregistered
|
||||
local.get $0
|
||||
i32.const 8
|
||||
i32.sub
|
||||
local.get $2
|
||||
local.get $1
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/A#constructor (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $call-super/A#constructor (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 4
|
||||
call $~lib/runtime/doAllocate
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 1
|
||||
call $~lib/runtime/doRegister
|
||||
call $~lib/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -163,12 +158,12 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/B#constructor (; 6 ;) (type $FUNCSIG$i) (result i32)
|
||||
(func $call-super/B#constructor (; 5 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/runtime/doAllocate
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 3
|
||||
call $~lib/runtime/doRegister
|
||||
call $~lib/runtime/register
|
||||
call $call-super/A#constructor
|
||||
local.tee $0
|
||||
i32.const 2
|
||||
@ -199,7 +194,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test1 (; 7 ;) (type $FUNCSIG$v)
|
||||
(func $call-super/test1 (; 6 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
call $call-super/B#constructor
|
||||
local.tee $0
|
||||
@ -227,19 +222,19 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/D#constructor (; 8 ;) (type $FUNCSIG$i) (result i32)
|
||||
(func $call-super/D#constructor (; 7 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/runtime/doAllocate
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 5
|
||||
call $~lib/runtime/doRegister
|
||||
call $~lib/runtime/register
|
||||
local.tee $0
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 4
|
||||
call $~lib/runtime/doAllocate
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 4
|
||||
call $~lib/runtime/doRegister
|
||||
call $~lib/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -274,7 +269,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test2 (; 9 ;) (type $FUNCSIG$v)
|
||||
(func $call-super/test2 (; 8 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
call $call-super/D#constructor
|
||||
local.tee $0
|
||||
@ -302,14 +297,14 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/E#constructor (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $call-super/E#constructor (; 9 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 4
|
||||
call $~lib/runtime/doAllocate
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 6
|
||||
call $~lib/runtime/doRegister
|
||||
call $~lib/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -329,12 +324,12 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test3 (; 11 ;) (type $FUNCSIG$v)
|
||||
(func $call-super/test3 (; 10 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/runtime/doAllocate
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 7
|
||||
call $~lib/runtime/doRegister
|
||||
call $~lib/runtime/register
|
||||
call $call-super/E#constructor
|
||||
local.tee $0
|
||||
i32.const 2
|
||||
@ -364,19 +359,19 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/H#constructor (; 12 ;) (type $FUNCSIG$i) (result i32)
|
||||
(func $call-super/H#constructor (; 11 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/runtime/doAllocate
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 9
|
||||
call $~lib/runtime/doRegister
|
||||
call $~lib/runtime/register
|
||||
local.tee $0
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 4
|
||||
call $~lib/runtime/doAllocate
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 8
|
||||
call $~lib/runtime/doRegister
|
||||
call $~lib/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -387,7 +382,7 @@
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test4 (; 13 ;) (type $FUNCSIG$v)
|
||||
(func $call-super/test4 (; 12 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
block (result i32)
|
||||
call $call-super/H#constructor
|
||||
@ -417,19 +412,19 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/J#constructor (; 14 ;) (type $FUNCSIG$i) (result i32)
|
||||
(func $call-super/J#constructor (; 13 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/runtime/doAllocate
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 11
|
||||
call $~lib/runtime/doRegister
|
||||
call $~lib/runtime/register
|
||||
local.tee $0
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 4
|
||||
call $~lib/runtime/doAllocate
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 10
|
||||
call $~lib/runtime/doRegister
|
||||
call $~lib/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -440,7 +435,7 @@
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test5 (; 15 ;) (type $FUNCSIG$v)
|
||||
(func $call-super/test5 (; 14 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
block (result i32)
|
||||
call $call-super/J#constructor
|
||||
@ -470,7 +465,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 16 ;) (type $FUNCSIG$v)
|
||||
(func $start (; 15 ;) (type $FUNCSIG$v)
|
||||
i32.const 88
|
||||
global.set $~lib/allocator/arena/startOffset
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
@ -481,7 +476,7 @@
|
||||
call $call-super/test4
|
||||
call $call-super/test5
|
||||
)
|
||||
(func $null (; 17 ;) (type $FUNCSIG$v)
|
||||
(func $null (; 16 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user