mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 17:01:37 +00:00
implement __runtime_flags
This commit is contained in:
@ -9,10 +9,10 @@
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")
|
||||
(data (i32.const 56) "\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s\00")
|
||||
(data (i32.const 96) "\01\00\00\00$\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")
|
||||
(data (i32.const 144) "\02\00\00\00\08\00\00\00\01\00\00\00\02\00\00\00")
|
||||
(data (i32.const 160) "\01\00\00\00 \00\00\00~\00l\00i\00b\00/\00d\00a\00t\00a\00v\00i\00e\00w\00.\00t\00s\00")
|
||||
(data (i32.const 56) "\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\00")
|
||||
(data (i32.const 104) "\01\00\00\00$\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")
|
||||
(data (i32.const 152) "\02\00\00\00\08\00\00\00\01\00\00\00\02\00\00\00")
|
||||
(data (i32.const 168) "\01\00\00\00 \00\00\00~\00l\00i\00b\00/\00d\00a\00t\00a\00v\00i\00e\00w\00.\00t\00s\00")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(global $~lib/util/runtime/HEADER_SIZE i32 (i32.const 8))
|
||||
@ -25,7 +25,7 @@
|
||||
(global $std/arraybuffer/sliced (mut i32) (i32.const 0))
|
||||
(global $std/arraybuffer/arr8 (mut i32) (i32.const 0))
|
||||
(global $~lib/argc (mut i32) (i32.const 0))
|
||||
(global $~lib/memory/HEAP_BASE i32 (i32.const 200))
|
||||
(global $~lib/memory/HEAP_BASE i32 (i32.const 208))
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
@ -125,7 +125,7 @@
|
||||
call $~lib/allocator/arena/__mem_allocate
|
||||
return
|
||||
)
|
||||
(func $~lib/runtime/runtime.allocate (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/util/runtime/allocate (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
local.get $0
|
||||
call $~lib/util/runtime/adjust
|
||||
@ -398,7 +398,7 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(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
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
@ -407,8 +407,8 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 64
|
||||
i32.const 82
|
||||
i32.const 6
|
||||
i32.const 128
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -424,8 +424,8 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 64
|
||||
i32.const 84
|
||||
i32.const 6
|
||||
i32.const 130
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -448,7 +448,7 @@
|
||||
unreachable
|
||||
end
|
||||
local.get $1
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
local.set $2
|
||||
local.get $2
|
||||
i32.const 0
|
||||
@ -456,7 +456,7 @@
|
||||
call $~lib/memory/memory.fill
|
||||
local.get $2
|
||||
i32.const 2
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#get:byteLength (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
@ -744,7 +744,7 @@
|
||||
select
|
||||
local.set $6
|
||||
local.get $6
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
local.set $7
|
||||
local.get $7
|
||||
local.get $0
|
||||
@ -754,7 +754,7 @@
|
||||
call $~lib/memory/memory.copy
|
||||
local.get $7
|
||||
i32.const 2
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
)
|
||||
(func $~lib/arraybuffer/ArrayBuffer.isView<~lib/array/Array<i32>> (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
@ -1353,9 +1353,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 12
|
||||
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
|
||||
@ -1385,9 +1385,9 @@
|
||||
local.get $0
|
||||
else
|
||||
i32.const 12
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 4
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
end
|
||||
local.get $1
|
||||
i32.const 0
|
||||
@ -1400,18 +1400,18 @@
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
i32.const 16
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
local.get $2
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.set $4
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.shl
|
||||
local.set $5
|
||||
local.get $5
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 2
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.set $6
|
||||
local.get $4
|
||||
local.get $6
|
||||
@ -1440,9 +1440,9 @@
|
||||
local.get $0
|
||||
else
|
||||
i32.const 12
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 6
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
end
|
||||
local.get $1
|
||||
i32.const 2
|
||||
@ -1464,7 +1464,7 @@
|
||||
i32.or
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 168
|
||||
i32.const 176
|
||||
i32.const 21
|
||||
i32.const 6
|
||||
call $~lib/env/abort
|
||||
@ -1475,9 +1475,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 12
|
||||
call $~lib/runtime/runtime.allocate
|
||||
call $~lib/util/runtime/allocate
|
||||
i32.const 7
|
||||
call $~lib/runtime/runtime.register
|
||||
call $~lib/util/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -1556,7 +1556,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 3
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1574,7 +1574,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 7
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1586,7 +1586,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 8
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1604,7 +1604,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 12
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1622,7 +1622,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 16
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1640,7 +1640,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 20
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1658,7 +1658,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 24
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1676,7 +1676,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 28
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1694,7 +1694,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 32
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1712,7 +1712,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 36
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1724,7 +1724,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 37
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1736,7 +1736,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 39
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1748,7 +1748,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 40
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1760,7 +1760,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 41
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1772,7 +1772,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 42
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1784,7 +1784,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 43
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1797,14 +1797,14 @@
|
||||
i32.const 2
|
||||
i32.const 2
|
||||
i32.const 5
|
||||
i32.const 152
|
||||
i32.const 160
|
||||
call $~lib/runtime/runtime.newArray
|
||||
call $~lib/arraybuffer/ArrayBuffer.isView<~lib/array/Array<i32>>
|
||||
i32.eqz
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 46
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1815,7 +1815,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 47
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1828,7 +1828,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 48
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
@ -1848,7 +1848,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 112
|
||||
i32.const 49
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
|
Reference in New Issue
Block a user