implement __runtime_flags

This commit is contained in:
dcode
2019-04-05 01:59:01 +02:00
parent ed32a4c8ba
commit a9e4813798
90 changed files with 14549 additions and 7499 deletions

View File

@ -7,7 +7,7 @@
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\01\00\00\00\16\00\00\00i\00n\00l\00i\00n\00i\00n\00g\00.\00t\00s")
(data (i32.const 40) "\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s")
(data (i32.const 40) "\01\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")
(table $0 2 funcref)
(elem (i32.const 0) $null $inlining/func_fe~anonymous|0)
(global $~lib/argc (mut i32) (i32.const 0))
@ -102,7 +102,7 @@
global.set $~lib/allocator/arena/offset
local.get $1
)
(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)
i32.const 1
i32.const 32
@ -123,16 +123,16 @@
i32.const 8
i32.add
)
(func $~lib/runtime/runtime.register (; 6 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/util/runtime/register (; 6 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
i32.const 80
i32.const 88
i32.le_u
if
i32.const 0
i32.const 48
i32.const 82
i32.const 6
i32.const 128
i32.const 4
call $~lib/env/abort
unreachable
end
@ -146,8 +146,8 @@
if
i32.const 0
i32.const 48
i32.const 84
i32.const 6
i32.const 130
i32.const 4
call $~lib/env/abort
unreachable
end
@ -159,16 +159,16 @@
(func $inlining/test_ctor (; 7 ;) (type $FUNCSIG$v)
(local $0 i32)
i32.const 16
call $~lib/runtime/runtime.allocate
call $~lib/util/runtime/allocate
i32.const 2
call $~lib/runtime/runtime.register
call $~lib/util/runtime/register
local.tee $0
i32.eqz
if
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
local.set $0
end
local.get $0
@ -240,7 +240,7 @@
)
(func $start (; 8 ;) (type $FUNCSIG$v)
call $inlining/test_funcs
i32.const 80
i32.const 88
global.set $~lib/allocator/arena/startOffset
global.get $~lib/allocator/arena/startOffset
global.set $~lib/allocator/arena/offset