mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-23 19:51:47 +00:00
checked builtin array get, optimize abv layout
This commit is contained in:
@ -123,7 +123,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 188
|
||||
i32.const 191
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -137,7 +137,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 189
|
||||
i32.const 192
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -160,7 +160,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 188
|
||||
i32.const 191
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -175,7 +175,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 189
|
||||
i32.const 192
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -62,7 +62,7 @@
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\01\00\00\00\16\00\00\00s\00t\00d\00/\00m\00a\00t\00h\00.\00t\00s")
|
||||
(data (i32.const 40) "\02\00\00\00 \00\00\00)\15DNn\83\f9\a2\c0\dd4\f5\d1W\'\fcA\90C<\99\95b\dba\c5\bb\de\abcQ\fe")
|
||||
(data (i32.const 80) "\03\00\00\00\10\00\00\000\00\00\000\00\00\00P\00\00\00\04")
|
||||
(data (i32.const 80) "\03\00\00\00\10\00\00\000\00\00\000\00\00\00 \00\00\00\04")
|
||||
(data (i32.const 104) "\01\00\00\00\18\00\00\00~\00l\00i\00b\00/\00m\00a\00t\00h\00.\00t\00s")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -3489,8 +3489,7 @@
|
||||
(local $7 i32)
|
||||
(local $8 i64)
|
||||
(local $9 i32)
|
||||
(local $10 i32)
|
||||
(local $11 i64)
|
||||
(local $10 i64)
|
||||
local.get $0
|
||||
i32.reinterpret_f32
|
||||
local.tee $3
|
||||
@ -3782,6 +3781,8 @@
|
||||
i32.trunc_f64_s
|
||||
br $~lib/math/rempio2f|inlined.0
|
||||
end
|
||||
i32.const 92
|
||||
i32.load
|
||||
local.get $3
|
||||
i32.const 23
|
||||
i32.shr_s
|
||||
@ -3793,17 +3794,18 @@
|
||||
local.tee $9
|
||||
i32.const 3
|
||||
i32.shl
|
||||
local.tee $10
|
||||
i32.const 92
|
||||
i32.load
|
||||
i32.add
|
||||
i64.load
|
||||
local.set $11
|
||||
local.set $10
|
||||
i32.const 92
|
||||
i32.load
|
||||
local.get $10
|
||||
local.get $9
|
||||
i32.const 1
|
||||
i32.add
|
||||
i64.load offset=8
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load
|
||||
local.set $5
|
||||
local.get $6
|
||||
i32.const 63
|
||||
@ -3821,10 +3823,12 @@
|
||||
i32.const 92
|
||||
i32.load
|
||||
local.get $9
|
||||
i32.const 2
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load offset=16
|
||||
i64.load
|
||||
i64.const 96
|
||||
local.get $6
|
||||
i64.extend_i32_s
|
||||
@ -3851,7 +3855,7 @@
|
||||
local.tee $5
|
||||
i64.sub
|
||||
i64.shr_u
|
||||
local.get $11
|
||||
local.get $10
|
||||
local.get $5
|
||||
i64.shl
|
||||
i64.or
|
||||
@ -9282,8 +9286,7 @@
|
||||
(local $7 i32)
|
||||
(local $8 i64)
|
||||
(local $9 i32)
|
||||
(local $10 i32)
|
||||
(local $11 i64)
|
||||
(local $10 i64)
|
||||
local.get $0
|
||||
i32.reinterpret_f32
|
||||
local.tee $3
|
||||
@ -9608,6 +9611,8 @@
|
||||
i32.trunc_f64_s
|
||||
br $~lib/math/rempio2f|inlined.1
|
||||
end
|
||||
i32.const 92
|
||||
i32.load
|
||||
local.get $3
|
||||
i32.const 23
|
||||
i32.shr_s
|
||||
@ -9619,17 +9624,18 @@
|
||||
local.tee $9
|
||||
i32.const 3
|
||||
i32.shl
|
||||
local.tee $10
|
||||
i32.const 92
|
||||
i32.load
|
||||
i32.add
|
||||
i64.load
|
||||
local.set $11
|
||||
local.set $10
|
||||
i32.const 92
|
||||
i32.load
|
||||
local.get $10
|
||||
local.get $9
|
||||
i32.const 1
|
||||
i32.add
|
||||
i64.load offset=8
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load
|
||||
local.set $5
|
||||
local.get $6
|
||||
i32.const 63
|
||||
@ -9647,10 +9653,12 @@
|
||||
i32.const 92
|
||||
i32.load
|
||||
local.get $9
|
||||
i32.const 2
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load offset=16
|
||||
i64.load
|
||||
i64.const 96
|
||||
local.get $6
|
||||
i64.extend_i32_s
|
||||
@ -9677,7 +9685,7 @@
|
||||
local.tee $5
|
||||
i64.sub
|
||||
i64.shr_u
|
||||
local.get $11
|
||||
local.get $10
|
||||
local.get $5
|
||||
i64.shl
|
||||
i64.or
|
||||
@ -10008,8 +10016,7 @@
|
||||
(local $7 i32)
|
||||
(local $8 i64)
|
||||
(local $9 i32)
|
||||
(local $10 i32)
|
||||
(local $11 i64)
|
||||
(local $10 i64)
|
||||
local.get $0
|
||||
i32.reinterpret_f32
|
||||
local.tee $4
|
||||
@ -10327,6 +10334,8 @@
|
||||
i32.trunc_f64_s
|
||||
br $~lib/math/rempio2f|inlined.2
|
||||
end
|
||||
i32.const 92
|
||||
i32.load
|
||||
local.get $4
|
||||
i32.const 23
|
||||
i32.shr_s
|
||||
@ -10338,17 +10347,18 @@
|
||||
local.tee $9
|
||||
i32.const 3
|
||||
i32.shl
|
||||
local.tee $10
|
||||
i32.const 92
|
||||
i32.load
|
||||
i32.add
|
||||
i64.load
|
||||
local.set $11
|
||||
local.set $10
|
||||
i32.const 92
|
||||
i32.load
|
||||
local.get $10
|
||||
local.get $9
|
||||
i32.const 1
|
||||
i32.add
|
||||
i64.load offset=8
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load
|
||||
local.set $5
|
||||
local.get $6
|
||||
i32.const 63
|
||||
@ -10366,10 +10376,12 @@
|
||||
i32.const 92
|
||||
i32.load
|
||||
local.get $9
|
||||
i32.const 2
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load offset=16
|
||||
i64.load
|
||||
i64.const 96
|
||||
local.get $6
|
||||
i64.extend_i32_s
|
||||
@ -10396,7 +10408,7 @@
|
||||
local.tee $5
|
||||
i64.sub
|
||||
i64.shr_u
|
||||
local.get $11
|
||||
local.get $10
|
||||
local.get $5
|
||||
i64.shl
|
||||
i64.or
|
||||
|
@ -63,7 +63,7 @@
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\01\00\00\00\16\00\00\00s\00t\00d\00/\00m\00a\00t\00h\00.\00t\00s\00")
|
||||
(data (i32.const 40) "\02\00\00\00 \00\00\00)\15DNn\83\f9\a2\c0\dd4\f5\d1W\'\fcA\90C<\99\95b\dba\c5\bb\de\abcQ\fe")
|
||||
(data (i32.const 80) "\03\00\00\00\10\00\00\000\00\00\000\00\00\00P\00\00\00\04\00\00\00")
|
||||
(data (i32.const 80) "\03\00\00\00\10\00\00\000\00\00\000\00\00\00 \00\00\00\04\00\00\00")
|
||||
(data (i32.const 104) "\01\00\00\00\18\00\00\00~\00l\00i\00b\00/\00m\00a\00t\00h\00.\00t\00s\00")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -4746,6 +4746,8 @@
|
||||
i32.const 88
|
||||
i32.load offset=4
|
||||
local.get $14
|
||||
i32.const 0
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
@ -4754,10 +4756,12 @@
|
||||
i32.const 88
|
||||
i32.load offset=4
|
||||
local.get $14
|
||||
i32.const 1
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load offset=8
|
||||
i64.load
|
||||
local.set $17
|
||||
local.get $15
|
||||
i32.const 32
|
||||
@ -4766,10 +4770,12 @@
|
||||
i32.const 88
|
||||
i32.load offset=4
|
||||
local.get $14
|
||||
i32.const 2
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load offset=16
|
||||
i64.load
|
||||
local.set $19
|
||||
local.get $19
|
||||
i64.const 96
|
||||
@ -11762,6 +11768,8 @@
|
||||
i32.const 88
|
||||
i32.load offset=4
|
||||
local.get $14
|
||||
i32.const 0
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
@ -11770,10 +11778,12 @@
|
||||
i32.const 88
|
||||
i32.load offset=4
|
||||
local.get $14
|
||||
i32.const 1
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load offset=8
|
||||
i64.load
|
||||
local.set $17
|
||||
local.get $15
|
||||
i32.const 32
|
||||
@ -11782,10 +11792,12 @@
|
||||
i32.const 88
|
||||
i32.load offset=4
|
||||
local.get $14
|
||||
i32.const 2
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load offset=16
|
||||
i64.load
|
||||
local.set $19
|
||||
local.get $19
|
||||
i64.const 96
|
||||
@ -12748,6 +12760,8 @@
|
||||
i32.const 88
|
||||
i32.load offset=4
|
||||
local.get $16
|
||||
i32.const 0
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
@ -12756,10 +12770,12 @@
|
||||
i32.const 88
|
||||
i32.load offset=4
|
||||
local.get $16
|
||||
i32.const 1
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load offset=8
|
||||
i64.load
|
||||
local.set $19
|
||||
local.get $17
|
||||
i32.const 32
|
||||
@ -12768,10 +12784,12 @@
|
||||
i32.const 88
|
||||
i32.load offset=4
|
||||
local.get $16
|
||||
i32.const 2
|
||||
i32.add
|
||||
i32.const 3
|
||||
i32.shl
|
||||
i32.add
|
||||
i64.load offset=16
|
||||
i64.load
|
||||
local.set $21
|
||||
local.get $21
|
||||
i64.const 96
|
||||
|
@ -121,7 +121,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 188
|
||||
i32.const 191
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -135,7 +135,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 189
|
||||
i32.const 192
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -162,7 +162,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 188
|
||||
i32.const 191
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -177,7 +177,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 16
|
||||
i32.const 189
|
||||
i32.const 192
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -4,14 +4,14 @@
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\01\00\00\00\08\00\00\00\01\00\00\00\02")
|
||||
(data (i32.const 24) "\02\00\00\00\10\00\00\00\10\00\00\00\10\00\00\00\18\00\00\00\02")
|
||||
(data (i32.const 24) "\02\00\00\00\10\00\00\00\10\00\00\00\10\00\00\00\08\00\00\00\02")
|
||||
(data (i32.const 48) "\01\00\00\00\10\00\00\00\03\00\00\00\00\00\00\00\04")
|
||||
(data (i32.const 72) "\03\00\00\00\10\00\00\008\00\00\008\00\00\00H\00\00\00\02")
|
||||
(data (i32.const 72) "\03\00\00\00\10\00\00\008\00\00\008\00\00\00\10\00\00\00\02")
|
||||
(data (i32.const 96) "\01\00\00\00\08\00\00\00\00\00\c0?\00\00 @")
|
||||
(data (i32.const 112) "\04\00\00\00\10\00\00\00h\00\00\00h\00\00\00p\00\00\00\02")
|
||||
(data (i32.const 112) "\04\00\00\00\10\00\00\00h\00\00\00h\00\00\00\08\00\00\00\02")
|
||||
(data (i32.const 136) "\01\00\00\00\10")
|
||||
(data (i32.const 150) "\f4?\00\00\00\00\00\00\02@")
|
||||
(data (i32.const 160) "\05\00\00\00\10\00\00\00\90\00\00\00\90\00\00\00\a0\00\00\00\02")
|
||||
(data (i32.const 160) "\05\00\00\00\10\00\00\00\90\00\00\00\90\00\00\00\10\00\00\00\02")
|
||||
(data (i32.const 184) "\06\00\00\00&\00\00\00s\00t\00d\00/\00s\00t\00a\00t\00i\00c\00-\00a\00r\00r\00a\00y\00.\00t\00s")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -26,33 +26,47 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 8
|
||||
i32.const 6
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 36
|
||||
i32.load
|
||||
i32.const -1
|
||||
i32.const 0
|
||||
i32.const 40
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load
|
||||
i32.const 1
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 9
|
||||
i32.const 7
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 36
|
||||
i32.load
|
||||
i32.load offset=4
|
||||
i32.const 4
|
||||
i32.add
|
||||
i32.const -1
|
||||
i32.const 4
|
||||
i32.const 40
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load
|
||||
i32.const 2
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 10
|
||||
i32.const 8
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -63,13 +77,19 @@
|
||||
i32.store
|
||||
i32.const 36
|
||||
i32.load
|
||||
i32.const -1
|
||||
i32.const 0
|
||||
i32.const 40
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
i32.load
|
||||
i32.const 2
|
||||
i32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 12
|
||||
i32.const 10
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -81,33 +101,47 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 14
|
||||
i32.const 12
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 84
|
||||
i32.load
|
||||
i32.const -1
|
||||
i32.const 0
|
||||
i32.const 88
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
i64.load
|
||||
i64.const 3
|
||||
i64.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 15
|
||||
i32.const 13
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 84
|
||||
i32.load
|
||||
i64.load offset=8
|
||||
i32.const 8
|
||||
i32.add
|
||||
i32.const -1
|
||||
i32.const 8
|
||||
i32.const 88
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
i64.load
|
||||
i64.const 4
|
||||
i64.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 16
|
||||
i32.const 14
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -118,13 +152,19 @@
|
||||
i64.store
|
||||
i32.const 84
|
||||
i32.load
|
||||
i32.const -1
|
||||
i32.const 0
|
||||
i32.const 88
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
i64.load
|
||||
i64.const 4
|
||||
i64.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 18
|
||||
i32.const 16
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -136,33 +176,47 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 20
|
||||
i32.const 18
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 124
|
||||
i32.load
|
||||
i32.const -1
|
||||
i32.const 0
|
||||
i32.const 128
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
f32.load
|
||||
f32.const 1.5
|
||||
f32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 21
|
||||
i32.const 19
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 124
|
||||
i32.load
|
||||
f32.load offset=4
|
||||
i32.const 4
|
||||
i32.add
|
||||
i32.const -1
|
||||
i32.const 4
|
||||
i32.const 128
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
f32.load
|
||||
f32.const 2.5
|
||||
f32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 22
|
||||
i32.const 20
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -173,13 +227,19 @@
|
||||
f32.store
|
||||
i32.const 124
|
||||
i32.load
|
||||
i32.const -1
|
||||
i32.const 0
|
||||
i32.const 128
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
f32.load
|
||||
f32.const 2.5
|
||||
f32.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 24
|
||||
i32.const 22
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -191,33 +251,47 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 26
|
||||
i32.const 24
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 172
|
||||
i32.load
|
||||
i32.const -1
|
||||
i32.const 0
|
||||
i32.const 176
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
f64.load
|
||||
f64.const 1.25
|
||||
f64.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 27
|
||||
i32.const 25
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 172
|
||||
i32.load
|
||||
f64.load offset=8
|
||||
i32.const 8
|
||||
i32.add
|
||||
i32.const -1
|
||||
i32.const 8
|
||||
i32.const 176
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
f64.load
|
||||
f64.const 2.25
|
||||
f64.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 28
|
||||
i32.const 26
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -228,13 +302,19 @@
|
||||
f64.store
|
||||
i32.const 172
|
||||
i32.load
|
||||
i32.const -1
|
||||
i32.const 0
|
||||
i32.const 176
|
||||
i32.load
|
||||
i32.lt_u
|
||||
select
|
||||
f64.load
|
||||
f64.const 2.25
|
||||
f64.ne
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 30
|
||||
i32.const 28
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -1,5 +1,3 @@
|
||||
import "allocator/arena"; // needed just because std/Array#[]= calls __grow conditionally
|
||||
|
||||
const i: i32[] = [1, 2];
|
||||
const I: i64[] = [3, 4];
|
||||
const f: f32[] = [1.5, 2.5];
|
||||
|
@ -5,13 +5,13 @@
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\01\00\00\00\08\00\00\00\01\00\00\00\02\00\00\00")
|
||||
(data (i32.const 24) "\02\00\00\00\10\00\00\00\10\00\00\00\10\00\00\00\18\00\00\00\02\00\00\00")
|
||||
(data (i32.const 24) "\02\00\00\00\10\00\00\00\10\00\00\00\10\00\00\00\08\00\00\00\02\00\00\00")
|
||||
(data (i32.const 48) "\01\00\00\00\10\00\00\00\03\00\00\00\00\00\00\00\04\00\00\00\00\00\00\00")
|
||||
(data (i32.const 72) "\03\00\00\00\10\00\00\008\00\00\008\00\00\00H\00\00\00\02\00\00\00")
|
||||
(data (i32.const 72) "\03\00\00\00\10\00\00\008\00\00\008\00\00\00\10\00\00\00\02\00\00\00")
|
||||
(data (i32.const 96) "\01\00\00\00\08\00\00\00\00\00\c0?\00\00 @")
|
||||
(data (i32.const 112) "\04\00\00\00\10\00\00\00h\00\00\00h\00\00\00p\00\00\00\02\00\00\00")
|
||||
(data (i32.const 112) "\04\00\00\00\10\00\00\00h\00\00\00h\00\00\00\08\00\00\00\02\00\00\00")
|
||||
(data (i32.const 136) "\01\00\00\00\10\00\00\00\00\00\00\00\00\00\f4?\00\00\00\00\00\00\02@")
|
||||
(data (i32.const 160) "\05\00\00\00\10\00\00\00\90\00\00\00\90\00\00\00\a0\00\00\00\02\00\00\00")
|
||||
(data (i32.const 160) "\05\00\00\00\10\00\00\00\90\00\00\00\90\00\00\00\10\00\00\00\02\00\00\00")
|
||||
(data (i32.const 184) "\06\00\00\00&\00\00\00s\00t\00d\00/\00s\00t\00a\00t\00i\00c\00-\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -43,11 +43,65 @@
|
||||
i32.load offset=12
|
||||
)
|
||||
(func $start:std/static-array (; 5 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
global.get $std/static-array/i
|
||||
call $~lib/array/Array<i32>#get:length
|
||||
i32.const 2
|
||||
i32.eq
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 6
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/i
|
||||
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
|
||||
i32.const 1
|
||||
i32.eq
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 7
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/i
|
||||
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
|
||||
i32.const 2
|
||||
i32.eq
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
@ -58,21 +112,23 @@
|
||||
end
|
||||
global.get $std/static-array/i
|
||||
i32.load offset=4
|
||||
i32.load
|
||||
i32.const 1
|
||||
i32.eq
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 9
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 2
|
||||
i32.store
|
||||
global.get $std/static-array/i
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
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
|
||||
i32.const 2
|
||||
i32.eq
|
||||
i32.eqz
|
||||
@ -84,24 +140,6 @@
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/i
|
||||
i32.load offset=4
|
||||
i32.const 2
|
||||
i32.store
|
||||
global.get $std/static-array/i
|
||||
i32.load offset=4
|
||||
i32.load
|
||||
i32.const 2
|
||||
i32.eq
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 12
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/I
|
||||
call $~lib/array/Array<i64>#get:length
|
||||
i32.const 2
|
||||
@ -110,13 +148,25 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 14
|
||||
i32.const 12
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/I
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 0
|
||||
i32.const 3
|
||||
i32.shl
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i64.load
|
||||
i64.const 3
|
||||
i64.eq
|
||||
@ -124,21 +174,33 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 15
|
||||
i32.const 13
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/I
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i64.load offset=8
|
||||
i32.const 1
|
||||
i32.const 3
|
||||
i32.shl
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i64.load
|
||||
i64.const 4
|
||||
i64.eq
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 16
|
||||
i32.const 14
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -148,7 +210,19 @@
|
||||
i64.const 4
|
||||
i64.store
|
||||
global.get $std/static-array/I
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 0
|
||||
i32.const 3
|
||||
i32.shl
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
i64.load
|
||||
i64.const 4
|
||||
i64.eq
|
||||
@ -156,7 +230,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 18
|
||||
i32.const 16
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -169,13 +243,25 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 20
|
||||
i32.const 18
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/f
|
||||
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
|
||||
f32.load
|
||||
f32.const 1.5
|
||||
f32.eq
|
||||
@ -183,21 +269,33 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 21
|
||||
i32.const 19
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/f
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
f32.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
|
||||
f32.load
|
||||
f32.const 2.5
|
||||
f32.eq
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 22
|
||||
i32.const 20
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -207,7 +305,19 @@
|
||||
f32.const 2.5
|
||||
f32.store
|
||||
global.get $std/static-array/f
|
||||
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
|
||||
f32.load
|
||||
f32.const 2.5
|
||||
f32.eq
|
||||
@ -215,7 +325,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 24
|
||||
i32.const 22
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -228,13 +338,25 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 26
|
||||
i32.const 24
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/F
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 0
|
||||
i32.const 3
|
||||
i32.shl
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
f64.load
|
||||
f64.const 1.25
|
||||
f64.eq
|
||||
@ -242,14 +364,56 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 27
|
||||
i32.const 25
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/F
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 1
|
||||
i32.const 3
|
||||
i32.shl
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
f64.load
|
||||
f64.const 2.25
|
||||
f64.eq
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 26
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/F
|
||||
i32.load offset=4
|
||||
f64.load offset=8
|
||||
f64.const 2.25
|
||||
f64.store
|
||||
global.get $std/static-array/F
|
||||
local.tee $0
|
||||
i32.load offset=4
|
||||
i32.const 0
|
||||
i32.const 3
|
||||
i32.shl
|
||||
local.tee $1
|
||||
i32.add
|
||||
i32.const -1
|
||||
local.get $1
|
||||
local.get $0
|
||||
i32.load offset=8
|
||||
i32.lt_u
|
||||
select
|
||||
f64.load
|
||||
f64.const 2.25
|
||||
f64.eq
|
||||
i32.eqz
|
||||
@ -261,24 +425,6 @@
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
global.get $std/static-array/F
|
||||
i32.load offset=4
|
||||
f64.const 2.25
|
||||
f64.store
|
||||
global.get $std/static-array/F
|
||||
i32.load offset=4
|
||||
f64.load
|
||||
f64.const 2.25
|
||||
f64.eq
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 192
|
||||
i32.const 30
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 6 ;) (type $FUNCSIG$v)
|
||||
call $start:std/static-array
|
||||
|
@ -309,7 +309,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 136
|
||||
i32.const 188
|
||||
i32.const 191
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -323,7 +323,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 136
|
||||
i32.const 189
|
||||
i32.const 192
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -3088,7 +3088,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 136
|
||||
i32.const 223
|
||||
i32.const 226
|
||||
i32.const 57
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -3240,7 +3240,7 @@
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/array/Array<String>#resize (; 35 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(func $~lib/array/ensureLength (; 35 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
local.get $1
|
||||
@ -3260,20 +3260,19 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 1440
|
||||
i32.const 37
|
||||
i32.const 41
|
||||
i32.const 12
|
||||
i32.const 59
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
local.get $2
|
||||
local.tee $3
|
||||
local.get $2
|
||||
local.get $1
|
||||
i32.const 2
|
||||
i32.shl
|
||||
local.tee $2
|
||||
local.tee $3
|
||||
call $~lib/runtime/doReallocate
|
||||
local.tee $1
|
||||
local.get $3
|
||||
i32.ne
|
||||
if
|
||||
local.get $0
|
||||
@ -3284,7 +3283,7 @@
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
local.get $1
|
||||
local.get $2
|
||||
local.get $3
|
||||
i32.add
|
||||
i32.store offset=8
|
||||
end
|
||||
@ -3293,7 +3292,7 @@
|
||||
(func $~lib/array/Array<String>#__set (; 36 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
i32.const 1
|
||||
call $~lib/array/Array<String>#resize
|
||||
call $~lib/array/ensureLength
|
||||
local.get $0
|
||||
i32.load offset=4
|
||||
local.get $1
|
||||
@ -3318,7 +3317,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 136
|
||||
i32.const 196
|
||||
i32.const 199
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -3338,7 +3337,7 @@
|
||||
i32.const 1
|
||||
i32.add
|
||||
local.tee $2
|
||||
call $~lib/array/Array<String>#resize
|
||||
call $~lib/array/ensureLength
|
||||
local.get $0
|
||||
local.get $2
|
||||
i32.store offset=12
|
||||
@ -3467,10 +3466,10 @@
|
||||
local.get $5
|
||||
i32.add
|
||||
local.get $1
|
||||
i32.const 1
|
||||
call $~lib/runtime/doRegister
|
||||
i32.store
|
||||
local.get $1
|
||||
i32.const 1
|
||||
call $~lib/runtime/doRegister
|
||||
local.get $3
|
||||
call $~lib/runtime/doLink
|
||||
local.get $4
|
||||
|
@ -366,7 +366,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 136
|
||||
i32.const 188
|
||||
i32.const 191
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -381,7 +381,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 136
|
||||
i32.const 189
|
||||
i32.const 192
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -3807,7 +3807,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 136
|
||||
i32.const 223
|
||||
i32.const 226
|
||||
i32.const 57
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -3989,62 +3989,64 @@
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
)
|
||||
(func $~lib/array/Array<String>#resize (; 41 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(local $2 i32)
|
||||
(func $~lib/array/ensureLength (; 41 ;) (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 $0
|
||||
i32.load
|
||||
local.set $2
|
||||
local.get $2
|
||||
call $~lib/arraybuffer/ArrayBuffer#get:byteLength
|
||||
i32.const 2
|
||||
i32.shr_u
|
||||
local.set $3
|
||||
local.get $1
|
||||
local.get $3
|
||||
call $~lib/arraybuffer/ArrayBuffer#get:byteLength
|
||||
local.get $2
|
||||
i32.shr_u
|
||||
local.set $4
|
||||
local.get $1
|
||||
local.get $4
|
||||
i32.gt_u
|
||||
if
|
||||
local.get $1
|
||||
i32.const 268435454
|
||||
global.get $~lib/runtime/MAX_BYTELENGTH
|
||||
local.get $2
|
||||
i32.shr_u
|
||||
i32.gt_u
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 1440
|
||||
i32.const 37
|
||||
i32.const 41
|
||||
i32.const 12
|
||||
i32.const 59
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
local.get $1
|
||||
i32.const 2
|
||||
local.get $2
|
||||
i32.shl
|
||||
local.set $4
|
||||
local.set $5
|
||||
block $~lib/runtime/REALLOCATE|inlined.0 (result i32)
|
||||
local.get $2
|
||||
local.set $5
|
||||
local.get $4
|
||||
local.get $3
|
||||
local.set $6
|
||||
local.get $5
|
||||
local.set $7
|
||||
local.get $6
|
||||
local.get $7
|
||||
call $~lib/runtime/doReallocate
|
||||
end
|
||||
local.set $6
|
||||
local.get $6
|
||||
local.get $2
|
||||
local.set $7
|
||||
local.get $7
|
||||
local.get $3
|
||||
i32.ne
|
||||
if
|
||||
local.get $0
|
||||
local.get $6
|
||||
local.get $7
|
||||
i32.store
|
||||
local.get $0
|
||||
local.get $6
|
||||
local.get $7
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
local.get $6
|
||||
local.get $4
|
||||
local.get $7
|
||||
local.get $5
|
||||
i32.add
|
||||
i32.store offset=8
|
||||
end
|
||||
@ -4055,7 +4057,8 @@
|
||||
local.get $1
|
||||
i32.const 1
|
||||
i32.add
|
||||
call $~lib/array/Array<String>#resize
|
||||
i32.const 2
|
||||
call $~lib/array/ensureLength
|
||||
local.get $0
|
||||
i32.load offset=4
|
||||
local.get $1
|
||||
@ -4087,7 +4090,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 136
|
||||
i32.const 196
|
||||
i32.const 199
|
||||
i32.const 2
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -4099,7 +4102,7 @@
|
||||
local.get $1
|
||||
call $~lib/runtime/assertRegistered
|
||||
)
|
||||
(func $~lib/runtime/LINK<usize,Array<String>> (; 45 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(func $~lib/runtime/LINK<String,Array<String>> (; 45 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
call $~lib/runtime/doLink
|
||||
@ -4113,7 +4116,8 @@
|
||||
local.set $2
|
||||
local.get $0
|
||||
local.get $2
|
||||
call $~lib/array/Array<String>#resize
|
||||
i32.const 2
|
||||
call $~lib/array/ensureLength
|
||||
local.get $0
|
||||
local.get $2
|
||||
i32.store offset=12
|
||||
@ -4249,6 +4253,8 @@
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
local.get $8
|
||||
i32.store
|
||||
block $~lib/runtime/REGISTER<String>|inlined.7 (result i32)
|
||||
local.get $8
|
||||
local.set $9
|
||||
@ -4256,10 +4262,8 @@
|
||||
i32.const 1
|
||||
call $~lib/runtime/doRegister
|
||||
end
|
||||
i32.store
|
||||
local.get $8
|
||||
local.get $3
|
||||
call $~lib/runtime/LINK<usize,Array<String>>
|
||||
call $~lib/runtime/LINK<String,Array<String>>
|
||||
end
|
||||
local.get $7
|
||||
i32.const 1
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user