mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 07:22:21 +00:00
81 lines
1.8 KiB
Plaintext
81 lines
1.8 KiB
Plaintext
(module
|
|
(type $iv (func (param i32)))
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
(type $v (func))
|
|
(type $FUNCSIG$v (func))
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
(global $std/gc-integration/B.d (mut i32) (i32.const 16))
|
|
(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))
|
|
(table 1 1 anyfunc)
|
|
(elem (i32.const 0) $start~anonymous|0)
|
|
(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")
|
|
(export "memory" (memory $0))
|
|
(export "table" (table $0))
|
|
(start $start)
|
|
(func $start~anonymous|0 (; 1 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
|
(set_global $std/gc-integration/i
|
|
(i32.add
|
|
(get_global $std/gc-integration/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_global $std/gc-integration/i)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 18)
|
|
(i32.const 37)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $start (; 2 ;) (; has Stack IR ;) (type $v)
|
|
(call $~iterateRoots)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/gc-integration/i)
|
|
(i32.const 4)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 19)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~iterateRoots (; 3 ;) (; has Stack IR ;) (type $FUNCSIG$v)
|
|
(call_indirect (type $iv)
|
|
(i32.const 8)
|
|
(i32.const 0)
|
|
)
|
|
(call_indirect (type $iv)
|
|
(get_global $std/gc-integration/B.d)
|
|
(i32.const 0)
|
|
)
|
|
(call_indirect (type $iv)
|
|
(get_global $std/gc-integration/a_ref)
|
|
(i32.const 0)
|
|
)
|
|
(call_indirect (type $iv)
|
|
(get_global $std/gc-integration/b_ref)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|