assemblyscript/tests/compiler/std/gc-integration.untouched.wat

82 lines
2.2 KiB
Plaintext

(module
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$v (func))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\15\00\00\00s\00t\00d\00/\00g\00c\00-\00i\00n\00t\00e\00g\00r\00a\00t\00i\00o\00n\00.\00t\00s\00")
(table $0 2 funcref)
(elem (i32.const 0) $null $start:std/gc-integration~anonymous|0)
(global $std/gc-integration/B.c i32 (i32.const 8))
(global $std/gc-integration/B.d (mut i32) (i32.const 16))
(global $std/gc-integration/no_ref (mut i32) (i32.const 64))
(global $std/gc-integration/a_ref (mut i32) (i32.const 24))
(global $std/gc-integration/b_ref (mut i32) (i32.const 32))
(global $std/gc-integration/i (mut i32) (i32.const 0))
(global $~lib/memory/HEAP_BASE i32 (i32.const 56))
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $start:std/gc-integration~anonymous|0 (; 1 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
block (result i32)
global.get $std/gc-integration/i
i32.const 1
i32.add
global.set $std/gc-integration/i
global.get $std/gc-integration/i
end
i32.const 3
i32.shl
i32.eq
i32.eqz
if
i32.const 0
i32.const 8
i32.const 18
i32.const 37
call $~lib/env/abort
unreachable
end
)
(func $start:std/gc-integration (; 2 ;) (type $FUNCSIG$v)
global.get $std/gc-integration/B.c
drop
global.get $std/gc-integration/B.d
drop
i32.const 1
call $~iterateRoots
global.get $std/gc-integration/i
i32.const 4
i32.eq
i32.eqz
if
i32.const 0
i32.const 8
i32.const 19
i32.const 0
call $~lib/env/abort
unreachable
end
)
(func $start (; 3 ;) (type $FUNCSIG$v)
call $start:std/gc-integration
)
(func $null (; 4 ;) (type $FUNCSIG$v)
)
(func $~iterateRoots (; 5 ;) (type $FUNCSIG$vi) (param $0 i32)
global.get $std/gc-integration/B.c
local.get $0
call_indirect (type $FUNCSIG$vi)
global.get $std/gc-integration/B.d
local.get $0
call_indirect (type $FUNCSIG$vi)
global.get $std/gc-integration/a_ref
local.get $0
call_indirect (type $FUNCSIG$vi)
global.get $std/gc-integration/b_ref
local.get $0
call_indirect (type $FUNCSIG$vi)
)
)