mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-28 06:01:51 +00:00
implement __runtime_flags
This commit is contained in:
@ -6,8 +6,8 @@
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\02\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s")
|
||||
(data (i32.const 48) "\02\00\00\00\1a\00\00\00c\00a\00l\00l\00-\00s\00u\00p\00e\00r\00.\00t\00s")
|
||||
(data (i32.const 8) "\02\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")
|
||||
(data (i32.const 56) "\02\00\00\00\1a\00\00\00c\00a\00l\00l\00-\00s\00u\00p\00e\00r\00.\00t\00s")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
||||
@ -77,7 +77,7 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $1
|
||||
)
|
||||
(func $~lib/runtime/runtime.allocate (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/util/runtime/allocate (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
i32.const 1
|
||||
i32.const 32
|
||||
@ -98,16 +98,16 @@
|
||||
i32.const 8
|
||||
i32.add
|
||||
)
|
||||
(func $~lib/runtime/runtime.register (; 3 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/util/runtime/register (; 3 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
i32.const 84
|
||||
i32.const 92
|
||||
i32.le_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 82
|
||||
i32.const 6
|
||||
i32.const 128
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -121,8 +121,8 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 84
|
||||
i32.const 6
|
||||
i32.const 130
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -136,9 +136,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 4
|
||||
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
|
||||
@ -150,7 +150,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 6
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
@ -161,9 +161,9 @@
|
||||
(func $call-super/B#constructor (; 5 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 3
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
call $call-super/A#constructor
|
||||
local.tee $0
|
||||
i32.const 2
|
||||
@ -174,7 +174,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 15
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
@ -186,7 +186,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 16
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
@ -203,7 +203,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 22
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -215,7 +215,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 23
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -225,16 +225,16 @@
|
||||
(func $call-super/D#constructor (; 7 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 5
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.tee $0
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 4
|
||||
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
|
||||
@ -249,7 +249,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 38
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
@ -261,7 +261,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 39
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
@ -278,7 +278,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 45
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -290,7 +290,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 46
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -302,9 +302,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 4
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 6
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -316,7 +316,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 56
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
@ -327,9 +327,9 @@
|
||||
(func $call-super/test3 (; 10 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 7
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
call $call-super/E#constructor
|
||||
local.tee $0
|
||||
i32.const 2
|
||||
@ -340,7 +340,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 66
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -352,7 +352,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 67
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -362,16 +362,16 @@
|
||||
(func $call-super/H#constructor (; 11 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 9
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.tee $0
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 4
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 8
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -393,7 +393,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 84
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -405,7 +405,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 85
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -415,16 +415,16 @@
|
||||
(func $call-super/J#constructor (; 13 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 11
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.tee $0
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 4
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 10
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -446,7 +446,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 104
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -458,7 +458,7 @@
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 64
|
||||
i32.const 105
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -466,7 +466,7 @@
|
||||
end
|
||||
)
|
||||
(func $start (; 15 ;) (type $FUNCSIG$v)
|
||||
i32.const 88
|
||||
i32.const 96
|
||||
global.set $~lib/allocator/arena/startOffset
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
global.set $~lib/allocator/arena/offset
|
||||
|
Reference in New Issue
Block a user