mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 08:51:34 +00:00
baseline
This commit is contained in:
@ -408,7 +408,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 64
|
||||
i32.const 161
|
||||
i32.const 151
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -425,7 +425,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 64
|
||||
i32.const 163
|
||||
i32.const 153
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2037,7 +2037,6 @@
|
||||
)
|
||||
(func $~lib/runtime/ArrayBufferView#constructor (; 16 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $1
|
||||
global.get $~lib/runtime/MAX_BYTELENGTH
|
||||
local.get $2
|
||||
@ -2046,7 +2045,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 64
|
||||
i32.const 244
|
||||
i32.const 234
|
||||
i32.const 57
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2062,18 +2061,10 @@
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
block $~lib/runtime/REGISTER<ArrayBufferView>|inlined.0 (result i32)
|
||||
block $~lib/runtime/ALLOCATE|inlined.2 (result i32)
|
||||
i32.const 12
|
||||
local.set $4
|
||||
local.get $4
|
||||
call $~lib/runtime/allocate
|
||||
end
|
||||
local.set $4
|
||||
local.get $4
|
||||
i32.const 3
|
||||
call $~lib/runtime/register
|
||||
end
|
||||
i32.const 12
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 3
|
||||
call $~lib/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -2098,19 +2089,12 @@
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/typedarray/Uint8Array#constructor (; 17 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
if (result i32)
|
||||
local.get $0
|
||||
else
|
||||
block $~lib/runtime/ALLOCATE|inlined.3 (result i32)
|
||||
i32.const 12
|
||||
local.set $2
|
||||
local.get $2
|
||||
call $~lib/runtime/allocate
|
||||
end
|
||||
local.set $2
|
||||
local.get $2
|
||||
i32.const 12
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 4
|
||||
call $~lib/runtime/register
|
||||
end
|
||||
@ -2126,15 +2110,15 @@
|
||||
(local $6 i32)
|
||||
i32.const 16
|
||||
call $~lib/runtime/allocate
|
||||
local.get $2
|
||||
local.get $1
|
||||
call $~lib/runtime/register
|
||||
local.set $4
|
||||
local.get $0
|
||||
local.get $3
|
||||
local.get $2
|
||||
i32.shl
|
||||
local.set $5
|
||||
local.get $0
|
||||
local.get $3
|
||||
local.get $2
|
||||
i32.shl
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 2
|
||||
@ -2152,29 +2136,22 @@
|
||||
local.get $4
|
||||
local.get $0
|
||||
i32.store offset=12
|
||||
local.get $1
|
||||
local.get $3
|
||||
if
|
||||
local.get $6
|
||||
local.get $1
|
||||
local.get $3
|
||||
local.get $5
|
||||
call $~lib/memory/memory.copy
|
||||
end
|
||||
local.get $4
|
||||
)
|
||||
(func $~lib/typedarray/Int32Array#constructor (; 19 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
if (result i32)
|
||||
local.get $0
|
||||
else
|
||||
block $~lib/runtime/ALLOCATE|inlined.4 (result i32)
|
||||
i32.const 12
|
||||
local.set $2
|
||||
local.get $2
|
||||
call $~lib/runtime/allocate
|
||||
end
|
||||
local.set $2
|
||||
local.get $2
|
||||
i32.const 12
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 6
|
||||
call $~lib/runtime/register
|
||||
end
|
||||
@ -2186,7 +2163,6 @@
|
||||
)
|
||||
(func $~lib/dataview/DataView#constructor (; 20 ;) (type $FUNCSIG$iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
local.get $3
|
||||
global.get $~lib/builtins/i32.MIN_VALUE
|
||||
i32.eq
|
||||
@ -2219,18 +2195,10 @@
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
block $~lib/runtime/REGISTER<DataView>|inlined.0 (result i32)
|
||||
block $~lib/runtime/ALLOCATE|inlined.5 (result i32)
|
||||
i32.const 12
|
||||
local.set $4
|
||||
local.get $4
|
||||
call $~lib/runtime/allocate
|
||||
end
|
||||
local.set $4
|
||||
local.get $4
|
||||
i32.const 7
|
||||
call $~lib/runtime/register
|
||||
end
|
||||
i32.const 12
|
||||
call $~lib/runtime/allocate
|
||||
i32.const 7
|
||||
call $~lib/runtime/register
|
||||
local.set $0
|
||||
end
|
||||
local.get $0
|
||||
@ -2249,9 +2217,9 @@
|
||||
local.get $1
|
||||
local.get $2
|
||||
i32.add
|
||||
local.set $5
|
||||
local.set $4
|
||||
local.get $0
|
||||
local.get $5
|
||||
local.get $4
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
local.get $3
|
||||
@ -2263,8 +2231,6 @@
|
||||
i32.load
|
||||
)
|
||||
(func $start:std/arraybuffer (; 22 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
i32.const 7
|
||||
i32.add
|
||||
@ -2524,17 +2490,11 @@
|
||||
i32.const 1
|
||||
call $~lib/typedarray/Uint8Array#constructor
|
||||
global.set $std/arraybuffer/arr8
|
||||
block $~lib/runtime/MAKEARRAY<i32>|inlined.0 (result i32)
|
||||
i32.const 2
|
||||
local.set $0
|
||||
i32.const 152
|
||||
local.set $1
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.const 5
|
||||
i32.const 2
|
||||
call $~lib/runtime/makeArray
|
||||
end
|
||||
i32.const 2
|
||||
i32.const 5
|
||||
i32.const 2
|
||||
i32.const 152
|
||||
call $~lib/runtime/makeArray
|
||||
call $~lib/arraybuffer/ArrayBuffer.isView<Array<i32>>
|
||||
i32.eqz
|
||||
i32.eqz
|
||||
|
Reference in New Issue
Block a user