mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-26 05:01:52 +00:00
some cleanup
This commit is contained in:
@ -15,15 +15,15 @@
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\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 48) "\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 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\00~\00l\00i\00b\00/\00t\00y\00p\00e\00d\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
||||
(data (i32.const 144) "\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 184) "\01\00\00\00\1e\00\00\00s\00t\00d\00/\00d\00a\00t\00a\00v\00i\00e\00w\00.\00t\00s\00")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(global $~lib/runtime/HEADER_SIZE i32 (i32.const 8))
|
||||
(global $~lib/runtime/MAX_BYTELENGTH i32 (i32.const 1073741816))
|
||||
(global $~lib/runtime/runtime.MAX_BYTELENGTH i32 (i32.const 1073741816))
|
||||
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
||||
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
||||
(global $~lib/runtime/HEADER_MAGIC i32 (i32.const -1520547049))
|
||||
@ -35,7 +35,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $~lib/runtime/ADJUSTOBLOCK (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/runtime/runtime.adjust (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
i32.const 1
|
||||
i32.const 32
|
||||
local.get $0
|
||||
@ -131,10 +131,10 @@
|
||||
call $~lib/allocator/arena/__mem_allocate
|
||||
return
|
||||
)
|
||||
(func $~lib/runtime/allocate (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/runtime/runtime.allocate (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
local.get $0
|
||||
call $~lib/runtime/ADJUSTOBLOCK
|
||||
call $~lib/runtime/runtime.adjust
|
||||
call $~lib/memory/memory.allocate
|
||||
local.set $1
|
||||
local.get $1
|
||||
@ -404,7 +404,7 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $~lib/runtime/register (; 6 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/runtime/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
|
||||
@ -412,9 +412,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 153
|
||||
i32.const 4
|
||||
i32.const 64
|
||||
i32.const 145
|
||||
i32.const 6
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -429,9 +429,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 155
|
||||
i32.const 4
|
||||
i32.const 64
|
||||
i32.const 147
|
||||
i32.const 6
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -442,49 +442,40 @@
|
||||
)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 7 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
local.get $1
|
||||
global.get $~lib/runtime/MAX_BYTELENGTH
|
||||
global.get $~lib/runtime/runtime.MAX_BYTELENGTH
|
||||
i32.gt_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 56
|
||||
i32.const 25
|
||||
i32.const 43
|
||||
i32.const 16
|
||||
i32.const 53
|
||||
i32.const 51
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
block $~lib/runtime/ALLOCATE|inlined.0 (result i32)
|
||||
local.get $1
|
||||
local.set $2
|
||||
local.get $2
|
||||
call $~lib/runtime/allocate
|
||||
end
|
||||
local.set $3
|
||||
local.get $3
|
||||
local.get $1
|
||||
call $~lib/runtime/runtime.allocate
|
||||
local.set $2
|
||||
local.get $2
|
||||
i32.const 0
|
||||
local.get $1
|
||||
call $~lib/memory/memory.fill
|
||||
block $~lib/runtime/REGISTER<~lib/arraybuffer/ArrayBuffer>|inlined.0 (result i32)
|
||||
local.get $3
|
||||
local.set $2
|
||||
local.get $2
|
||||
i32.const 2
|
||||
call $~lib/runtime/register
|
||||
end
|
||||
local.get $2
|
||||
i32.const 2
|
||||
call $~lib/runtime/runtime.register
|
||||
)
|
||||
(func $~lib/runtime/ArrayBufferView#constructor (; 8 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $~lib/arraybuffer/ArrayBufferView#constructor (; 8 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
local.get $1
|
||||
global.get $~lib/runtime/MAX_BYTELENGTH
|
||||
global.get $~lib/runtime/runtime.MAX_BYTELENGTH
|
||||
local.get $2
|
||||
i32.shr_u
|
||||
i32.gt_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 236
|
||||
i32.const 57
|
||||
i32.const 11
|
||||
i32.const 65
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -500,9 +491,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 12
|
||||
call $~lib/runtime/allocate
|
||||
call $~lib/runtime/runtime.allocate
|
||||
i32.const 3
|
||||
call $~lib/runtime/register
|
||||
call $~lib/runtime/runtime.register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -532,13 +523,13 @@
|
||||
local.get $0
|
||||
else
|
||||
i32.const 12
|
||||
call $~lib/runtime/allocate
|
||||
call $~lib/runtime/runtime.allocate
|
||||
i32.const 4
|
||||
call $~lib/runtime/register
|
||||
call $~lib/runtime/runtime.register
|
||||
end
|
||||
local.get $1
|
||||
i32.const 0
|
||||
call $~lib/runtime/ArrayBufferView#constructor
|
||||
call $~lib/arraybuffer/ArrayBufferView#constructor
|
||||
local.set $0
|
||||
local.get $0
|
||||
)
|
||||
@ -550,7 +541,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 114
|
||||
i32.const 115
|
||||
i32.const 44
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -581,7 +572,7 @@
|
||||
local.set $3
|
||||
end
|
||||
local.get $3
|
||||
global.get $~lib/runtime/MAX_BYTELENGTH
|
||||
global.get $~lib/runtime/runtime.MAX_BYTELENGTH
|
||||
i32.gt_u
|
||||
local.get $2
|
||||
local.get $3
|
||||
@ -603,9 +594,9 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 12
|
||||
call $~lib/runtime/allocate
|
||||
call $~lib/runtime/runtime.allocate
|
||||
i32.const 5
|
||||
call $~lib/runtime/register
|
||||
call $~lib/runtime/runtime.register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -637,14 +628,14 @@
|
||||
local.get $0
|
||||
i32.load
|
||||
)
|
||||
(func $~lib/runtime/ArrayBufferView#get:byteOffset (; 14 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/arraybuffer/ArrayBufferView#get:byteOffset (; 14 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load offset=4
|
||||
local.get $0
|
||||
i32.load
|
||||
i32.sub
|
||||
)
|
||||
(func $~lib/runtime/ArrayBufferView#get:byteLength (; 15 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/arraybuffer/ArrayBufferView#get:byteLength (; 15 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
)
|
||||
@ -1489,9 +1480,9 @@
|
||||
global.get $std/dataview/array
|
||||
call $~lib/typedarray/Uint8Array#get:buffer
|
||||
global.get $std/dataview/array
|
||||
call $~lib/runtime/ArrayBufferView#get:byteOffset
|
||||
call $~lib/arraybuffer/ArrayBufferView#get:byteOffset
|
||||
global.get $std/dataview/array
|
||||
call $~lib/runtime/ArrayBufferView#get:byteLength
|
||||
call $~lib/arraybuffer/ArrayBufferView#get:byteLength
|
||||
call $~lib/dataview/DataView#constructor
|
||||
global.set $std/dataview/view
|
||||
global.get $std/dataview/view
|
||||
|
Reference in New Issue
Block a user