mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 22:41:27 +00:00
Fix functional Array & String methods and avoid buffer caching (#415)
This commit is contained in:
@ -2315,7 +2315,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 184
|
||||
i32.const 182
|
||||
i32.const 42
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2352,7 +2352,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 246
|
||||
i32.const 244
|
||||
i32.const 20
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2381,12 +2381,10 @@
|
||||
i32.load offset=4
|
||||
tee_local $2
|
||||
get_local $1
|
||||
if (result i32)
|
||||
get_local $1
|
||||
i32.load offset=4
|
||||
else
|
||||
i32.const 0
|
||||
end
|
||||
i32.load offset=4
|
||||
i32.const 0
|
||||
get_local $1
|
||||
select
|
||||
tee_local $4
|
||||
i32.add
|
||||
call $~lib/array/Array<i32>#constructor
|
||||
@ -2648,7 +2646,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 334
|
||||
i32.const 327
|
||||
i32.const 42
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2702,7 +2700,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 305
|
||||
i32.const 299
|
||||
i32.const 20
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2992,7 +2990,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -3028,10 +3026,6 @@
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $3
|
||||
@ -3041,16 +3035,17 @@
|
||||
get_local $3
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $5
|
||||
tee_local $4
|
||||
get_local $3
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.lt_s
|
||||
select
|
||||
i32.ge_s
|
||||
br_if $break|0
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
get_local $4
|
||||
get_local $0
|
||||
i32.load
|
||||
get_local $2
|
||||
i32.const 2
|
||||
i32.shl
|
||||
@ -3111,10 +3106,6 @@
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $3
|
||||
@ -3124,16 +3115,17 @@
|
||||
get_local $3
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $5
|
||||
tee_local $4
|
||||
get_local $3
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.lt_s
|
||||
select
|
||||
i32.ge_s
|
||||
br_if $break|0
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
get_local $4
|
||||
get_local $0
|
||||
i32.load
|
||||
get_local $2
|
||||
i32.const 2
|
||||
i32.shl
|
||||
@ -3194,10 +3186,6 @@
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $3
|
||||
@ -3207,16 +3195,17 @@
|
||||
get_local $3
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $5
|
||||
tee_local $4
|
||||
get_local $3
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.lt_s
|
||||
select
|
||||
i32.ge_s
|
||||
br_if $break|0
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
get_local $4
|
||||
get_local $0
|
||||
i32.load
|
||||
get_local $2
|
||||
i32.const 2
|
||||
i32.shl
|
||||
@ -3281,21 +3270,18 @@
|
||||
block $break|0
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $4
|
||||
set_local $3
|
||||
loop $repeat|0
|
||||
get_local $2
|
||||
get_local $3
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $4
|
||||
get_local $3
|
||||
get_local $4
|
||||
i32.lt_s
|
||||
tee_local $3
|
||||
if
|
||||
get_local $2
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
i32.lt_s
|
||||
set_local $3
|
||||
end
|
||||
get_local $3
|
||||
i32.eqz
|
||||
select
|
||||
i32.ge_s
|
||||
br_if $break|0
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
@ -3448,17 +3434,13 @@
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $3
|
||||
call $~lib/array/Array<i32>#constructor
|
||||
tee_local $5
|
||||
tee_local $4
|
||||
i32.load
|
||||
set_local $6
|
||||
set_local $5
|
||||
loop $repeat|0
|
||||
get_local $1
|
||||
get_local $3
|
||||
@ -3477,10 +3459,11 @@
|
||||
i32.const 2
|
||||
i32.shl
|
||||
tee_local $2
|
||||
get_local $6
|
||||
get_local $5
|
||||
i32.add
|
||||
get_local $0
|
||||
i32.load
|
||||
get_local $2
|
||||
get_local $4
|
||||
i32.add
|
||||
i32.load offset=8
|
||||
get_local $1
|
||||
@ -3495,7 +3478,7 @@
|
||||
br $repeat|0
|
||||
end
|
||||
end
|
||||
get_local $5
|
||||
get_local $4
|
||||
)
|
||||
(func $start~anonymous|23 (; 52 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
get_local $2
|
||||
@ -3514,38 +3497,35 @@
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $3
|
||||
call $~lib/array/Array<i32>#constructor
|
||||
tee_local $5
|
||||
tee_local $4
|
||||
i32.load
|
||||
set_local $6
|
||||
set_local $5
|
||||
loop $repeat|0
|
||||
block $break|0
|
||||
get_local $2
|
||||
get_local $3
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $7
|
||||
tee_local $6
|
||||
get_local $3
|
||||
get_local $7
|
||||
get_local $6
|
||||
i32.lt_s
|
||||
select
|
||||
i32.ge_s
|
||||
br_if $break|0
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
get_local $6
|
||||
get_local $5
|
||||
get_local $2
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
get_local $4
|
||||
get_local $0
|
||||
i32.load
|
||||
get_local $2
|
||||
i32.const 2
|
||||
i32.shl
|
||||
@ -3563,7 +3543,7 @@
|
||||
br $repeat|0
|
||||
end
|
||||
end
|
||||
get_local $5
|
||||
get_local $4
|
||||
)
|
||||
(func $start~anonymous|24 (; 54 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
get_global $std/array/i
|
||||
@ -3592,10 +3572,6 @@
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $6
|
||||
i32.const 0
|
||||
call $~lib/array/Array<i32>#constructor
|
||||
set_local $4
|
||||
@ -3615,7 +3591,8 @@
|
||||
select
|
||||
i32.ge_s
|
||||
br_if $break|0
|
||||
get_local $6
|
||||
get_local $0
|
||||
i32.load
|
||||
get_local $2
|
||||
i32.const 2
|
||||
i32.shl
|
||||
@ -3687,10 +3664,6 @@
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $5
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $4
|
||||
@ -3700,9 +3673,9 @@
|
||||
get_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $6
|
||||
tee_local $5
|
||||
get_local $4
|
||||
get_local $6
|
||||
get_local $5
|
||||
i32.lt_s
|
||||
select
|
||||
i32.ge_s
|
||||
@ -3710,7 +3683,8 @@
|
||||
i32.const 4
|
||||
set_global $~argc
|
||||
get_local $2
|
||||
get_local $5
|
||||
get_local $0
|
||||
i32.load
|
||||
get_local $3
|
||||
i32.const 2
|
||||
i32.shl
|
||||
@ -3765,10 +3739,6 @@
|
||||
)
|
||||
(func $~lib/array/Array<i32>#reduceRight<i32> (; 67 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
i32.const 1
|
||||
@ -3783,7 +3753,8 @@
|
||||
i32.const 4
|
||||
set_global $~argc
|
||||
get_local $2
|
||||
get_local $4
|
||||
get_local $0
|
||||
i32.load
|
||||
get_local $3
|
||||
i32.const 2
|
||||
i32.shl
|
||||
@ -4249,7 +4220,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -4818,7 +4789,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -5388,7 +5359,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -5771,7 +5742,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -2888,7 +2888,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 184
|
||||
i32.const 182
|
||||
i32.const 42
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2961,7 +2961,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 246
|
||||
i32.const 244
|
||||
i32.const 20
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -3003,15 +3003,13 @@
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $2
|
||||
i32.const 0
|
||||
get_local $1
|
||||
i32.load offset=4
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.eq
|
||||
if (result i32)
|
||||
i32.const 0
|
||||
else
|
||||
get_local $1
|
||||
i32.load offset=4
|
||||
end
|
||||
select
|
||||
set_local $3
|
||||
get_local $2
|
||||
get_local $3
|
||||
@ -3394,7 +3392,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 334
|
||||
i32.const 327
|
||||
i32.const 42
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -3469,7 +3467,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 305
|
||||
i32.const 299
|
||||
i32.const 20
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -3860,7 +3858,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -3904,27 +3902,23 @@
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $2
|
||||
block $break|0
|
||||
block
|
||||
i32.const 0
|
||||
set_local $3
|
||||
set_local $2
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $4
|
||||
set_local $3
|
||||
end
|
||||
loop $repeat|0
|
||||
get_local $2
|
||||
get_local $3
|
||||
get_local $4
|
||||
tee_local $5
|
||||
tee_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $6
|
||||
tee_local $5
|
||||
get_local $4
|
||||
get_local $5
|
||||
get_local $6
|
||||
i32.lt_s
|
||||
select
|
||||
i32.lt_s
|
||||
@ -3934,18 +3928,21 @@
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
block $~lib/internal/arraybuffer/LOAD<i32,i32>|inlined.9 (result i32)
|
||||
i32.const 0
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $5
|
||||
i32.const 0
|
||||
set_local $4
|
||||
get_local $5
|
||||
get_local $2
|
||||
get_local $3
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.add
|
||||
i32.load offset=8
|
||||
end
|
||||
get_local $3
|
||||
get_local $2
|
||||
get_local $0
|
||||
get_local $1
|
||||
call_indirect (type $iiii)
|
||||
@ -3953,13 +3950,13 @@
|
||||
i32.const 0
|
||||
i32.ne
|
||||
if
|
||||
get_local $3
|
||||
get_local $2
|
||||
return
|
||||
end
|
||||
get_local $3
|
||||
get_local $2
|
||||
i32.const 1
|
||||
i32.add
|
||||
set_local $3
|
||||
set_local $2
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
@ -4009,27 +4006,23 @@
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $2
|
||||
block $break|0
|
||||
block
|
||||
i32.const 0
|
||||
set_local $3
|
||||
set_local $2
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $4
|
||||
set_local $3
|
||||
end
|
||||
loop $repeat|0
|
||||
get_local $2
|
||||
get_local $3
|
||||
get_local $4
|
||||
tee_local $5
|
||||
tee_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $6
|
||||
tee_local $5
|
||||
get_local $4
|
||||
get_local $5
|
||||
get_local $6
|
||||
i32.lt_s
|
||||
select
|
||||
i32.lt_s
|
||||
@ -4039,18 +4032,21 @@
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
block $~lib/internal/arraybuffer/LOAD<i32,i32>|inlined.11 (result i32)
|
||||
i32.const 0
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $5
|
||||
i32.const 0
|
||||
set_local $4
|
||||
get_local $5
|
||||
get_local $2
|
||||
get_local $3
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.add
|
||||
i32.load offset=8
|
||||
end
|
||||
get_local $3
|
||||
get_local $2
|
||||
get_local $0
|
||||
get_local $1
|
||||
call_indirect (type $iiii)
|
||||
@ -4062,10 +4058,10 @@
|
||||
i32.const 0
|
||||
return
|
||||
end
|
||||
get_local $3
|
||||
get_local $2
|
||||
i32.const 1
|
||||
i32.add
|
||||
set_local $3
|
||||
set_local $2
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
@ -4110,27 +4106,23 @@
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $2
|
||||
block $break|0
|
||||
block
|
||||
i32.const 0
|
||||
set_local $3
|
||||
set_local $2
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $4
|
||||
set_local $3
|
||||
end
|
||||
loop $repeat|0
|
||||
get_local $2
|
||||
get_local $3
|
||||
get_local $4
|
||||
tee_local $5
|
||||
tee_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $6
|
||||
tee_local $5
|
||||
get_local $4
|
||||
get_local $5
|
||||
get_local $6
|
||||
i32.lt_s
|
||||
select
|
||||
i32.lt_s
|
||||
@ -4140,18 +4132,21 @@
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
block $~lib/internal/arraybuffer/LOAD<i32,i32>|inlined.13 (result i32)
|
||||
i32.const 0
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $5
|
||||
i32.const 0
|
||||
set_local $4
|
||||
get_local $5
|
||||
get_local $2
|
||||
get_local $3
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.add
|
||||
i32.load offset=8
|
||||
end
|
||||
get_local $3
|
||||
get_local $2
|
||||
get_local $0
|
||||
get_local $1
|
||||
call_indirect (type $iiii)
|
||||
@ -4162,10 +4157,10 @@
|
||||
i32.const 1
|
||||
return
|
||||
end
|
||||
get_local $3
|
||||
get_local $2
|
||||
i32.const 1
|
||||
i32.add
|
||||
set_local $3
|
||||
set_local $2
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
@ -4222,16 +4217,15 @@
|
||||
loop $repeat|0
|
||||
get_local $2
|
||||
get_local $3
|
||||
i32.lt_s
|
||||
tee_local $4
|
||||
if (result i32)
|
||||
get_local $2
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
i32.lt_s
|
||||
else
|
||||
get_local $4
|
||||
end
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $5
|
||||
get_local $4
|
||||
get_local $5
|
||||
i32.lt_s
|
||||
select
|
||||
i32.lt_s
|
||||
i32.eqz
|
||||
br_if $break|0
|
||||
block
|
||||
@ -4477,33 +4471,29 @@
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
(local $8 i32)
|
||||
(local $9 f32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $2
|
||||
(local $8 f32)
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $3
|
||||
set_local $2
|
||||
i32.const 0
|
||||
get_local $3
|
||||
get_local $2
|
||||
call $~lib/array/Array<f32>#constructor
|
||||
set_local $4
|
||||
get_local $4
|
||||
set_local $3
|
||||
get_local $3
|
||||
i32.load
|
||||
set_local $5
|
||||
set_local $4
|
||||
block $break|0
|
||||
i32.const 0
|
||||
set_local $6
|
||||
set_local $5
|
||||
loop $repeat|0
|
||||
get_local $6
|
||||
get_local $3
|
||||
tee_local $7
|
||||
get_local $5
|
||||
get_local $2
|
||||
tee_local $6
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $8
|
||||
tee_local $7
|
||||
get_local $6
|
||||
get_local $7
|
||||
get_local $8
|
||||
i32.lt_s
|
||||
select
|
||||
i32.lt_s
|
||||
@ -4514,10 +4504,13 @@
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
block $~lib/internal/arraybuffer/LOAD<i32,i32>|inlined.15 (result i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $6
|
||||
i32.const 0
|
||||
set_local $7
|
||||
get_local $2
|
||||
get_local $6
|
||||
get_local $5
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
@ -4525,34 +4518,34 @@
|
||||
i32.add
|
||||
i32.load offset=8
|
||||
end
|
||||
get_local $6
|
||||
get_local $5
|
||||
get_local $0
|
||||
get_local $1
|
||||
call_indirect (type $iiif)
|
||||
end
|
||||
set_local $9
|
||||
set_local $8
|
||||
i32.const 0
|
||||
set_local $7
|
||||
get_local $4
|
||||
get_local $5
|
||||
get_local $6
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
get_local $7
|
||||
i32.add
|
||||
get_local $9
|
||||
get_local $8
|
||||
f32.store offset=8
|
||||
end
|
||||
get_local $6
|
||||
get_local $5
|
||||
i32.const 1
|
||||
i32.add
|
||||
set_local $6
|
||||
set_local $5
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
unreachable
|
||||
end
|
||||
get_local $4
|
||||
get_local $3
|
||||
)
|
||||
(func $~lib/array/Array<f32>#__get (; 67 ;) (type $iif) (param $0 i32) (param $1 i32) (result f32)
|
||||
(local $2 i32)
|
||||
@ -4599,32 +4592,28 @@
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
(local $8 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $2
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $3
|
||||
set_local $2
|
||||
i32.const 0
|
||||
get_local $3
|
||||
get_local $2
|
||||
call $~lib/array/Array<i32>#constructor
|
||||
set_local $4
|
||||
get_local $4
|
||||
set_local $3
|
||||
get_local $3
|
||||
i32.load
|
||||
set_local $5
|
||||
set_local $4
|
||||
block $break|0
|
||||
i32.const 0
|
||||
set_local $6
|
||||
set_local $5
|
||||
loop $repeat|0
|
||||
get_local $6
|
||||
get_local $3
|
||||
tee_local $7
|
||||
get_local $5
|
||||
get_local $2
|
||||
tee_local $6
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $8
|
||||
tee_local $7
|
||||
get_local $6
|
||||
get_local $7
|
||||
get_local $8
|
||||
i32.lt_s
|
||||
select
|
||||
i32.lt_s
|
||||
@ -4635,10 +4624,13 @@
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
block $~lib/internal/arraybuffer/LOAD<i32,i32>|inlined.16 (result i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $6
|
||||
i32.const 0
|
||||
set_local $7
|
||||
get_local $2
|
||||
get_local $6
|
||||
get_local $5
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
@ -4646,34 +4638,34 @@
|
||||
i32.add
|
||||
i32.load offset=8
|
||||
end
|
||||
get_local $6
|
||||
get_local $5
|
||||
get_local $0
|
||||
get_local $1
|
||||
call_indirect (type $iiii)
|
||||
end
|
||||
set_local $7
|
||||
i32.const 0
|
||||
set_local $8
|
||||
set_local $6
|
||||
get_local $4
|
||||
get_local $5
|
||||
get_local $6
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
get_local $8
|
||||
get_local $6
|
||||
i32.add
|
||||
get_local $7
|
||||
i32.store offset=8
|
||||
end
|
||||
get_local $6
|
||||
get_local $5
|
||||
i32.const 1
|
||||
i32.add
|
||||
set_local $6
|
||||
set_local $5
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
unreachable
|
||||
end
|
||||
get_local $4
|
||||
get_local $3
|
||||
)
|
||||
(func $start~anonymous|24 (; 70 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
get_global $std/array/i
|
||||
@ -4703,31 +4695,27 @@
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $2
|
||||
i32.const 0
|
||||
i32.const 0
|
||||
call $~lib/array/Array<i32>#constructor
|
||||
set_local $3
|
||||
set_local $2
|
||||
block $break|0
|
||||
block
|
||||
i32.const 0
|
||||
set_local $4
|
||||
set_local $3
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $5
|
||||
set_local $4
|
||||
end
|
||||
loop $repeat|0
|
||||
get_local $3
|
||||
get_local $4
|
||||
get_local $5
|
||||
tee_local $6
|
||||
tee_local $5
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $7
|
||||
tee_local $6
|
||||
get_local $5
|
||||
get_local $6
|
||||
get_local $7
|
||||
i32.lt_s
|
||||
select
|
||||
i32.lt_s
|
||||
@ -4735,10 +4723,13 @@
|
||||
br_if $break|0
|
||||
block
|
||||
block $~lib/internal/arraybuffer/LOAD<i32,i32>|inlined.17 (result i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $5
|
||||
i32.const 0
|
||||
set_local $6
|
||||
get_local $2
|
||||
get_local $4
|
||||
get_local $5
|
||||
get_local $3
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
@ -4751,7 +4742,7 @@
|
||||
i32.const 3
|
||||
set_global $~argc
|
||||
get_local $6
|
||||
get_local $4
|
||||
get_local $3
|
||||
get_local $0
|
||||
get_local $1
|
||||
call_indirect (type $iiii)
|
||||
@ -4759,22 +4750,22 @@
|
||||
i32.const 0
|
||||
i32.ne
|
||||
if
|
||||
get_local $3
|
||||
get_local $2
|
||||
get_local $6
|
||||
call $~lib/array/Array<i32>#push
|
||||
drop
|
||||
end
|
||||
end
|
||||
get_local $4
|
||||
get_local $3
|
||||
i32.const 1
|
||||
i32.add
|
||||
set_local $4
|
||||
set_local $3
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
unreachable
|
||||
end
|
||||
get_local $3
|
||||
get_local $2
|
||||
)
|
||||
(func $start~anonymous|27 (; 74 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
get_local $2
|
||||
@ -4821,29 +4812,25 @@
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
(local $8 i32)
|
||||
get_local $2
|
||||
set_local $3
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
block $break|0
|
||||
block
|
||||
i32.const 0
|
||||
set_local $5
|
||||
set_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $6
|
||||
set_local $5
|
||||
end
|
||||
loop $repeat|0
|
||||
get_local $4
|
||||
get_local $5
|
||||
get_local $6
|
||||
tee_local $7
|
||||
tee_local $6
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $8
|
||||
tee_local $7
|
||||
get_local $6
|
||||
get_local $7
|
||||
get_local $8
|
||||
i32.lt_s
|
||||
select
|
||||
i32.lt_s
|
||||
@ -4854,10 +4841,13 @@
|
||||
set_global $~argc
|
||||
get_local $3
|
||||
block $~lib/internal/arraybuffer/LOAD<i32,i32>|inlined.18 (result i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $6
|
||||
i32.const 0
|
||||
set_local $7
|
||||
get_local $6
|
||||
get_local $4
|
||||
get_local $5
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
@ -4865,16 +4855,16 @@
|
||||
i32.add
|
||||
i32.load offset=8
|
||||
end
|
||||
get_local $5
|
||||
get_local $4
|
||||
get_local $0
|
||||
get_local $1
|
||||
call_indirect (type $iiiii)
|
||||
end
|
||||
set_local $3
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.const 1
|
||||
i32.add
|
||||
set_local $5
|
||||
set_local $4
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
@ -4905,29 +4895,25 @@
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
(local $8 i32)
|
||||
get_local $2
|
||||
set_local $3
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
block $break|0
|
||||
block
|
||||
i32.const 0
|
||||
set_local $5
|
||||
set_local $4
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
set_local $6
|
||||
set_local $5
|
||||
end
|
||||
loop $repeat|0
|
||||
get_local $4
|
||||
get_local $5
|
||||
get_local $6
|
||||
tee_local $7
|
||||
tee_local $6
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
tee_local $8
|
||||
tee_local $7
|
||||
get_local $6
|
||||
get_local $7
|
||||
get_local $8
|
||||
i32.lt_s
|
||||
select
|
||||
i32.lt_s
|
||||
@ -4938,10 +4924,13 @@
|
||||
set_global $~argc
|
||||
get_local $3
|
||||
block $~lib/internal/arraybuffer/LOAD<i32,i32>|inlined.19 (result i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $6
|
||||
i32.const 0
|
||||
set_local $7
|
||||
get_local $6
|
||||
get_local $4
|
||||
get_local $5
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
@ -4949,16 +4938,16 @@
|
||||
i32.add
|
||||
i32.load offset=8
|
||||
end
|
||||
get_local $5
|
||||
get_local $4
|
||||
get_local $0
|
||||
get_local $1
|
||||
call_indirect (type $iiiii)
|
||||
end
|
||||
set_local $3
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.const 1
|
||||
i32.add
|
||||
set_local $5
|
||||
set_local $4
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
@ -5012,17 +5001,14 @@
|
||||
(local $6 i32)
|
||||
get_local $2
|
||||
set_local $3
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
block $break|0
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
i32.const 1
|
||||
i32.sub
|
||||
set_local $5
|
||||
set_local $4
|
||||
loop $repeat|0
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.const 0
|
||||
i32.ge_s
|
||||
i32.eqz
|
||||
@ -5032,10 +5018,13 @@
|
||||
set_global $~argc
|
||||
get_local $3
|
||||
block $~lib/internal/arraybuffer/LOAD<i32,i32>|inlined.20 (result i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $5
|
||||
i32.const 0
|
||||
set_local $6
|
||||
get_local $4
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
@ -5043,16 +5032,16 @@
|
||||
i32.add
|
||||
i32.load offset=8
|
||||
end
|
||||
get_local $5
|
||||
get_local $4
|
||||
get_local $0
|
||||
get_local $1
|
||||
call_indirect (type $iiiii)
|
||||
end
|
||||
set_local $3
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.const 1
|
||||
i32.sub
|
||||
set_local $5
|
||||
set_local $4
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
@ -5084,17 +5073,14 @@
|
||||
(local $6 i32)
|
||||
get_local $2
|
||||
set_local $3
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
block $break|0
|
||||
get_local $0
|
||||
i32.load offset=4
|
||||
i32.const 1
|
||||
i32.sub
|
||||
set_local $5
|
||||
set_local $4
|
||||
loop $repeat|0
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.const 0
|
||||
i32.ge_s
|
||||
i32.eqz
|
||||
@ -5104,10 +5090,13 @@
|
||||
set_global $~argc
|
||||
get_local $3
|
||||
block $~lib/internal/arraybuffer/LOAD<i32,i32>|inlined.21 (result i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $5
|
||||
i32.const 0
|
||||
set_local $6
|
||||
get_local $4
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.const 2
|
||||
i32.shl
|
||||
i32.add
|
||||
@ -5115,16 +5104,16 @@
|
||||
i32.add
|
||||
i32.load offset=8
|
||||
end
|
||||
get_local $5
|
||||
get_local $4
|
||||
get_local $0
|
||||
get_local $1
|
||||
call_indirect (type $iiiii)
|
||||
end
|
||||
set_local $3
|
||||
get_local $5
|
||||
get_local $4
|
||||
i32.const 1
|
||||
i32.sub
|
||||
set_local $5
|
||||
set_local $4
|
||||
br $repeat|0
|
||||
unreachable
|
||||
end
|
||||
@ -5796,7 +5785,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -6578,7 +6567,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -7387,7 +7376,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -8061,7 +8050,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -8521,7 +8510,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -8766,7 +8755,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -9034,7 +9023,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -9242,7 +9231,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -9753,7 +9742,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 406
|
||||
i32.const 395
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -10353,7 +10342,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -1882,7 +1882,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 72
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -2414,7 +2414,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 72
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -1998,7 +1998,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 184
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2081,7 +2081,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 184
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2164,7 +2164,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 184
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2247,7 +2247,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 184
|
||||
i32.const 109
|
||||
i32.const 107
|
||||
i32.const 41
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -1575,7 +1575,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 72
|
||||
i32.const 521
|
||||
i32.const 527
|
||||
i32.const 8
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -1622,7 +1622,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 72
|
||||
i32.const 525
|
||||
i32.const 531
|
||||
i32.const 8
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -1695,7 +1695,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 72
|
||||
i32.const 537
|
||||
i32.const 543
|
||||
i32.const 8
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -1748,7 +1748,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 72
|
||||
i32.const 546
|
||||
i32.const 552
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
@ -2001,7 +2001,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 72
|
||||
i32.const 521
|
||||
i32.const 527
|
||||
i32.const 8
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2055,7 +2055,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 72
|
||||
i32.const 525
|
||||
i32.const 531
|
||||
i32.const 8
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2150,7 +2150,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 72
|
||||
i32.const 537
|
||||
i32.const 543
|
||||
i32.const 8
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
@ -2213,7 +2213,7 @@
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 72
|
||||
i32.const 546
|
||||
i32.const 552
|
||||
i32.const 4
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
|
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