mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-25 12:41:50 +00:00
use overloads for checked access
This commit is contained in:
@ -11,21 +11,21 @@
|
||||
(data (i32.const 8) "\01\00\00\00\03\00\00\00\00\01\02")
|
||||
(data (i32.const 24) "\02\00\00\00\10\00\00\00\10\00\00\00\10\00\00\00\03\00\00\00\03\00\00\00")
|
||||
(data (i32.const 48) "\03\00\00\00(\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00-\00l\00i\00t\00e\00r\00a\00l\00.\00t\00s\00")
|
||||
(data (i32.const 96) "\01\00\00\00\0c\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00")
|
||||
(data (i32.const 120) "\04\00\00\00\10\00\00\00h\00\00\00h\00\00\00\0c\00\00\00\03\00\00\00")
|
||||
(data (i32.const 144) "\01\00\00\00\00\00\00\00")
|
||||
(data (i32.const 152) "\04\00\00\00\10\00\00\00\98\00\00\00\98\00\00\00\00\00\00\00\00\00\00\00")
|
||||
(data (i32.const 176) "\03\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 216) "\03\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 264) "\03\00\00\00\1a\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
||||
(data (i32.const 96) "\03\00\00\00\1a\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
||||
(data (i32.const 136) "\01\00\00\00\0c\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00")
|
||||
(data (i32.const 160) "\04\00\00\00\10\00\00\00\90\00\00\00\90\00\00\00\0c\00\00\00\03\00\00\00")
|
||||
(data (i32.const 184) "\01\00\00\00\00\00\00\00")
|
||||
(data (i32.const 192) "\04\00\00\00\10\00\00\00\c0\00\00\00\c0\00\00\00\00\00\00\00\00\00\00\00")
|
||||
(data (i32.const 216) "\03\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 256) "\03\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")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(global $std/array-literal/staticArrayI8 i32 (i32.const 32))
|
||||
(global $~lib/runtime/GC_IMPLEMENTED i32 (i32.const 0))
|
||||
(global $~lib/runtime/HEADER_SIZE i32 (i32.const 8))
|
||||
(global $~lib/runtime/HEADER_MAGIC i32 (i32.const -1520547049))
|
||||
(global $std/array-literal/staticArrayI32 i32 (i32.const 128))
|
||||
(global $std/array-literal/emptyArrayI32 (mut i32) (i32.const 160))
|
||||
(global $std/array-literal/staticArrayI32 i32 (i32.const 168))
|
||||
(global $std/array-literal/emptyArrayI32 (mut i32) (i32.const 200))
|
||||
(global $std/array-literal/i (mut i32) (i32.const 0))
|
||||
(global $~lib/runtime/MAX_BYTELENGTH i32 (i32.const 1073741816))
|
||||
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
||||
@ -35,7 +35,7 @@
|
||||
(global $std/array-literal/dynamicArrayI32 (mut i32) (i32.const 0))
|
||||
(global $std/array-literal/dynamicArrayRef (mut i32) (i32.const 0))
|
||||
(global $std/array-literal/dynamicArrayRefWithCtor (mut i32) (i32.const 0))
|
||||
(global $~lib/memory/HEAP_BASE i32 (i32.const 300))
|
||||
(global $~lib/memory/HEAP_BASE i32 (i32.const 304))
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
@ -43,11 +43,57 @@
|
||||
local.get $0
|
||||
i32.load offset=12
|
||||
)
|
||||
(func $~lib/array/Array<i32>#get:length (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/array/Array<i8>#__get (; 2 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.const 0
|
||||
i32.shr_u
|
||||
i32.ge_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 68
|
||||
i32.const 61
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
local.get $0
|
||||
i32.load offset=4
|
||||
local.get $1
|
||||
i32.const 0
|
||||
i32.shl
|
||||
i32.add
|
||||
i32.load8_s
|
||||
)
|
||||
(func $~lib/array/Array<i32>#get:length (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load offset=12
|
||||
)
|
||||
(func $~lib/runtime/ADJUSTOBLOCK (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/array/Array<i32>#__get (; 4 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.const 2
|
||||
i32.shr_u
|
||||
i32.ge_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 104
|
||||
i32.const 68
|
||||
i32.const 61
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
local.get $0
|
||||
i32.load offset=4
|
||||
local.get $1
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
i32.load
|
||||
)
|
||||
(func $~lib/runtime/ADJUSTOBLOCK (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
i32.const 1
|
||||
i32.const 32
|
||||
local.get $0
|
||||
@ -59,7 +105,7 @@
|
||||
i32.sub
|
||||
i32.shl
|
||||
)
|
||||
(func $~lib/memory/memory.allocate (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/memory/memory.allocate (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -144,7 +190,7 @@
|
||||
end
|
||||
return
|
||||
)
|
||||
(func $~lib/runtime/doAllocate (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/runtime/doAllocate (; 7 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
local.get $0
|
||||
call $~lib/runtime/ADJUSTOBLOCK
|
||||
@ -160,7 +206,7 @@
|
||||
global.get $~lib/runtime/HEADER_SIZE
|
||||
i32.add
|
||||
)
|
||||
(func $~lib/memory/memory.fill (; 6 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/memory/memory.fill (; 8 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i64)
|
||||
@ -416,14 +462,14 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $~lib/runtime/assertUnregistered (; 7 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
(func $~lib/runtime/assertUnregistered (; 9 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
local.get $0
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
i32.gt_u
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 184
|
||||
i32.const 224
|
||||
i32.const 191
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
@ -438,14 +484,14 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 184
|
||||
i32.const 224
|
||||
i32.const 192
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $~lib/runtime/doRegister (; 8 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/runtime/doRegister (; 10 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
call $~lib/runtime/assertUnregistered
|
||||
local.get $0
|
||||
@ -455,7 +501,7 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 11 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
local.get $1
|
||||
@ -463,7 +509,7 @@
|
||||
i32.gt_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 224
|
||||
i32.const 264
|
||||
i32.const 24
|
||||
i32.const 43
|
||||
call $~lib/env/abort
|
||||
@ -488,11 +534,11 @@
|
||||
call $~lib/runtime/doRegister
|
||||
end
|
||||
)
|
||||
(func $~lib/runtime/ALLOCATE (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/runtime/ALLOCATE (; 12 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
call $~lib/runtime/doAllocate
|
||||
)
|
||||
(func $~lib/runtime/ArrayBufferView#constructor (; 11 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $~lib/runtime/ArrayBufferView#constructor (; 13 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $1
|
||||
@ -502,7 +548,7 @@
|
||||
i32.gt_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 184
|
||||
i32.const 224
|
||||
i32.const 226
|
||||
i32.const 57
|
||||
call $~lib/env/abort
|
||||
@ -550,7 +596,7 @@
|
||||
i32.store offset=8
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/array/Array<i8>#constructor (; 12 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/array/Array<i8>#constructor (; 14 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
if (result i32)
|
||||
@ -575,13 +621,7 @@
|
||||
i32.store offset=12
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#get:byteLength (; 13 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
global.get $~lib/runtime/HEADER_SIZE
|
||||
i32.sub
|
||||
i32.load offset=4
|
||||
)
|
||||
(func $~lib/util/memory/memcpy (; 14 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/util/memory/memcpy (; 15 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
@ -1782,7 +1822,7 @@
|
||||
i32.store8
|
||||
end
|
||||
)
|
||||
(func $~lib/memory/memory.copy (; 15 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/memory/memory.copy (; 16 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(local $3 i32)
|
||||
block $~lib/util/memory/memmove|inlined.0
|
||||
local.get $0
|
||||
@ -2011,12 +2051,12 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $~lib/memory/memory.free (; 16 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
(func $~lib/memory/memory.free (; 17 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
(local $1 i32)
|
||||
local.get $0
|
||||
local.set $1
|
||||
)
|
||||
(func $~lib/runtime/doReallocate (; 17 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/runtime/doReallocate (; 18 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
@ -2080,7 +2120,7 @@
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 184
|
||||
i32.const 224
|
||||
i32.const 100
|
||||
i32.const 8
|
||||
call $~lib/env/abort
|
||||
@ -2113,22 +2153,16 @@
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/array/ensureCapacity (; 18 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/array/ensureCapacity (; 19 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load
|
||||
local.set $3
|
||||
local.get $3
|
||||
call $~lib/arraybuffer/ArrayBuffer#get:byteLength
|
||||
i32.load offset=8
|
||||
local.get $2
|
||||
i32.shr_u
|
||||
local.set $4
|
||||
local.get $1
|
||||
local.get $4
|
||||
i32.gt_u
|
||||
if
|
||||
local.get $1
|
||||
@ -2138,43 +2172,46 @@
|
||||
i32.gt_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 272
|
||||
i32.const 12
|
||||
i32.const 104
|
||||
i32.const 10
|
||||
i32.const 64
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
local.get $0
|
||||
i32.load
|
||||
local.set $3
|
||||
local.get $1
|
||||
local.get $2
|
||||
i32.shl
|
||||
local.set $5
|
||||
local.set $4
|
||||
block $~lib/runtime/REALLOCATE|inlined.0 (result i32)
|
||||
local.get $3
|
||||
local.set $5
|
||||
local.get $4
|
||||
local.set $6
|
||||
local.get $5
|
||||
local.set $7
|
||||
local.get $6
|
||||
local.get $7
|
||||
call $~lib/runtime/doReallocate
|
||||
end
|
||||
local.set $7
|
||||
local.get $7
|
||||
local.set $6
|
||||
local.get $6
|
||||
local.get $3
|
||||
i32.ne
|
||||
if
|
||||
local.get $0
|
||||
local.get $7
|
||||
local.get $6
|
||||
i32.store
|
||||
local.get $0
|
||||
local.get $7
|
||||
local.get $6
|
||||
i32.store offset=4
|
||||
end
|
||||
local.get $0
|
||||
local.get $5
|
||||
local.get $4
|
||||
i32.store offset=8
|
||||
end
|
||||
)
|
||||
(func $~lib/array/Array<i8>#__set (; 19 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/array/Array<i8>#__set (; 20 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.const 1
|
||||
@ -2201,7 +2238,7 @@
|
||||
i32.store offset=12
|
||||
end
|
||||
)
|
||||
(func $~lib/array/Array<i32>#constructor (; 20 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/array/Array<i32>#constructor (; 21 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
if (result i32)
|
||||
@ -2226,7 +2263,7 @@
|
||||
i32.store offset=12
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/array/Array<i32>#__set (; 21 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/array/Array<i32>#__set (; 22 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.const 1
|
||||
@ -2253,7 +2290,7 @@
|
||||
i32.store offset=12
|
||||
end
|
||||
)
|
||||
(func $std/array-literal/Ref#constructor (; 22 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $std/array-literal/Ref#constructor (; 23 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
@ -2270,7 +2307,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/array/Array<Ref>#constructor (; 23 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/array/Array<Ref>#constructor (; 24 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
if (result i32)
|
||||
@ -2295,7 +2332,7 @@
|
||||
i32.store offset=12
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/array/Array<Ref>#__set (; 24 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/array/Array<Ref>#__set (; 25 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.const 1
|
||||
@ -2322,11 +2359,11 @@
|
||||
i32.store offset=12
|
||||
end
|
||||
)
|
||||
(func $~lib/array/Array<Ref>#get:length (; 25 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/array/Array<Ref>#get:length (; 26 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load offset=12
|
||||
)
|
||||
(func $std/array-literal/RefWithCtor#constructor (; 26 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $std/array-literal/RefWithCtor#constructor (; 27 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
@ -2343,7 +2380,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/array/Array<RefWithCtor>#constructor (; 27 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/array/Array<RefWithCtor>#constructor (; 28 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
if (result i32)
|
||||
@ -2368,7 +2405,7 @@
|
||||
i32.store offset=12
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/array/Array<RefWithCtor>#__set (; 28 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/array/Array<RefWithCtor>#__set (; 29 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.const 1
|
||||
@ -2395,17 +2432,15 @@
|
||||
i32.store offset=12
|
||||
end
|
||||
)
|
||||
(func $~lib/array/Array<RefWithCtor>#get:length (; 29 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(func $~lib/array/Array<RefWithCtor>#get:length (; 30 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load offset=12
|
||||
)
|
||||
(func $start:std/array-literal (; 30 ;) (type $FUNCSIG$v)
|
||||
(func $start:std/array-literal (; 31 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
global.get $std/array-literal/staticArrayI8
|
||||
call $~lib/array/Array<i8>#get:length
|
||||
i32.const 3
|
||||
@ -2420,18 +2455,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/staticArrayI8
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 0
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load8_s
|
||||
call $~lib/array/Array<i8>#__get
|
||||
i32.const 0
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2444,18 +2469,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/staticArrayI8
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 1
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load8_s
|
||||
call $~lib/array/Array<i8>#__get
|
||||
i32.const 1
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2468,18 +2483,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/staticArrayI8
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 2
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load8_s
|
||||
call $~lib/array/Array<i8>#__get
|
||||
i32.const 2
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2505,20 +2510,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/staticArrayI32
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 0
|
||||
i32.const 2
|
||||
i32.shl
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load
|
||||
call $~lib/array/Array<i32>#__get
|
||||
i32.const 0
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2531,20 +2524,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/staticArrayI32
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
i32.shl
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load
|
||||
call $~lib/array/Array<i32>#__get
|
||||
i32.const 1
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2557,20 +2538,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/staticArrayI32
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 2
|
||||
i32.const 2
|
||||
i32.shl
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load
|
||||
call $~lib/array/Array<i32>#__get
|
||||
i32.const 2
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2609,12 +2578,12 @@
|
||||
i32.const 0
|
||||
i32.const 3
|
||||
call $~lib/array/Array<i8>#constructor
|
||||
local.set $2
|
||||
local.get $2
|
||||
local.set $0
|
||||
local.get $0
|
||||
i32.const 0
|
||||
global.get $std/array-literal/i
|
||||
call $~lib/array/Array<i8>#__set
|
||||
local.get $2
|
||||
local.get $0
|
||||
i32.const 1
|
||||
block (result i32)
|
||||
global.get $std/array-literal/i
|
||||
@ -2624,7 +2593,7 @@
|
||||
global.get $std/array-literal/i
|
||||
end
|
||||
call $~lib/array/Array<i8>#__set
|
||||
local.get $2
|
||||
local.get $0
|
||||
i32.const 2
|
||||
block (result i32)
|
||||
global.get $std/array-literal/i
|
||||
@ -2634,7 +2603,7 @@
|
||||
global.get $std/array-literal/i
|
||||
end
|
||||
call $~lib/array/Array<i8>#__set
|
||||
local.get $2
|
||||
local.get $0
|
||||
end
|
||||
global.set $std/array-literal/dynamicArrayI8
|
||||
global.get $std/array-literal/dynamicArrayI8
|
||||
@ -2651,18 +2620,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/dynamicArrayI8
|
||||
local.tee $2
|
||||
i32.load offset=4
|
||||
i32.const 0
|
||||
local.tee $0
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $0
|
||||
local.get $2
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load8_s
|
||||
call $~lib/array/Array<i8>#__get
|
||||
i32.const 0
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2675,18 +2634,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/dynamicArrayI8
|
||||
local.tee $2
|
||||
i32.load offset=4
|
||||
i32.const 1
|
||||
local.tee $0
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $0
|
||||
local.get $2
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load8_s
|
||||
call $~lib/array/Array<i8>#__get
|
||||
i32.const 1
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2699,18 +2648,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/dynamicArrayI8
|
||||
local.tee $2
|
||||
i32.load offset=4
|
||||
i32.const 2
|
||||
local.tee $0
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $0
|
||||
local.get $2
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load8_s
|
||||
call $~lib/array/Array<i8>#__get
|
||||
i32.const 2
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2728,12 +2667,12 @@
|
||||
i32.const 0
|
||||
i32.const 3
|
||||
call $~lib/array/Array<i32>#constructor
|
||||
local.set $3
|
||||
local.get $3
|
||||
local.set $1
|
||||
local.get $1
|
||||
i32.const 0
|
||||
global.get $std/array-literal/i
|
||||
call $~lib/array/Array<i32>#__set
|
||||
local.get $3
|
||||
local.get $1
|
||||
i32.const 1
|
||||
block (result i32)
|
||||
global.get $std/array-literal/i
|
||||
@ -2743,7 +2682,7 @@
|
||||
global.get $std/array-literal/i
|
||||
end
|
||||
call $~lib/array/Array<i32>#__set
|
||||
local.get $3
|
||||
local.get $1
|
||||
i32.const 2
|
||||
block (result i32)
|
||||
global.get $std/array-literal/i
|
||||
@ -2753,7 +2692,7 @@
|
||||
global.get $std/array-literal/i
|
||||
end
|
||||
call $~lib/array/Array<i32>#__set
|
||||
local.get $3
|
||||
local.get $1
|
||||
end
|
||||
global.set $std/array-literal/dynamicArrayI32
|
||||
global.get $std/array-literal/dynamicArrayI32
|
||||
@ -2770,20 +2709,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/dynamicArrayI32
|
||||
local.tee $3
|
||||
i32.load offset=4
|
||||
i32.const 0
|
||||
i32.const 2
|
||||
i32.shl
|
||||
local.tee $2
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $2
|
||||
local.get $3
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load
|
||||
call $~lib/array/Array<i32>#__get
|
||||
i32.const 0
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2796,20 +2723,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/dynamicArrayI32
|
||||
local.tee $3
|
||||
i32.load offset=4
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
i32.shl
|
||||
local.tee $2
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $2
|
||||
local.get $3
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load
|
||||
call $~lib/array/Array<i32>#__get
|
||||
i32.const 1
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2822,20 +2737,8 @@
|
||||
unreachable
|
||||
end
|
||||
global.get $std/array-literal/dynamicArrayI32
|
||||
local.tee $3
|
||||
i32.load offset=4
|
||||
i32.const 2
|
||||
i32.const 2
|
||||
i32.shl
|
||||
local.tee $2
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $2
|
||||
local.get $3
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load
|
||||
call $~lib/array/Array<i32>#__get
|
||||
i32.const 2
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -2851,23 +2754,23 @@
|
||||
i32.const 0
|
||||
i32.const 3
|
||||
call $~lib/array/Array<Ref>#constructor
|
||||
local.set $4
|
||||
local.get $4
|
||||
local.set $2
|
||||
local.get $2
|
||||
i32.const 0
|
||||
i32.const 0
|
||||
call $std/array-literal/Ref#constructor
|
||||
call $~lib/array/Array<Ref>#__set
|
||||
local.get $4
|
||||
local.get $2
|
||||
i32.const 1
|
||||
i32.const 0
|
||||
call $std/array-literal/Ref#constructor
|
||||
call $~lib/array/Array<Ref>#__set
|
||||
local.get $4
|
||||
local.get $2
|
||||
i32.const 2
|
||||
i32.const 0
|
||||
call $std/array-literal/Ref#constructor
|
||||
call $~lib/array/Array<Ref>#__set
|
||||
local.get $4
|
||||
local.get $2
|
||||
end
|
||||
global.set $std/array-literal/dynamicArrayRef
|
||||
global.get $std/array-literal/dynamicArrayRef
|
||||
@ -2887,23 +2790,23 @@
|
||||
i32.const 0
|
||||
i32.const 3
|
||||
call $~lib/array/Array<RefWithCtor>#constructor
|
||||
local.set $5
|
||||
local.get $5
|
||||
local.set $3
|
||||
local.get $3
|
||||
i32.const 0
|
||||
i32.const 0
|
||||
call $std/array-literal/RefWithCtor#constructor
|
||||
call $~lib/array/Array<RefWithCtor>#__set
|
||||
local.get $5
|
||||
local.get $3
|
||||
i32.const 1
|
||||
i32.const 0
|
||||
call $std/array-literal/RefWithCtor#constructor
|
||||
call $~lib/array/Array<RefWithCtor>#__set
|
||||
local.get $5
|
||||
local.get $3
|
||||
i32.const 2
|
||||
i32.const 0
|
||||
call $std/array-literal/RefWithCtor#constructor
|
||||
call $~lib/array/Array<RefWithCtor>#__set
|
||||
local.get $5
|
||||
local.get $3
|
||||
end
|
||||
global.set $std/array-literal/dynamicArrayRefWithCtor
|
||||
global.get $std/array-literal/dynamicArrayRefWithCtor
|
||||
@ -2920,9 +2823,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 31 ;) (type $FUNCSIG$v)
|
||||
(func $start (; 32 ;) (type $FUNCSIG$v)
|
||||
call $start:std/array-literal
|
||||
)
|
||||
(func $null (; 32 ;) (type $FUNCSIG$v)
|
||||
(func $null (; 33 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user