mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-28 14:11:46 +00:00
implement __runtime_flags
This commit is contained in:
@ -9,8 +9,8 @@
|
||||
(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*\00\00\00\00\00\00\00\00\00\00\00r\00u\00n\00t\00i\00m\00e\00/\00i\00n\00s\00t\00a\00n\00c\00e\00o\00f\00.\00t\00s\00")
|
||||
(data (i32.const 72) "\02\00\00\00\1e\00\00\00\00\00\00\00\00\00\00\00~\00l\00i\00b\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s\00")
|
||||
(data (i32.const 120) "\02\00\00\00\16\00\00\00\00\00\00\00\00\00\00\00g\00c\00.\00r\00e\00g\00i\00s\00t\00e\00r\00")
|
||||
(data (i32.const 72) "\02\00\00\00(\00\00\00\00\00\00\00\00\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s\00")
|
||||
(data (i32.const 128) "\02\00\00\00\16\00\00\00\00\00\00\00\00\00\00\00g\00c\00.\00r\00e\00g\00i\00s\00t\00e\00r\00")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(global $gc/_dummy/collect_count (mut i32) (i32.const 0))
|
||||
@ -39,12 +39,12 @@
|
||||
(global $runtime/instanceof/nullCat (mut i32) (i32.const 0))
|
||||
(global $runtime/instanceof/nullBlackcat (mut i32) (i32.const 0))
|
||||
(global $~lib/started (mut i32) (i32.const 0))
|
||||
(global $~lib/memory/HEAP_BASE i32 (i32.const 160))
|
||||
(global $~lib/memory/HEAP_BASE i32 (i32.const 168))
|
||||
(global $~lib/capabilities i32 (i32.const 2))
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "main" (func $runtime/instanceof/main))
|
||||
(export ".capabilities" (global $~lib/capabilities))
|
||||
(export "$.capabilities" (global $~lib/capabilities))
|
||||
(func $~lib/util/runtime/adjust (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
i32.const 1
|
||||
i32.const 32
|
||||
@ -141,7 +141,7 @@
|
||||
call $~lib/allocator/arena/__mem_allocate
|
||||
return
|
||||
)
|
||||
(func $~lib/runtime/runtime.allocate (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/util/runtime/allocate (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
local.get $0
|
||||
call $~lib/util/runtime/adjust
|
||||
@ -164,7 +164,7 @@
|
||||
i32.add
|
||||
)
|
||||
(func $gc/_dummy/__ref_register (; 6 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
i32.const 136
|
||||
i32.const 144
|
||||
i32.const 1
|
||||
local.get $0
|
||||
f64.convert_i32_u
|
||||
@ -180,7 +180,7 @@
|
||||
local.get $0
|
||||
global.set $gc/_dummy/register_ref
|
||||
)
|
||||
(func $~lib/runtime/runtime.register (; 7 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/util/runtime/register (; 7 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
@ -189,8 +189,8 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 88
|
||||
i32.const 82
|
||||
i32.const 6
|
||||
i32.const 128
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -206,8 +206,8 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 88
|
||||
i32.const 84
|
||||
i32.const 6
|
||||
i32.const 130
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -223,9 +223,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 1
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -235,9 +235,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 3
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -250,9 +250,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 4
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
|
Reference in New Issue
Block a user