Update Binaryen to latest and regenerate dist files

This commit is contained in:
dcode
2019-02-28 18:26:04 +01:00
parent 1ae7d03e8c
commit 7184db6dde
27 changed files with 1385 additions and 3887 deletions

View File

@ -1,7 +1,6 @@
(module
(type $_ (func))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $iii_ (func (param i32 i32 i32)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
@ -262,10 +261,13 @@
end
end
)
(func $~lib/internal/memory/memcpy (; 3 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/internal/memory/memcpy (; 3 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
i32.const 42
local.set $2
loop $continue|0
local.get $1
i32.const 3
@ -447,16 +449,13 @@
local.set $5
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.tee $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
@ -780,27 +779,12 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -810,9 +794,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -822,9 +804,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -834,9 +814,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -846,9 +824,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -858,9 +834,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -870,9 +844,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -882,9 +854,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -894,9 +864,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -906,9 +874,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -918,9 +884,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -930,9 +894,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -942,9 +904,17 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $0
local.get $1
i32.const 1
i32.add
@ -976,27 +946,12 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1006,9 +961,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1018,9 +971,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1030,9 +981,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1042,9 +991,17 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1076,16 +1033,13 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.tee $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
@ -1094,9 +1048,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1189,7 +1141,6 @@
if
local.get $0
local.get $1
i32.const 42
call $~lib/internal/memory/memcpy
return
end

View File

@ -2,7 +2,7 @@
(type $ii (func (param i32) (result i32)))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $_ (func))
(type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
@ -65,8 +65,11 @@
end
i32.load
)
(func $~lib/internal/string/compareUnsafe (; 3 ;) (type $FUNCSIG$iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(func $~lib/internal/string/compareUnsafe (; 3 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
i32.const 8
local.set $3
local.get $1
i32.const 1
i32.shl
@ -74,31 +77,31 @@
i32.add
local.set $1
loop $continue|0
local.get $3
local.get $2
if (result i32)
local.get $1
i32.load16_u offset=4
local.get $2
local.get $3
i32.load16_u offset=4
i32.sub
local.tee $4
i32.eqz
else
local.get $3
local.get $2
end
if
local.get $3
local.get $2
i32.const 1
i32.sub
local.set $3
local.set $2
local.get $1
i32.const 2
i32.add
local.set $1
local.get $2
local.get $3
i32.const 2
i32.add
local.set $2
local.set $3
br $continue|0
end
end
@ -139,7 +142,6 @@
end
local.get $0
local.get $2
i32.const 8
local.get $3
call $~lib/internal/string/compareUnsafe
i32.eqz

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,6 @@
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $ii (func (param i32) (result i32)))
(type $iii_ (func (param i32 i32 i32)))
(type $iii (func (param i32 i32) (result i32)))
(type $iiiii (func (param i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
@ -1525,75 +1523,14 @@
local.get $2
call $~lib/arraybuffer/ArrayBuffer#slice
)
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 8 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $1
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 160
i32.const 23
i32.const 34
call $~lib/env/abort
unreachable
end
local.get $1
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const 1
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $2
i32.const 8
i32.add
local.get $1
call $~lib/internal/memory/memset
local.get $0
i32.eqz
if
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
local.get $2
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
local.get $1
i32.store offset=8
local.get $0
)
(func $~lib/internal/typedarray/TypedArray<i32>#constructor (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $1
i32.const 268435454
i32.gt_u
if
i32.const 0
i32.const 160
i32.const 23
i32.const 34
call $~lib/env/abort
unreachable
end
local.get $1
i32.const 2
i32.shl
local.tee $1
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $2
i32.const 8
i32.add
local.get $1
i32.const 1
call $~lib/internal/memory/memset
local.get $0
i32.eqz
@ -1612,41 +1549,67 @@
i32.const 0
i32.store offset=8
local.get $0
local.get $2
local.get $1
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
local.get $1
i32.const 1
i32.store offset=8
local.get $0
)
(func $~lib/dataview/DataView#constructor (; 10 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
local.get $3
i32.const -2147483648
i32.eq
(func $~lib/internal/typedarray/TypedArray<i32>#constructor (; 9 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const 4
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $1
i32.const 8
i32.add
i32.const 4
call $~lib/internal/memory/memset
local.get $0
i32.eqz
if
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
local.get $1
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 4
i32.store offset=8
local.get $0
)
(func $~lib/dataview/DataView#constructor (; 10 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
block (result i32)
local.get $1
i32.load
local.get $2
i32.sub
local.set $3
i32.const -2147483648
i32.eq
if
local.get $0
i32.load
local.set $1
end
local.get $1
i32.const 1073741816
i32.gt_u
end
local.get $2
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 248
i32.const 14
i32.const 44
call $~lib/env/abort
unreachable
end
local.get $3
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 248
@ -1655,10 +1618,8 @@
call $~lib/env/abort
unreachable
end
local.get $2
local.get $3
i32.add
local.get $1
local.get $0
i32.load
i32.gt_s
if
@ -1669,47 +1630,22 @@
call $~lib/env/abort
unreachable
end
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.tee $2
local.get $0
i32.eqz
if
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.set $0
end
local.get $0
local.get $1
i32.store
local.get $0
local.get $2
i32.const 0
i32.store offset=4
local.get $0
local.get $3
i32.store offset=8
local.get $0
)
(func $~lib/dataview/DataView#constructor|trampoline (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block $2of2
block $1of2
block $outOfRange
global.get $~lib/argc
i32.const 1
i32.sub
br_table $1of2 $1of2 $2of2 $outOfRange
end
unreachable
end
i32.const -2147483648
local.set $1
end
i32.const 0
local.get $0
i32.const 0
local.get $2
local.get $1
call $~lib/dataview/DataView#constructor
i32.store offset=8
local.get $2
)
(func $start:std/arraybuffer (; 12 ;) (type $_)
(func $start:std/arraybuffer (; 11 ;) (type $_)
(local $0 i32)
(local $1 i32)
i32.const 288
global.set $~lib/allocator/arena/startOffset
global.get $~lib/allocator/arena/startOffset
@ -1907,7 +1843,6 @@
end
i32.const 12
call $~lib/allocator/arena/__memory_allocate
i32.const 1
call $~lib/internal/typedarray/TypedArray<u8>#constructor
global.set $std/arraybuffer/arr8
i32.const 1
@ -1927,7 +1862,6 @@
i32.const 0
i32.const 12
call $~lib/allocator/arena/__memory_allocate
i32.const 1
call $~lib/internal/typedarray/TypedArray<i32>#constructor
i32.eqz
br_if $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<Uint8Array>5
@ -1946,10 +1880,28 @@
i32.const 1
global.set $~lib/argc
block $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<Uint8Array>6 (result i32)
i32.const 0
global.get $std/arraybuffer/arr8
i32.load
call $~lib/dataview/DataView#constructor|trampoline
local.set $1
i32.const 0
local.set $0
block $2of2
block $1of2
block $outOfRange
global.get $~lib/argc
i32.const 1
i32.sub
br_table $1of2 $1of2 $2of2 $outOfRange
end
unreachable
end
i32.const -2147483648
local.set $0
end
i32.const 0
local.get $1
local.get $0
call $~lib/dataview/DataView#constructor
i32.eqz
br_if $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<Uint8Array>6
drop
@ -1965,10 +1917,10 @@
unreachable
end
)
(func $start (; 13 ;) (type $_)
(func $start (; 12 ;) (type $_)
call $start:std/arraybuffer
)
(func $null (; 14 ;) (type $_)
(func $null (; 13 ;) (type $_)
nop
)
)

View File

@ -7,12 +7,14 @@
(type $iiif (func (param i32 i32 i32) (result f32)))
(type $II (func (param i64) (result i64)))
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$dii (func (param i32 i32) (result f64)))
(type $FUNCSIG$jii (func (param i32 i32) (result i64)))
(type $FUNCSIG$vifi (func (param i32 f32 i32)))
(type $FUNCSIG$vidi (func (param i32 f64 i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$viji (func (param i32 i64 i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
@ -92,271 +94,60 @@
global.set $~lib/allocator/arena/offset
local.get $1
)
(func $~lib/internal/arraybuffer/allocateUnsafe (; 2 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/memory/memset (; 2 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 72
i32.const 26
i32.const 2
call $~lib/env/abort
unreachable
end
i32.const 1
i32.const 32
i32.const 0
i32.store8
local.get $0
i32.const 7
i32.const 8
i32.add
i32.clz
local.tee $1
i32.const 1
i32.sub
i32.shl
i32.const 0
i32.store8
local.get $0
i32.const 1
i32.add
i32.const 0
i32.store8
local.get $0
i32.const 2
i32.add
i32.const 0
i32.store8
local.get $1
i32.const 2
i32.sub
i32.const 0
i32.store8
local.get $1
i32.const 3
i32.sub
i32.const 0
i32.store8
local.get $0
i32.const 3
i32.add
i32.const 0
i32.store8
local.get $1
i32.const 4
i32.sub
i32.const 0
i32.store8
)
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const 16
call $~lib/allocator/arena/__memory_allocate
local.tee $1
local.get $0
i32.store
local.get $1
)
(func $~lib/internal/memory/memset (; 3 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $1
i32.eqz
if
return
end
local.get $0
i32.const 0
i32.store8
local.get $0
local.get $1
i32.add
i32.const 1
i32.sub
i32.const 0
i32.store8
local.get $1
i32.const 2
i32.le_u
if
return
end
local.get $0
i32.const 1
i32.add
i32.const 0
i32.store8
local.get $0
i32.const 2
i32.add
i32.const 0
i32.store8
local.get $0
local.get $1
i32.add
local.tee $2
i32.const 2
i32.sub
i32.const 0
i32.store8
local.get $2
i32.const 3
i32.sub
i32.const 0
i32.store8
local.get $1
i32.const 6
i32.le_u
if
return
end
local.get $0
i32.const 3
i32.add
i32.const 0
i32.store8
local.get $0
local.get $1
i32.add
i32.const 4
i32.sub
i32.const 0
i32.store8
local.get $1
i32.const 8
i32.le_u
if
return
end
i32.const 0
local.get $0
i32.sub
i32.const 3
i32.and
local.tee $2
local.get $0
i32.add
local.tee $0
i32.const 0
i32.store
local.get $1
local.get $2
i32.sub
i32.const -4
i32.and
local.tee $1
local.get $0
i32.add
i32.const 4
i32.sub
i32.const 0
i32.store
local.get $1
i32.const 8
i32.le_u
if
return
end
local.get $0
i32.const 4
i32.add
i32.const 0
i32.store
local.get $0
i32.const 8
i32.add
i32.const 0
i32.store
local.get $0
local.get $1
i32.add
local.tee $2
i32.const 12
i32.sub
i32.const 0
i32.store
local.get $2
i32.const 8
i32.sub
i32.const 0
i32.store
local.get $1
i32.const 24
i32.le_u
if
return
end
local.get $0
i32.const 12
i32.add
i32.const 0
i32.store
local.get $0
i32.const 16
i32.add
i32.const 0
i32.store
local.get $0
i32.const 20
i32.add
i32.const 0
i32.store
local.get $0
i32.const 24
i32.add
i32.const 0
i32.store
local.get $0
local.get $1
i32.add
local.tee $2
i32.const 28
i32.sub
i32.const 0
i32.store
local.get $2
i32.const 24
i32.sub
i32.const 0
i32.store
local.get $2
i32.const 20
i32.sub
i32.const 0
i32.store
local.get $2
i32.const 16
i32.sub
i32.const 0
i32.store
local.get $0
i32.const 4
i32.and
i32.const 24
i32.add
local.tee $2
local.get $0
i32.add
local.set $0
local.get $1
local.get $2
i32.sub
local.set $1
loop $continue|0
local.get $1
i32.const 32
i32.ge_u
if
local.get $0
i64.const 0
i64.store
local.get $0
i32.const 8
i32.add
i64.const 0
i64.store
local.get $0
i32.const 16
i32.add
i64.const 0
i64.store
local.get $0
i32.const 24
i32.add
i64.const 0
i64.store
local.get $1
i32.const 32
i32.sub
local.set $1
local.get $0
i32.const 32
i32.add
local.set $0
br $continue|0
end
end
)
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 4 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $1
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 8
i32.const 23
i32.const 34
call $~lib/env/abort
unreachable
end
local.get $1
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $2
i32.const 8
i32.add
local.get $1
call $~lib/internal/memory/memset
local.get $0
i32.eqz
@ -375,17 +166,17 @@
i32.const 0
i32.store offset=8
local.get $0
local.get $2
local.get $1
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
local.get $1
i32.const 8
i32.store offset=8
local.get $0
)
(func $~lib/internal/typedarray/TypedArray<u8>#__set (; 5 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/internal/typedarray/TypedArray<u8>#__set (; 4 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
local.get $1
local.get $0
i32.load offset=8
@ -408,7 +199,7 @@
local.get $2
i32.store8 offset=8
)
(func $~lib/dataview/DataView#constructor (; 6 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/dataview/DataView#constructor (; 5 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
local.get $2
i32.const -2147483648
@ -469,7 +260,7 @@
i32.store offset=8
local.get $3
)
(func $~lib/dataview/DataView#getFloat32 (; 7 ;) (type $iiif) (param $0 i32) (param $1 i32) (param $2 i32) (result f32)
(func $~lib/dataview/DataView#getFloat32 (; 6 ;) (type $iiif) (param $0 i32) (param $1 i32) (param $2 i32) (result f32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -530,7 +321,7 @@
f32.reinterpret_i32
end
)
(func $~lib/polyfills/bswap<u64> (; 8 ;) (type $II) (param $0 i64) (result i64)
(func $~lib/polyfills/bswap<u64> (; 7 ;) (type $II) (param $0 i64) (result i64)
(local $1 i64)
local.get $0
i64.const 8
@ -557,7 +348,7 @@
i64.const 32
i64.rotr
)
(func $~lib/dataview/DataView#getFloat64 (; 9 ;) (type $FUNCSIG$dii) (param $0 i32) (param $1 i32) (result f64)
(func $~lib/dataview/DataView#getFloat64 (; 8 ;) (type $FUNCSIG$dii) (param $0 i32) (param $1 i32) (result f64)
i32.const 8
local.get $0
i32.load offset=8
@ -589,7 +380,7 @@
f64.reinterpret_i64
end
)
(func $~lib/dataview/DataView#getInt8 (; 10 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/dataview/DataView#getInt8 (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -627,7 +418,7 @@
i32.add
i32.load8_s offset=8
)
(func $~lib/dataview/DataView#getInt16 (; 11 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/dataview/DataView#getInt16 (; 10 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -681,7 +472,7 @@
i32.or
end
)
(func $~lib/dataview/DataView#getInt32 (; 12 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/dataview/DataView#getInt32 (; 11 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -735,7 +526,7 @@
i32.or
end
)
(func $~lib/dataview/DataView#getInt64 (; 13 ;) (type $FUNCSIG$jii) (param $0 i32) (param $1 i32) (result i64)
(func $~lib/dataview/DataView#getInt64 (; 12 ;) (type $FUNCSIG$jii) (param $0 i32) (param $1 i32) (result i64)
(local $2 i64)
i32.const 8
local.get $0
@ -764,7 +555,7 @@
call $~lib/polyfills/bswap<u64>
end
)
(func $~lib/dataview/DataView#getUint8 (; 14 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/dataview/DataView#getUint8 (; 13 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -802,7 +593,7 @@
i32.add
i32.load8_u offset=8
)
(func $~lib/dataview/DataView#getUint16 (; 15 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/dataview/DataView#getUint16 (; 14 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -854,7 +645,7 @@
i32.or
end
)
(func $~lib/dataview/DataView#setFloat32 (; 16 ;) (type $FUNCSIG$vifi) (param $0 i32) (param $1 f32) (param $2 i32)
(func $~lib/dataview/DataView#setFloat32 (; 15 ;) (type $FUNCSIG$vifi) (param $0 i32) (param $1 f32) (param $2 i32)
(local $3 i32)
i32.const 4
local.get $0
@ -899,7 +690,7 @@
i32.store offset=8
end
)
(func $~lib/dataview/DataView#setFloat64 (; 17 ;) (type $FUNCSIG$vidi) (param $0 i32) (param $1 f64) (param $2 i32)
(func $~lib/dataview/DataView#setFloat64 (; 16 ;) (type $FUNCSIG$vidi) (param $0 i32) (param $1 f64) (param $2 i32)
i32.const 8
local.get $0
i32.load offset=8
@ -933,7 +724,7 @@
i64.store offset=8
end
)
(func $~lib/dataview/DataView#setInt8 (; 18 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/dataview/DataView#setInt8 (; 17 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
i32.const 1
local.get $0
i32.load offset=8
@ -954,7 +745,7 @@
local.get $1
i32.store8 offset=8
)
(func $~lib/dataview/DataView#setInt16 (; 19 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/dataview/DataView#setInt16 (; 18 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
i32.const 2
local.get $0
i32.load offset=8
@ -993,7 +784,7 @@
local.get $1
i32.store16 offset=8
)
(func $~lib/dataview/DataView#setInt32 (; 20 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/dataview/DataView#setInt32 (; 19 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
i32.const 4
local.get $0
i32.load offset=8
@ -1032,7 +823,7 @@
local.get $1
i32.store offset=8
)
(func $~lib/dataview/DataView#setInt64 (; 21 ;) (type $FUNCSIG$viji) (param $0 i32) (param $1 i64) (param $2 i32)
(func $~lib/dataview/DataView#setInt64 (; 20 ;) (type $FUNCSIG$viji) (param $0 i32) (param $1 i64) (param $2 i32)
i32.const 8
local.get $0
i32.load offset=8
@ -1059,7 +850,7 @@
end
i64.store offset=8
)
(func $~lib/dataview/DataView#setUint16 (; 22 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/dataview/DataView#setUint16 (; 21 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
i32.const 2
local.get $0
i32.load offset=8
@ -1096,7 +887,7 @@
local.get $1
i32.store16 offset=8
)
(func $start:std/dataview (; 23 ;) (type $_)
(func $start:std/dataview (; 22 ;) (type $_)
(local $0 i32)
i32.const 216
global.set $~lib/allocator/arena/startOffset
@ -1104,7 +895,6 @@
global.set $~lib/allocator/arena/offset
i32.const 12
call $~lib/allocator/arena/__memory_allocate
i32.const 8
call $~lib/internal/typedarray/TypedArray<u8>#constructor
global.set $std/dataview/array
global.get $std/dataview/array
@ -2625,10 +2415,10 @@
unreachable
end
)
(func $start (; 24 ;) (type $_)
(func $start (; 23 ;) (type $_)
call $start:std/dataview
)
(func $null (; 25 ;) (type $_)
(func $null (; 24 ;) (type $_)
nop
)
)

View File

@ -3,7 +3,7 @@
(type $iiiiiiFF (func (param i32 i32 i32 i32 i32 i32 f64) (result f64)))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $F (func (result f64)))
(type $ii (func (param i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(import "Date" "UTC" (func $~lib/bindings/Date/UTC (param i32 i32 i32 i32 i32 i32 f64) (result f64)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(import "Date" "now" (func $~lib/bindings/Date/now (result f64)))
@ -18,39 +18,27 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.tee $1
local.get $0
i32.const 1
local.get $0
i32.const 1
i32.gt_u
select
i32.add
i32.const 7
local.tee $0
i32.const 15
i32.add
i32.const -8
i32.and
local.tee $2
local.tee $1
current_memory
local.tee $3
local.tee $2
i32.const 16
i32.shl
i32.gt_u
if
local.get $3
local.get $2
local.get $1
local.get $0
i32.sub
i32.const 65535
i32.add
@ -58,16 +46,16 @@
i32.and
i32.const 16
i32.shr_u
local.tee $0
local.tee $3
local.get $2
local.get $3
local.get $0
i32.gt_s
select
grow_memory
i32.const 0
i32.lt_s
if
local.get $0
local.get $3
grow_memory
i32.const 0
i32.lt_s
@ -76,9 +64,9 @@
end
end
end
local.get $2
global.set $~lib/allocator/arena/offset
local.get $1
global.set $~lib/allocator/arena/offset
local.get $0
)
(func $start:std/date (; 4 ;) (type $_)
(local $0 i32)
@ -160,7 +148,6 @@
end
global.get $std/date/creationTime
local.set $1
i32.const 8
call $~lib/allocator/arena/__memory_allocate
local.tee $0
i64.const 0

View File

@ -20,6 +20,9 @@
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$vij (func (param i32 i64)))
(type $FUNCSIG$vif (func (param i32 f32)))
(type $FUNCSIG$vid (func (param i32 f64)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\13\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
@ -710,7 +713,7 @@
unreachable
end
)
(func $~lib/map/Map<i8,i32>#delete (; 12 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/map/Map<i8,i32>#delete (; 12 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -727,7 +730,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -759,7 +761,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -769,15 +771,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/map/Map<i8,i32>#rehash
end
i32.const 1
)
(func $std/map/test<i8,i32> (; 13 ;) (type $_)
(local $0 i32)
@ -1003,7 +1004,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i8,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i8,i32>#has
@ -1079,7 +1079,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i8,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i8,i32>#has
@ -1367,7 +1366,7 @@
unreachable
end
)
(func $~lib/map/Map<u8,i32>#delete (; 18 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/map/Map<u8,i32>#delete (; 18 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -1382,7 +1381,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -1414,7 +1412,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -1424,15 +1422,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/map/Map<u8,i32>#rehash
end
i32.const 1
)
(func $std/map/test<u8,i32> (; 19 ;) (type $_)
(local $0 i32)
@ -1646,7 +1643,6 @@
local.get $1
local.get $0
call $~lib/map/Map<u8,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<u8,i32>#has
@ -1720,7 +1716,6 @@
local.get $1
local.get $0
call $~lib/map/Map<u8,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<u8,i32>#has
@ -2096,7 +2091,7 @@
unreachable
end
)
(func $~lib/map/Map<i16,i32>#delete (; 25 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/map/Map<i16,i32>#delete (; 25 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -2122,7 +2117,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -2154,7 +2148,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -2164,15 +2158,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/map/Map<i16,i32>#rehash
end
i32.const 1
)
(func $std/map/test<i16,i32> (; 26 ;) (type $_)
(local $0 i32)
@ -2398,7 +2391,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i16,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i16,i32>#has
@ -2474,7 +2466,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i16,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i16,i32>#has
@ -2799,7 +2790,7 @@
unreachable
end
)
(func $~lib/map/Map<u16,i32>#delete (; 31 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/map/Map<u16,i32>#delete (; 31 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -2823,7 +2814,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -2855,7 +2845,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -2865,15 +2855,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/map/Map<u16,i32>#rehash
end
i32.const 1
)
(func $std/map/test<u16,i32> (; 32 ;) (type $_)
(local $0 i32)
@ -3087,7 +3076,6 @@
local.get $1
local.get $0
call $~lib/map/Map<u16,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<u16,i32>#has
@ -3161,7 +3149,6 @@
local.get $1
local.get $0
call $~lib/map/Map<u16,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<u16,i32>#has
@ -3503,7 +3490,7 @@
unreachable
end
)
(func $~lib/map/Map<i32,i32>#delete (; 39 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/map/Map<i32,i32>#delete (; 39 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -3513,7 +3500,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -3545,7 +3531,7 @@
select
i32.ge_u
local.tee $1
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -3555,15 +3541,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $1
else
local.get $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/map/Map<i32,i32>#rehash
end
i32.const 1
)
(func $std/map/test<i32,i32> (; 40 ;) (type $_)
(local $0 i32)
@ -3765,7 +3750,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#has
@ -3837,7 +3821,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#has
@ -4083,7 +4066,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#has
@ -4155,7 +4137,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#has
@ -4582,7 +4563,7 @@
unreachable
end
)
(func $~lib/map/Map<i64,i32>#delete (; 50 ;) (type $iIi) (param $0 i32) (param $1 i64) (result i32)
(func $~lib/map/Map<i64,i32>#delete (; 50 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
(local $2 i32)
(local $3 i32)
local.get $0
@ -4593,7 +4574,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -4625,7 +4605,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -4635,15 +4615,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/map/Map<i64,i32>#rehash
end
i32.const 1
)
(func $std/map/test<i64,i32> (; 51 ;) (type $_)
(local $0 i64)
@ -4851,7 +4830,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#has
@ -4924,7 +4902,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#has
@ -5176,7 +5153,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#has
@ -5249,7 +5225,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#has
@ -5564,7 +5539,7 @@
unreachable
end
)
(func $~lib/map/Map<f32,i32>#delete (; 58 ;) (type $ifi) (param $0 i32) (param $1 f32) (result i32)
(func $~lib/map/Map<f32,i32>#delete (; 58 ;) (type $FUNCSIG$vif) (param $0 i32) (param $1 f32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -5576,7 +5551,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -5608,7 +5582,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -5618,15 +5592,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/map/Map<f32,i32>#rehash
end
i32.const 1
)
(func $std/map/test<f32,i32> (; 59 ;) (type $_)
(local $0 f32)
@ -5834,7 +5807,6 @@
local.get $1
local.get $0
call $~lib/map/Map<f32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<f32,i32>#has
@ -5907,7 +5879,6 @@
local.get $1
local.get $0
call $~lib/map/Map<f32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<f32,i32>#has
@ -6222,7 +6193,7 @@
unreachable
end
)
(func $~lib/map/Map<f64,i32>#delete (; 65 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
(func $~lib/map/Map<f64,i32>#delete (; 65 ;) (type $FUNCSIG$vid) (param $0 i32) (param $1 f64)
(local $2 i32)
(local $3 i32)
local.get $0
@ -6234,7 +6205,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -6266,7 +6236,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -6276,15 +6246,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/map/Map<f64,i32>#rehash
end
i32.const 1
)
(func $std/map/test<f64,i32> (; 66 ;) (type $_)
(local $0 f64)
@ -6492,7 +6461,6 @@
local.get $1
local.get $0
call $~lib/map/Map<f64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<f64,i32>#has
@ -6565,7 +6533,6 @@
local.get $1
local.get $0
call $~lib/map/Map<f64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<f64,i32>#has

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,5 @@
(module
(type $_ (func))
(type $ii (func (param i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(memory $0 0)
(table $0 1 funcref)
@ -11,39 +10,27 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.tee $1
local.get $0
i32.const 1
local.get $0
i32.const 1
i32.gt_u
select
i32.add
i32.const 7
local.tee $0
i32.const 15
i32.add
i32.const -8
i32.and
local.tee $2
local.tee $1
current_memory
local.tee $3
local.tee $2
i32.const 16
i32.shl
i32.gt_u
if
local.get $3
local.get $2
local.get $1
local.get $0
i32.sub
i32.const 65535
i32.add
@ -51,16 +38,16 @@
i32.and
i32.const 16
i32.shr_u
local.tee $0
local.tee $3
local.get $2
local.get $3
local.get $0
i32.gt_s
select
grow_memory
i32.const 0
i32.lt_s
if
local.get $0
local.get $3
grow_memory
i32.const 0
i32.lt_s
@ -69,13 +56,12 @@
end
end
end
local.get $2
global.set $~lib/allocator/arena/offset
local.get $1
global.set $~lib/allocator/arena/offset
local.get $0
)
(func $std/new/AClass#constructor (; 1 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
i32.const 8
call $~lib/allocator/arena/__memory_allocate
local.tee $0
i32.const 1

View File

@ -1,10 +1,10 @@
(module
(type $_ (func))
(type $ii (func (param i32) (result i32)))
(type $iii (func (param i32 i32) (result i32)))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $FFF (func (param f64 f64) (result f64)))
(type $FiF (func (param f64 i32) (result f64)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
@ -82,39 +82,27 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.tee $1
local.get $0
i32.const 1
local.get $0
i32.const 1
i32.gt_u
select
i32.add
i32.const 7
local.tee $0
i32.const 15
i32.add
i32.const -8
i32.and
local.tee $2
local.tee $1
current_memory
local.tee $3
local.tee $2
i32.const 16
i32.shl
i32.gt_u
if
local.get $3
local.get $2
local.get $1
local.get $0
i32.sub
i32.const 65535
i32.add
@ -122,16 +110,16 @@
i32.and
i32.const 16
i32.shr_u
local.tee $0
local.tee $3
local.get $2
local.get $3
local.get $0
i32.gt_s
select
grow_memory
i32.const 0
i32.lt_s
if
local.get $0
local.get $3
grow_memory
i32.const 0
i32.lt_s
@ -140,13 +128,12 @@
end
end
end
local.get $2
global.set $~lib/allocator/arena/offset
local.get $1
global.set $~lib/allocator/arena/offset
local.get $0
)
(func $std/operator-overloading/Tester#constructor (; 2 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
i32.const 8
call $~lib/allocator/arena/__memory_allocate
local.tee $2
local.get $0

View File

@ -1,6 +1,5 @@
(module
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $iii_ (func (param i32 i32 i32)))
(type $_ (func))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
@ -62,10 +61,13 @@
i32.const 0
i32.store8
)
(func $~lib/internal/memory/memcpy (; 2 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/internal/memory/memcpy (; 2 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
i32.const 8
local.set $2
loop $continue|0
local.get $1
i32.const 3
@ -247,16 +249,13 @@
local.set $5
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.tee $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
@ -580,27 +579,12 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -610,9 +594,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -622,9 +604,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -634,9 +614,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -646,9 +624,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -658,9 +634,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -670,9 +644,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -682,9 +654,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -694,9 +664,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -706,9 +674,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -718,9 +684,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -730,9 +694,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -742,9 +704,17 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $0
local.get $1
i32.const 1
i32.add
@ -776,27 +746,12 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -806,9 +761,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -818,9 +771,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -830,9 +781,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -842,9 +791,17 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $0
local.get $1
i32.const 1
i32.add
@ -876,16 +833,13 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.tee $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
@ -894,9 +848,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -989,7 +941,6 @@
if
local.get $0
local.get $1
i32.const 8
call $~lib/internal/memory/memcpy
return
end

View File

@ -21,6 +21,9 @@
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$vij (func (param i32 i64)))
(type $FUNCSIG$vif (func (param i32 f32)))
(type $FUNCSIG$vid (func (param i32 f64)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\13\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
@ -679,7 +682,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<i8>#delete (; 11 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i8>#delete (; 11 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -696,7 +699,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -728,7 +730,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -738,15 +740,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/set/Set<i8>#rehash
end
i32.const 1
)
(func $std/set/test<i8> (; 12 ;) (type $_)
(local $0 i32)
@ -880,7 +881,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i8>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
@ -949,7 +949,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i8>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
@ -1207,7 +1206,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<u8>#delete (; 16 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<u8>#delete (; 16 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -1222,7 +1221,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -1254,7 +1252,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -1264,15 +1262,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/set/Set<u8>#rehash
end
i32.const 1
)
(func $std/set/test<u8> (; 17 ;) (type $_)
(local $0 i32)
@ -1406,7 +1403,6 @@
local.get $1
local.get $0
call $~lib/set/Set<u8>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
@ -1475,7 +1471,6 @@
local.get $1
local.get $0
call $~lib/set/Set<u8>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
@ -1810,7 +1805,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<i16>#delete (; 22 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i16>#delete (; 22 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -1836,7 +1831,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -1868,7 +1862,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -1878,15 +1872,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/set/Set<i16>#rehash
end
i32.const 1
)
(func $std/set/test<i16> (; 23 ;) (type $_)
(local $0 i32)
@ -2020,7 +2013,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i16>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
@ -2089,7 +2081,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i16>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
@ -2375,7 +2366,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<u16>#delete (; 27 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<u16>#delete (; 27 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -2399,7 +2390,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -2431,7 +2421,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -2441,15 +2431,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/set/Set<u16>#rehash
end
i32.const 1
)
(func $std/set/test<u16> (; 28 ;) (type $_)
(local $0 i32)
@ -2583,7 +2572,6 @@
local.get $1
local.get $0
call $~lib/set/Set<u16>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
@ -2652,7 +2640,6 @@
local.get $1
local.get $0
call $~lib/set/Set<u16>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
@ -2971,7 +2958,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<i32>#delete (; 34 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i32>#delete (; 34 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -2981,7 +2968,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -3013,7 +2999,7 @@
select
i32.ge_u
local.tee $1
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -3023,15 +3009,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $1
else
local.get $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/set/Set<i32>#rehash
end
i32.const 1
)
(func $std/set/test<i32> (; 35 ;) (type $_)
(local $0 i32)
@ -3165,7 +3150,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
@ -3234,7 +3218,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
@ -3412,7 +3395,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
@ -3481,7 +3463,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
@ -3885,7 +3866,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<i64>#delete (; 44 ;) (type $iIi) (param $0 i32) (param $1 i64) (result i32)
(func $~lib/set/Set<i64>#delete (; 44 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
(local $2 i32)
(local $3 i32)
local.get $0
@ -3896,7 +3877,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -3928,7 +3908,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -3938,15 +3918,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/set/Set<i64>#rehash
end
i32.const 1
)
(func $std/set/test<i64> (; 45 ;) (type $_)
(local $0 i64)
@ -4080,7 +4059,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i64>#has
@ -4149,7 +4127,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i64>#has
@ -4327,7 +4304,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i64>#has
@ -4396,7 +4372,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i64>#has
@ -4688,7 +4663,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<f32>#delete (; 52 ;) (type $ifi) (param $0 i32) (param $1 f32) (result i32)
(func $~lib/set/Set<f32>#delete (; 52 ;) (type $FUNCSIG$vif) (param $0 i32) (param $1 f32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -4700,7 +4675,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -4732,7 +4706,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -4742,15 +4716,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/set/Set<f32>#rehash
end
i32.const 1
)
(func $std/set/test<f32> (; 53 ;) (type $_)
(local $0 f32)
@ -4884,7 +4857,6 @@
local.get $1
local.get $0
call $~lib/set/Set<f32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<f32>#has
@ -4953,7 +4925,6 @@
local.get $1
local.get $0
call $~lib/set/Set<f32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<f32>#has
@ -5245,7 +5216,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<f64>#delete (; 59 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
(func $~lib/set/Set<f64>#delete (; 59 ;) (type $FUNCSIG$vid) (param $0 i32) (param $1 f64)
(local $2 i32)
(local $3 i32)
local.get $0
@ -5257,7 +5228,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -5289,7 +5259,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -5299,15 +5269,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/set/Set<f64>#rehash
end
i32.const 1
)
(func $std/set/test<f64> (; 60 ;) (type $_)
(local $0 f64)
@ -5441,7 +5410,6 @@
local.get $1
local.get $0
call $~lib/set/Set<f64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<f64>#has
@ -5510,7 +5478,6 @@
local.get $1
local.get $0
call $~lib/set/Set<f64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<f64>#has

View File

@ -6,7 +6,6 @@
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $iii_ (func (param i32 i32 i32)))
(type $iiiii_ (func (param i32 i32 i32 i32 i32)))
(type $iiF (func (param i32 i32) (result f64)))
(type $iF (func (param i32) (result f64)))
(type $Ii (func (param i64) (result i32)))
(type $iIi_ (func (param i32 i64 i32)))
@ -493,8 +492,8 @@
call $~lib/internal/string/compareUnsafe
i32.eqz
)
(func $~lib/string/String#endsWith (; 9 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(func $~lib/string/String#endsWith (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
i32.eqz
if
@ -506,30 +505,24 @@
unreachable
end
local.get $1
i32.eqz
if
i32.const 0
return
end
local.get $2
i32.const 0
local.get $2
local.get $1
i32.const 0
i32.gt_s
select
local.tee $2
local.tee $1
local.get $0
i32.load
local.tee $3
local.tee $2
local.get $1
local.get $2
local.get $3
i32.lt_s
select
local.get $1
i32.const 216
i32.load
local.tee $2
local.tee $1
i32.sub
local.tee $3
local.tee $2
i32.const 0
i32.lt_s
if
@ -537,9 +530,9 @@
return
end
local.get $0
local.get $3
local.get $1
local.get $2
i32.const 216
local.get $1
call $~lib/internal/string/compareUnsafe
i32.eqz
)
@ -2258,7 +2251,8 @@
local.get $2
call $~lib/string/String#lastIndexOf
)
(func $~lib/internal/string/parse<f64> (; 21 ;) (type $iiF) (param $0 i32) (param $1 i32) (result f64)
(func $~lib/internal/string/parse<f64> (; 21 ;) (type $FUNCSIG$di) (param $0 i32) (result f64)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -2266,242 +2260,222 @@
(local $6 f64)
local.get $0
i32.load
local.tee $4
local.tee $3
i32.eqz
if
f64.const nan:0x8000000000000
return
end
local.get $0
local.tee $3
i32.load16_u offset=4
local.tee $2
i32.load16_u offset=4
local.tee $1
i32.const 45
i32.eq
if (result f64)
local.get $4
local.get $3
i32.const 1
i32.sub
local.tee $4
local.tee $3
i32.eqz
if
f64.const nan:0x8000000000000
return
end
local.get $3
local.get $2
i32.const 2
i32.add
local.tee $3
local.tee $2
i32.load16_u offset=4
local.set $2
local.set $1
f64.const -1
else
local.get $2
local.get $1
i32.const 43
i32.eq
if
local.get $4
local.get $3
i32.const 1
i32.sub
local.tee $4
local.tee $3
i32.eqz
if
f64.const nan:0x8000000000000
return
end
local.get $3
local.get $2
i32.const 2
i32.add
local.tee $3
local.tee $2
i32.load16_u offset=4
local.set $2
local.set $1
end
f64.const 1
end
local.set $6
local.get $1
if
local.get $1
i32.const 48
i32.eq
local.tee $0
if (result i32)
local.get $3
i32.const 2
i32.lt_s
local.tee $0
i32.eqz
if
local.get $1
i32.const 36
i32.gt_s
local.set $0
end
local.get $0
if
f64.const nan:0x8000000000000
return
end
i32.gt_s
else
local.get $2
i32.const 48
i32.eq
local.tee $0
if
local.get $4
i32.const 2
i32.gt_s
local.set $0
end
local.get $0
if (result i32)
block $break|0 (result i32)
block $case6|0
block $case5|0
block $case3|0
block $case1|0
local.get $3
i32.const 2
i32.add
i32.load16_u offset=4
local.tee $0
i32.const 66
i32.eq
br_if $case1|0
local.get $0
i32.const 98
i32.eq
br_if $case1|0
local.get $0
i32.const 79
i32.eq
br_if $case3|0
local.get $0
i32.const 111
i32.eq
br_if $case3|0
local.get $0
i32.const 88
i32.eq
br_if $case5|0
local.get $0
i32.const 120
i32.eq
br_if $case5|0
br $case6|0
end
local.get $3
i32.const 4
end
if (result i32)
block $break|0 (result i32)
block $case6|0
block $case5|0
block $case3|0
block $case1|0
local.get $2
i32.const 2
i32.add
local.set $3
local.get $4
i32.const 2
i32.sub
local.set $4
i32.const 2
br $break|0
i32.load16_u offset=4
local.tee $0
i32.const 66
i32.eq
br_if $case1|0
local.get $0
i32.const 98
i32.eq
br_if $case1|0
local.get $0
i32.const 79
i32.eq
br_if $case3|0
local.get $0
i32.const 111
i32.eq
br_if $case3|0
local.get $0
i32.const 88
i32.eq
br_if $case5|0
local.get $0
i32.const 120
i32.eq
br_if $case5|0
br $case6|0
end
local.get $3
local.get $2
i32.const 4
i32.add
local.set $3
local.get $4
local.set $2
local.get $3
i32.const 2
i32.sub
local.set $4
i32.const 8
local.set $3
i32.const 2
br $break|0
end
local.get $3
local.get $2
i32.const 4
i32.add
local.set $3
local.get $4
local.set $2
local.get $3
i32.const 2
i32.sub
local.set $4
i32.const 16
local.set $3
i32.const 8
br $break|0
end
i32.const 10
local.get $2
i32.const 4
i32.add
local.set $2
local.get $3
i32.const 2
i32.sub
local.set $3
i32.const 16
br $break|0
end
else
i32.const 10
end
local.set $1
else
i32.const 10
end
local.set $4
loop $continue|1
block $break|1
local.get $4
local.get $3
local.tee $0
i32.const 1
i32.sub
local.set $4
local.set $3
local.get $0
if
local.get $3
local.get $2
i32.load16_u offset=4
local.tee $2
local.tee $1
i32.const 48
i32.ge_s
local.tee $0
if
local.get $2
if (result i32)
local.get $1
i32.const 57
i32.le_s
local.set $0
else
local.get $0
end
local.get $0
if (result i32)
local.get $2
local.get $1
i32.const 48
i32.sub
else
local.get $2
local.get $1
i32.const 65
i32.ge_s
local.tee $0
if
local.get $2
if (result i32)
local.get $1
i32.const 90
i32.le_s
local.set $0
else
local.get $0
end
local.get $0
if (result i32)
local.get $2
local.get $1
i32.const 55
i32.sub
else
local.get $2
local.get $1
i32.const 97
i32.ge_s
local.tee $0
if
local.get $2
if (result i32)
local.get $1
i32.const 122
i32.le_s
local.set $0
else
local.get $0
end
local.get $0
i32.eqz
br_if $break|1
local.get $2
local.get $1
i32.const 87
i32.sub
end
end
local.tee $2
local.get $1
local.tee $1
local.get $4
i32.ge_s
br_if $break|1
local.get $5
local.get $1
local.get $4
f64.convert_i32_s
f64.mul
local.get $2
local.get $1
f64.convert_i32_s
f64.add
local.set $5
local.get $3
local.get $2
i32.const 2
i32.add
local.set $3
local.set $2
br $continue|1
end
end
@ -2510,12 +2484,7 @@
local.get $5
f64.mul
)
(func $~lib/string/parseInt (; 22 ;) (type $FUNCSIG$di) (param $0 i32) (result f64)
local.get $0
i32.const 0
call $~lib/internal/string/parse<f64>
)
(func $~lib/string/parseFloat (; 23 ;) (type $iF) (param $0 i32) (result f64)
(func $~lib/string/parseFloat (; 22 ;) (type $iF) (param $0 i32) (result f64)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -2683,7 +2652,7 @@
local.get $4
f64.mul
)
(func $~lib/string/String#concat (; 24 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String#concat (; 23 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -2730,7 +2699,7 @@
call $~lib/internal/string/copyUnsafe
local.get $2
)
(func $~lib/string/String.__concat (; 25 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__concat (; 24 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
i32.const 200
local.get $0
@ -2738,13 +2707,13 @@
local.get $1
call $~lib/string/String#concat
)
(func $~lib/string/String.__ne (; 26 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__ne (; 25 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
local.get $1
call $~lib/string/String.__eq
i32.eqz
)
(func $~lib/string/String.__gt (; 27 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__gt (; 26 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -2799,7 +2768,7 @@
i32.const 0
i32.gt_s
)
(func $~lib/string/String.__lt (; 28 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__lt (; 27 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -2854,19 +2823,19 @@
i32.const 0
i32.lt_s
)
(func $~lib/string/String.__gte (; 29 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__gte (; 28 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
local.get $1
call $~lib/string/String.__lt
i32.eqz
)
(func $~lib/string/String.__lte (; 30 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/string/String.__lte (; 29 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
i32.const 256
local.get $0
call $~lib/string/String.__gt
i32.eqz
)
(func $~lib/string/String#repeat (; 31 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String#repeat (; 30 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -2936,7 +2905,7 @@
call $~lib/internal/string/repeatUnsafe
local.get $2
)
(func $~lib/string/String#slice (; 32 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/string/String#slice (; 31 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -3005,7 +2974,7 @@
call $~lib/internal/string/copyUnsafe
local.get $1
)
(func $~lib/string/String#slice|trampoline (; 33 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String#slice|trampoline (; 32 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
block $1of1
block $0of1
@ -3025,7 +2994,7 @@
local.get $2
call $~lib/string/String#slice
)
(func $~lib/internal/arraybuffer/allocateUnsafe (; 34 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/arraybuffer/allocateUnsafe (; 33 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
local.get $0
i32.const 1073741816
@ -3052,7 +3021,7 @@
i32.store
local.get $1
)
(func $~lib/internal/memory/memset (; 35 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/internal/memory/memset (; 34 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $1
i32.eqz
@ -3271,7 +3240,7 @@
end
end
)
(func $~lib/array/Array<String>#constructor (; 36 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/array/Array<String>#constructor (; 35 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -3313,7 +3282,7 @@
call $~lib/internal/memory/memset
local.get $1
)
(func $~lib/internal/arraybuffer/reallocateUnsafe (; 37 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/internal/arraybuffer/reallocateUnsafe (; 36 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $1
@ -3395,7 +3364,7 @@
end
local.get $0
)
(func $~lib/array/Array<String>#push (; 38 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/array/Array<String>#push (; 37 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -3404,11 +3373,11 @@
local.tee $2
i32.const 1
i32.add
local.set $3
local.set $4
local.get $2
local.get $0
i32.load
local.tee $4
local.tee $3
i32.load
i32.const 2
i32.shr_u
@ -3426,27 +3395,26 @@
unreachable
end
local.get $0
local.get $4
local.get $3
local.get $4
i32.const 2
i32.shl
call $~lib/internal/arraybuffer/reallocateUnsafe
local.tee $4
local.tee $3
i32.store
end
local.get $0
local.get $3
i32.store offset=4
local.get $4
i32.store offset=4
local.get $2
i32.const 2
i32.shl
local.get $3
i32.add
local.get $1
i32.store offset=8
local.get $3
)
(func $~lib/string/String#split (; 39 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/string/String#split (; 38 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@ -3594,12 +3562,10 @@
local.get $6
local.get $3
call $~lib/array/Array<String>#push
drop
else
local.get $6
i32.const 256
call $~lib/array/Array<String>#push
drop
end
local.get $10
i32.const 1
@ -3647,12 +3613,10 @@
local.get $6
local.get $5
call $~lib/array/Array<String>#push
drop
else
local.get $6
i32.const 256
call $~lib/array/Array<String>#push
drop
end
local.get $6
return
@ -3663,7 +3627,7 @@
drop
local.get $3
)
(func $~lib/string/String#split|trampoline (; 40 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String#split|trampoline (; 39 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
block $2of2
block $1of2
@ -3685,7 +3649,7 @@
local.get $2
call $~lib/string/String#split
)
(func $~lib/internal/number/decimalCount32 (; 41 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/number/decimalCount32 (; 40 ;) (type $ii) (param $0 i32) (result i32)
local.get $0
i32.const 100000
i32.lt_u
@ -3739,7 +3703,7 @@
end
end
)
(func $~lib/internal/number/utoa32_lut (; 42 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/internal/number/utoa32_lut (; 41 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
i32.const 1816
@ -3849,7 +3813,7 @@
i32.store16 offset=4
end
)
(func $~lib/internal/number/itoa32 (; 43 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/number/itoa32 (; 42 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -3887,7 +3851,7 @@
end
local.get $2
)
(func $~lib/internal/number/utoa32 (; 44 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/number/utoa32 (; 43 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
local.get $0
@ -3906,7 +3870,7 @@
call $~lib/internal/number/utoa32_lut
local.get $2
)
(func $~lib/internal/number/decimalCount64 (; 45 ;) (type $Ii) (param $0 i64) (result i32)
(func $~lib/internal/number/decimalCount64 (; 44 ;) (type $Ii) (param $0 i64) (result i32)
local.get $0
i64.const 1000000000000000
i64.lt_u
@ -3960,7 +3924,7 @@
end
end
)
(func $~lib/internal/number/utoa64_lut (; 46 ;) (type $iIi_) (param $0 i32) (param $1 i64) (param $2 i32)
(func $~lib/internal/number/utoa64_lut (; 45 ;) (type $iIi_) (param $0 i32) (param $1 i64) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@ -4057,7 +4021,7 @@
local.get $2
call $~lib/internal/number/utoa32_lut
)
(func $~lib/internal/number/utoa64 (; 47 ;) (type $Ii) (param $0 i64) (result i32)
(func $~lib/internal/number/utoa64 (; 46 ;) (type $Ii) (param $0 i64) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -4093,7 +4057,7 @@
end
local.get $2
)
(func $~lib/internal/number/itoa64 (; 48 ;) (type $Ii) (param $0 i64) (result i32)
(func $~lib/internal/number/itoa64 (; 47 ;) (type $Ii) (param $0 i64) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -4152,7 +4116,7 @@
end
local.get $3
)
(func $~lib/internal/number/genDigits (; 49 ;) (type $iIiIiIii) (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i32) (param $5 i64) (param $6 i32) (result i32)
(func $~lib/internal/number/genDigits (; 48 ;) (type $iIiIiIii) (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i32) (param $5 i64) (param $6 i32) (result i32)
(local $7 i32)
(local $8 i64)
(local $9 i32)
@ -4566,7 +4530,7 @@
local.get $10
end
)
(func $~lib/internal/number/prettify (; 50 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/internal/number/prettify (; 49 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@ -4840,7 +4804,7 @@
end
end
)
(func $~lib/internal/number/dtoa_core (; 51 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
(func $~lib/internal/number/dtoa_core (; 50 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
(local $2 i64)
(local $3 i64)
(local $4 i32)
@ -5155,7 +5119,7 @@
local.get $13
i32.add
)
(func $~lib/string/String#substring (; 52 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String#substring (; 51 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -5237,7 +5201,7 @@
call $~lib/internal/string/copyUnsafe
local.get $2
)
(func $~lib/internal/number/dtoa (; 53 ;) (type $Fi) (param $0 f64) (result i32)
(func $~lib/internal/number/dtoa (; 52 ;) (type $Fi) (param $0 f64) (result i32)
(local $1 i32)
(local $2 i32)
local.get $0
@ -5290,7 +5254,7 @@
end
local.get $1
)
(func $start:std/string (; 54 ;) (type $_)
(func $start:std/string (; 53 ;) (type $_)
(local $0 i32)
(local $1 i32)
i32.const 5360
@ -5437,7 +5401,6 @@
local.set $0
end
local.get $1
i32.const 216
local.get $0
call $~lib/string/String#endsWith
i32.eqz
@ -6002,7 +5965,7 @@
unreachable
end
i32.const 480
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 0
f64.ne
if
@ -6014,7 +5977,7 @@
unreachable
end
i32.const 488
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 1
f64.ne
if
@ -6026,7 +5989,7 @@
unreachable
end
i32.const 496
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 5
f64.ne
if
@ -6038,7 +6001,7 @@
unreachable
end
i32.const 512
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 455
f64.ne
if
@ -6050,7 +6013,7 @@
unreachable
end
i32.const 528
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 3855
f64.ne
if
@ -6062,7 +6025,7 @@
unreachable
end
i32.const 544
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 3855
f64.ne
if
@ -6074,7 +6037,7 @@
unreachable
end
i32.const 560
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 11
f64.ne
if
@ -6086,7 +6049,7 @@
unreachable
end
i32.const 576
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 1
f64.ne
if
@ -9067,13 +9030,13 @@
unreachable
end
)
(func $std/string/getString (; 55 ;) (type $i) (result i32)
(func $std/string/getString (; 54 ;) (type $i) (result i32)
global.get $std/string/str
)
(func $start (; 56 ;) (type $_)
(func $start (; 55 ;) (type $_)
call $start:std/string
)
(func $null (; 57 ;) (type $_)
(func $null (; 56 ;) (type $_)
nop
)
)

View File

@ -550,44 +550,44 @@
call $~lib/internal/string/compareUnsafe
i32.eqz
)
(func $~lib/map/Map<String,usize>#find (; 10 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/map/Map<String,usize>#find (; 10 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
i32.load
local.get $0
i32.load offset=4
local.get $2
local.get $1
i32.and
i32.const 2
i32.shl
i32.add
i32.load offset=8
local.set $2
local.set $1
loop $continue|0
local.get $2
local.get $1
if
local.get $2
local.get $1
i32.load offset=8
i32.const 1
i32.and
i32.eqz
local.tee $0
if
local.get $2
i32.load
if (result i32)
local.get $1
i32.load
i32.const 8
call $~lib/string/String.__eq
local.set $0
else
local.get $0
end
local.get $0
if
local.get $2
local.get $1
return
end
local.get $2
local.get $1
i32.load offset=8
i32.const -2
i32.and
local.set $2
local.set $1
br $continue|0
end
end
@ -700,20 +700,19 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/map/Map<String,usize>#set (; 12 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/map/Map<String,usize>#set (; 12 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.get $1
local.get $1
i32.const 8
call $~lib/internal/hash/hashStr
local.tee $5
local.tee $4
call $~lib/map/Map<String,usize>#find
local.tee $3
local.tee $2
if
local.get $3
local.get $2
local.get $1
i32.store offset=4
else
local.get $0
@ -747,26 +746,26 @@
end
local.get $0
i32.load offset=8
local.set $3
local.set $2
local.get $0
local.get $0
i32.load offset=16
local.tee $4
local.tee $3
i32.const 1
i32.add
i32.store offset=16
local.get $3
local.get $2
i32.const 8
i32.add
local.get $4
local.get $3
i32.const 12
i32.mul
i32.add
local.tee $3
local.get $1
local.tee $2
i32.const 8
i32.store
local.get $3
local.get $2
local.get $1
i32.store offset=4
local.get $0
local.get $0
@ -774,21 +773,21 @@
i32.const 1
i32.add
i32.store offset=20
local.get $3
local.get $2
local.get $0
i32.load
local.get $0
i32.load offset=4
local.get $5
local.get $4
i32.and
i32.const 2
i32.shl
i32.add
local.tee $4
local.tee $3
i32.load offset=8
i32.store offset=8
local.get $4
local.get $3
local.get $2
i32.store offset=8
end
)
@ -973,20 +972,20 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/map/Map<usize,String>#set (; 16 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/map/Map<usize,String>#set (; 16 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.get $1
local.get $1
call $~lib/internal/hash/hash32
local.tee $5
local.tee $4
call $~lib/map/Map<usize,String>#find
local.tee $3
local.tee $2
if
local.get $3
local.get $2
i32.const 8
i32.store offset=4
else
local.get $0
@ -1020,26 +1019,26 @@
end
local.get $0
i32.load offset=8
local.set $3
local.set $2
local.get $0
local.get $0
i32.load offset=16
local.tee $4
local.tee $3
i32.const 1
i32.add
i32.store offset=16
local.get $3
local.get $2
i32.const 8
i32.add
local.get $4
local.get $3
i32.const 12
i32.mul
i32.add
local.tee $3
local.tee $2
local.get $1
i32.store
local.get $3
local.get $2
i32.const 8
i32.store offset=4
local.get $0
local.get $0
@ -1047,21 +1046,21 @@
i32.const 1
i32.add
i32.store offset=20
local.get $3
local.get $2
local.get $0
i32.load
local.get $0
i32.load offset=4
local.get $5
local.get $4
i32.and
i32.const 2
i32.shl
i32.add
local.tee $4
local.tee $3
i32.load offset=8
i32.store offset=8
local.get $4
local.get $3
local.get $2
i32.store offset=8
end
)
@ -1071,13 +1070,11 @@
if
global.get $~lib/symbol/stringToId
i32.const 8
i32.const 8
call $~lib/internal/hash/hashStr
call $~lib/map/Map<String,usize>#find
if
global.get $~lib/symbol/stringToId
i32.const 8
i32.const 8
call $~lib/internal/hash/hashStr
call $~lib/map/Map<String,usize>#find
local.tee $0
@ -1106,12 +1103,10 @@
unreachable
end
global.get $~lib/symbol/stringToId
i32.const 8
local.get $0
call $~lib/map/Map<String,usize>#set
global.get $~lib/symbol/idToString
local.get $0
i32.const 8
call $~lib/map/Map<usize,String>#set
local.get $0
)

View File

@ -25,7 +25,9 @@
(type $Fiii (func (param f64 i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$jii (func (param i32 i32) (result i64)))
(type $FUNCSIG$fi (func (param i32) (result f32)))
(type $FUNCSIG$di (func (param i32) (result f64)))
@ -1648,52 +1650,51 @@
local.get $6
f64.store offset=8
)
(func $~lib/typedarray/Float64Array#sort (; 21 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/typedarray/Float64Array#sort (; 21 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $5 f64)
(local $6 f64)
(local $7 f64)
local.get $1
local.set $4
local.set $3
local.get $0
i32.load offset=4
local.set $3
local.set $2
block $~lib/internal/typedarray/SORT<Float64Array,f64>|inlined.0
local.get $0
i32.load offset=8
i32.const 3
i32.shr_u
local.tee $5
local.tee $4
i32.const 1
i32.le_s
br_if $~lib/internal/typedarray/SORT<Float64Array,f64>|inlined.0
local.get $0
i32.load
local.set $1
local.get $5
local.get $4
i32.const 2
i32.eq
if
local.get $1
i32.const 8
i32.add
local.get $3
local.get $2
i32.add
f64.load offset=8
local.set $5
local.get $2
local.tee $0
local.get $1
i32.add
f64.load offset=8
local.set $6
local.get $1
local.get $3
local.tee $2
i32.add
f64.load offset=8
local.set $7
i32.const 2
global.set $~lib/argc
local.get $5
local.get $6
local.get $7
local.get $4
local.get $3
call_indirect (type $FFi)
i32.const 0
i32.lt_s
@ -1701,39 +1702,38 @@
local.get $1
i32.const 8
i32.add
local.get $2
i32.add
local.get $7
f64.store offset=8
local.get $1
local.get $2
local.get $0
i32.add
local.get $6
f64.store offset=8
local.get $0
local.get $1
i32.add
local.get $5
f64.store offset=8
end
br $~lib/internal/typedarray/SORT<Float64Array,f64>|inlined.0
end
local.get $1
local.set $2
local.get $5
local.set $0
local.get $4
local.tee $1
i32.const 256
i32.lt_s
if
local.get $0
local.get $2
local.get $3
local.get $1
local.get $4
local.get $3
call $~lib/internal/sort/insertionSort<f64>
else
local.get $0
local.get $2
local.get $3
local.get $1
local.get $4
local.get $3
call $~lib/internal/sort/weakHeapSort<f64>
end
end
local.get $0
)
(func $~lib/internal/sort/COMPARATOR<f64>~anonymous|0 (; 22 ;) (type $FFi) (param $0 f64) (param $1 f64) (result i32)
(local $2 i64)
@ -1853,18 +1853,16 @@
i32.add
i32.load8_u offset=8
)
(func $~lib/typedarray/Int8Array#fill (; 27 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(func $~lib/typedarray/Int8Array#fill (; 27 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
local.get $0
local.tee $5
i32.load
local.set $6
local.set $5
local.get $0
i32.load offset=4
local.set $7
local.set $6
local.get $0
i32.load offset=8
local.set $4
@ -1917,9 +1915,9 @@
i32.lt_s
if
local.get $2
local.get $6
local.get $5
i32.add
local.get $7
local.get $6
i32.add
i32.const 8
i32.add
@ -1929,7 +1927,6 @@
i32.sub
call $~lib/internal/memory/memset
end
local.get $5
)
(func $~lib/internal/typedarray/TypedArray<i8>#__get (; 28 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
local.get $1
@ -2011,7 +2008,7 @@
end
i32.const 1
)
(func $~lib/typedarray/Int8Array#fill|trampoline (; 30 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/typedarray/Int8Array#fill|trampoline (; 30 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
block $2of2
block $1of2
@ -2095,20 +2092,18 @@
i32.store offset=8
local.get $2
)
(func $~lib/typedarray/Int32Array#fill (; 32 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(func $~lib/typedarray/Int32Array#fill (; 32 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
local.get $1
local.set $5
local.get $0
local.tee $6
i32.load
local.set $1
local.get $0
i32.load offset=4
local.set $7
local.set $6
local.get $0
i32.load offset=8
i32.const 2
@ -2163,15 +2158,14 @@
loop $repeat|0
local.get $2
local.get $3
i32.ge_s
i32.eqz
i32.lt_s
if
local.get $2
i32.const 2
i32.shl
local.get $1
i32.add
local.get $7
local.get $6
i32.add
local.get $5
i32.store offset=8
@ -2182,7 +2176,6 @@
br $repeat|0
end
end
local.get $6
)
(func $std/typedarray/isInt32ArrayEqual (; 33 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
@ -2246,7 +2239,7 @@
end
i32.const 1
)
(func $~lib/typedarray/Int32Array#fill|trampoline (; 34 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/typedarray/Int32Array#fill|trampoline (; 34 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
block $2of2
block $1of2
@ -8370,7 +8363,6 @@
local.get $1
local.get $0
call $~lib/typedarray/Float64Array#sort
drop
block (result i32)
block (result i32)
global.get $std/typedarray/af64
@ -8504,7 +8496,6 @@
i32.const 1
i32.const 3
call $~lib/typedarray/Int8Array#fill
drop
global.get $std/typedarray/arr8
i32.const 192
call $std/typedarray/isInt8ArrayEqual
@ -8523,7 +8514,6 @@
i32.const 0
i32.const 0
call $~lib/typedarray/Int8Array#fill|trampoline
drop
global.get $std/typedarray/arr8
i32.const 216
call $std/typedarray/isInt8ArrayEqual
@ -8541,7 +8531,6 @@
i32.const 0
i32.const -3
call $~lib/typedarray/Int8Array#fill
drop
global.get $std/typedarray/arr8
i32.const 240
call $std/typedarray/isInt8ArrayEqual
@ -8560,7 +8549,6 @@
i32.const 2
i32.const -2
call $~lib/typedarray/Int8Array#fill|trampoline
drop
global.get $std/typedarray/arr8
i32.const 264
call $std/typedarray/isInt8ArrayEqual
@ -8578,7 +8566,6 @@
i32.const 1
i32.const 0
call $~lib/typedarray/Int8Array#fill
drop
global.get $std/typedarray/arr8
i32.const 288
call $std/typedarray/isInt8ArrayEqual
@ -8601,7 +8588,6 @@
i32.const 0
i32.const 0
call $~lib/typedarray/Int8Array#fill|trampoline
drop
global.get $std/typedarray/sub8
i32.load offset=8
i32.const 3
@ -8690,7 +8676,6 @@
i32.const 1
i32.const 3
call $~lib/typedarray/Int32Array#fill
drop
global.get $std/typedarray/arr32
i32.const 376
call $std/typedarray/isInt32ArrayEqual
@ -8709,7 +8694,6 @@
i32.const 0
i32.const 0
call $~lib/typedarray/Int32Array#fill|trampoline
drop
global.get $std/typedarray/arr32
i32.const 416
call $std/typedarray/isInt32ArrayEqual
@ -8727,7 +8711,6 @@
i32.const 0
i32.const -3
call $~lib/typedarray/Int32Array#fill
drop
global.get $std/typedarray/arr32
i32.const 456
call $std/typedarray/isInt32ArrayEqual
@ -8746,7 +8729,6 @@
i32.const 2
i32.const -2
call $~lib/typedarray/Int32Array#fill|trampoline
drop
global.get $std/typedarray/arr32
i32.const 496
call $std/typedarray/isInt32ArrayEqual
@ -8764,7 +8746,6 @@
i32.const 1
i32.const 0
call $~lib/typedarray/Int32Array#fill
drop
global.get $std/typedarray/arr32
i32.const 536
call $std/typedarray/isInt32ArrayEqual
@ -8787,7 +8768,6 @@
i32.const 0
i32.const 0
call $~lib/typedarray/Int32Array#fill|trampoline
drop
global.get $std/typedarray/sub32
i32.load offset=8
i32.const 2