mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 12:11:50 +00:00
implement __runtime_flags
This commit is contained in:
@ -8,12 +8,12 @@
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(import "env" "trace" (func $~lib/env/trace (param i32 i32 f64 f64 f64 f64 f64)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\02\00\00\00\1e")
|
||||
(data (i32.const 24) "~\00l\00i\00b\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s")
|
||||
(data (i32.const 56) "\02\00\00\00\16")
|
||||
(data (i32.const 72) "g\00c\00.\00r\00e\00g\00i\00s\00t\00e\00r")
|
||||
(data (i32.const 96) "\02\00\00\00&")
|
||||
(data (i32.const 112) "g\00c\00/\00g\00l\00o\00b\00a\00l\00-\00a\00s\00s\00i\00g\00n\00.\00t\00s")
|
||||
(data (i32.const 8) "\02\00\00\00(")
|
||||
(data (i32.const 24) "~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s")
|
||||
(data (i32.const 64) "\02\00\00\00\16")
|
||||
(data (i32.const 80) "g\00c\00.\00r\00e\00g\00i\00s\00t\00e\00r")
|
||||
(data (i32.const 104) "\02\00\00\00&")
|
||||
(data (i32.const 120) "g\00c\00/\00g\00l\00o\00b\00a\00l\00-\00a\00s\00s\00i\00g\00n\00.\00t\00s")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(global $gc/_dummy/register_count (mut i32) (i32.const 0))
|
||||
@ -29,7 +29,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "main" (func $gc/global-assign/main))
|
||||
(export ".capabilities" (global $~lib/capabilities))
|
||||
(export "$.capabilities" (global $~lib/capabilities))
|
||||
(func $~lib/allocator/arena/__mem_allocate (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
@ -92,7 +92,7 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $1
|
||||
)
|
||||
(func $~lib/runtime/runtime.allocate (; 3 ;) (type $FUNCSIG$i) (result i32)
|
||||
(func $~lib/util/runtime/allocate (; 3 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 16
|
||||
call $~lib/allocator/arena/__mem_allocate
|
||||
@ -113,7 +113,7 @@
|
||||
i32.add
|
||||
)
|
||||
(func $gc/_dummy/__ref_register (; 4 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
i32.const 72
|
||||
i32.const 80
|
||||
i32.const 1
|
||||
local.get $0
|
||||
f64.convert_i32_u
|
||||
@ -129,16 +129,16 @@
|
||||
local.get $0
|
||||
global.set $gc/_dummy/register_ref
|
||||
)
|
||||
(func $~lib/runtime/runtime.register (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/util/runtime/register (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
local.get $0
|
||||
i32.const 152
|
||||
i32.const 160
|
||||
i32.le_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 24
|
||||
i32.const 82
|
||||
i32.const 6
|
||||
i32.const 128
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -152,8 +152,8 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 24
|
||||
i32.const 84
|
||||
i32.const 6
|
||||
i32.const 130
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -165,12 +165,12 @@
|
||||
local.get $0
|
||||
)
|
||||
(func $start:gc/global-assign (; 6 ;) (type $FUNCSIG$v)
|
||||
i32.const 152
|
||||
i32.const 160
|
||||
global.set $~lib/allocator/arena/startOffset
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
global.set $~lib/allocator/arena/offset
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/allocate
|
||||
call $~lib/util/runtime/register
|
||||
global.set $gc/global-assign/global
|
||||
global.get $gc/global-assign/global
|
||||
global.set $gc/global-assign/globalRef
|
||||
@ -179,7 +179,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 112
|
||||
i32.const 120
|
||||
i32.const 11
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -188,7 +188,7 @@
|
||||
global.get $gc/_dummy/link_count
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 112
|
||||
i32.const 120
|
||||
i32.const 12
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -197,21 +197,21 @@
|
||||
global.get $gc/_dummy/unlink_count
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 112
|
||||
i32.const 120
|
||||
i32.const 13
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/allocate
|
||||
call $~lib/util/runtime/register
|
||||
global.set $gc/global-assign/global
|
||||
global.get $gc/_dummy/register_count
|
||||
i32.const 2
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 112
|
||||
i32.const 120
|
||||
i32.const 18
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -220,7 +220,7 @@
|
||||
global.get $gc/_dummy/link_count
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 112
|
||||
i32.const 120
|
||||
i32.const 19
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -229,7 +229,7 @@
|
||||
global.get $gc/_dummy/unlink_count
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 112
|
||||
i32.const 120
|
||||
i32.const 20
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
|
Reference in New Issue
Block a user