mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 15:32:16 +00:00
5971 lines
101 KiB
Plaintext
5971 lines
101 KiB
Plaintext
(module
|
|
(type $FUNCSIG$v (func))
|
|
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
|
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
|
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
|
(type $FUNCSIG$vi (func (param i32)))
|
|
(type $FUNCSIG$vii (func (param i32 i32)))
|
|
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
|
(type $FUNCSIG$iij (func (param i32 i64) (result i32)))
|
|
(type $FUNCSIG$ij (func (param i64) (result i32)))
|
|
(type $FUNCSIG$iiji (func (param i32 i64 i32) (result i32)))
|
|
(type $FUNCSIG$vij (func (param i32 i64)))
|
|
(type $FUNCSIG$iif (func (param i32 f32) (result i32)))
|
|
(type $FUNCSIG$iifi (func (param i32 f32 i32) (result i32)))
|
|
(type $FUNCSIG$vif (func (param i32 f32)))
|
|
(type $FUNCSIG$iid (func (param i32 f64) (result i32)))
|
|
(type $FUNCSIG$iidi (func (param i32 f64 i32) (result i32)))
|
|
(type $FUNCSIG$vid (func (param i32 f64)))
|
|
(type $FUNCSIG$i (func (result i32)))
|
|
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
|
|
(memory $0 1)
|
|
(data (i32.const 8) "\10\00\00\00(")
|
|
(data (i32.const 24) "~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s")
|
|
(data (i32.const 64) "\10\00\00\00&")
|
|
(data (i32.const 80) "~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
|
(data (i32.const 120) "\10\00\00\00\14")
|
|
(data (i32.const 136) "s\00t\00d\00/\00s\00e\00t\00.\00t\00s")
|
|
(data (i32.const 160) "\1c\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\1a\00\00\00\00\00\00\00\1a\00\00\00\00\00\00\00*\00\00\00\00\00\00\00*\00\00\00\00\00\00\00J\00\00\00\00\00\00\00J\00\00\00\00\00\00\00\8a\00\00\00\00\00\00\00\8a\00\00\00\00\00\00\00J\00\00\00\00\00\00\00\8a\00\00\00\00\00\00\00I\00\00\00\0e\00\00\00\08")
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
|
(global $~lib/runtime/ROOT (mut i32) (i32.const 0))
|
|
(global $~lib/capabilities i32 (i32.const 2))
|
|
(export "memory" (memory $0))
|
|
(export "$.instanceof" (func $~lib/runtime/runtime.instanceof))
|
|
(export "$.flags" (func $~lib/runtime/runtime.flags))
|
|
(export "$.newObject" (func $~lib/runtime/runtime.newObject))
|
|
(export "$.newString" (func $~lib/runtime/runtime.newString))
|
|
(export "$.newArrayBuffer" (func $~lib/runtime/runtime.newArrayBuffer))
|
|
(export "$.newArray" (func $~lib/runtime/runtime.newArray))
|
|
(export "$.retain" (func $~lib/runtime/runtime.retain))
|
|
(export "$.release" (func $~lib/runtime/runtime.retain))
|
|
(export "$.collect" (func $~lib/runtime/runtime.collect))
|
|
(export "$.capabilities" (global $~lib/capabilities))
|
|
(start $start)
|
|
(func $~lib/allocator/arena/__mem_allocate (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result 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
|
|
i32.add
|
|
i32.const -8
|
|
i32.and
|
|
local.tee $0
|
|
current_memory
|
|
local.tee $2
|
|
i32.const 16
|
|
i32.shl
|
|
i32.gt_u
|
|
if
|
|
local.get $2
|
|
local.get $0
|
|
local.get $1
|
|
i32.sub
|
|
i32.const 65535
|
|
i32.add
|
|
i32.const -65536
|
|
i32.and
|
|
i32.const 16
|
|
i32.shr_u
|
|
local.tee $3
|
|
local.get $2
|
|
local.get $3
|
|
i32.gt_s
|
|
select
|
|
grow_memory
|
|
i32.const 0
|
|
i32.lt_s
|
|
if
|
|
local.get $3
|
|
grow_memory
|
|
i32.const 0
|
|
i32.lt_s
|
|
if
|
|
unreachable
|
|
end
|
|
end
|
|
end
|
|
local.get $0
|
|
global.set $~lib/allocator/arena/offset
|
|
local.get $1
|
|
)
|
|
(func $~lib/util/runtime/allocate (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
i32.const 1
|
|
i32.const 32
|
|
local.get $0
|
|
i32.const 15
|
|
i32.add
|
|
i32.clz
|
|
i32.sub
|
|
i32.shl
|
|
call $~lib/allocator/arena/__mem_allocate
|
|
local.tee $1
|
|
i32.const -1520547049
|
|
i32.store
|
|
local.get $1
|
|
local.get $0
|
|
i32.store offset=4
|
|
local.get $1
|
|
i32.const 0
|
|
i32.store offset=8
|
|
local.get $1
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
)
|
|
(func $~lib/util/runtime/register (; 3 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
local.get $0
|
|
i32.const 392
|
|
i32.le_u
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 131
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
i32.const 16
|
|
i32.sub
|
|
local.tee $2
|
|
i32.load
|
|
i32.const -1520547049
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 133
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $2
|
|
local.get $1
|
|
i32.store
|
|
local.get $0
|
|
)
|
|
(func $~lib/memory/memory.fill (; 4 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
block $~lib/util/memory/memset|inlined.0
|
|
local.get $1
|
|
i32.eqz
|
|
br_if $~lib/util/memory/memset|inlined.0
|
|
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
|
|
br_if $~lib/util/memory/memset|inlined.0
|
|
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
|
|
br_if $~lib/util/memory/memset|inlined.0
|
|
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
|
|
br_if $~lib/util/memory/memset|inlined.0
|
|
local.get $1
|
|
i32.const 0
|
|
local.get $0
|
|
i32.sub
|
|
i32.const 3
|
|
i32.and
|
|
local.tee $1
|
|
i32.sub
|
|
local.set $2
|
|
local.get $0
|
|
local.get $1
|
|
i32.add
|
|
local.tee $0
|
|
i32.const 0
|
|
i32.store
|
|
local.get $2
|
|
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
|
|
br_if $~lib/util/memory/memset|inlined.0
|
|
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
|
|
br_if $~lib/util/memory/memset|inlined.0
|
|
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
|
|
end
|
|
)
|
|
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
local.get $0
|
|
i32.const 1073741808
|
|
i32.gt_u
|
|
if
|
|
i32.const 0
|
|
i32.const 80
|
|
i32.const 54
|
|
i32.const 43
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
call $~lib/util/runtime/allocate
|
|
local.tee $1
|
|
local.get $0
|
|
call $~lib/memory/memory.fill
|
|
local.get $1
|
|
i32.const 15
|
|
call $~lib/util/runtime/register
|
|
)
|
|
(func $~lib/set/Set<i8>#clear (; 6 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
(local $1 i32)
|
|
i32.const 16
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.tee $1
|
|
local.get $0
|
|
i32.load
|
|
i32.ne
|
|
drop
|
|
local.get $0
|
|
local.get $1
|
|
i32.store
|
|
local.get $0
|
|
i32.const 3
|
|
i32.store offset=4
|
|
i32.const 32
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.tee $1
|
|
local.get $0
|
|
i32.load offset=8
|
|
i32.ne
|
|
drop
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=8
|
|
local.get $0
|
|
i32.const 4
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
)
|
|
(func $~lib/set/Set<i8>#constructor (; 7 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 17
|
|
call $~lib/util/runtime/register
|
|
local.tee $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
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/set/Set<i8>#find (; 8 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $2
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
i32.load
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $2
|
|
if
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
local.tee $0
|
|
if
|
|
local.get $2
|
|
i32.load8_u
|
|
local.get $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.eq
|
|
local.set $0
|
|
end
|
|
local.get $0
|
|
if
|
|
local.get $2
|
|
return
|
|
end
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const -2
|
|
i32.and
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/set/Set<i8>#has (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.const 24
|
|
i32.shl
|
|
i32.const 24
|
|
i32.shr_s
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
call $~lib/set/Set<i8>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/set/Set<i8>#rehash (; 10 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $4
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $6
|
|
i32.const 3
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $2
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 3
|
|
i32.shl
|
|
i32.add
|
|
local.set $7
|
|
local.get $4
|
|
local.set $3
|
|
loop $continue|0
|
|
local.get $2
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.load8_s
|
|
i32.store8
|
|
local.get $3
|
|
local.get $2
|
|
i32.load8_s
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $5
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $8
|
|
local.get $3
|
|
i32.store
|
|
local.get $3
|
|
i32.const 8
|
|
i32.add
|
|
local.set $3
|
|
end
|
|
local.get $2
|
|
i32.const 8
|
|
i32.add
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
i32.load
|
|
drop
|
|
local.get $0
|
|
local.get $5
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.load offset=8
|
|
drop
|
|
local.get $0
|
|
local.get $4
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $6
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.store offset=16
|
|
)
|
|
(func $~lib/set/Set<i8>#add (; 11 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $1
|
|
i32.const 24
|
|
i32.shl
|
|
i32.const 24
|
|
i32.shr_s
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.tee $2
|
|
local.set $3
|
|
local.get $0
|
|
local.get $1
|
|
local.get $2
|
|
call $~lib/set/Set<i8>#find
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.eq
|
|
if
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 1
|
|
i32.or
|
|
end
|
|
call $~lib/set/Set<i8>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.set $2
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $4
|
|
i32.const 3
|
|
i32.shl
|
|
local.get $2
|
|
i32.add
|
|
local.tee $2
|
|
local.get $1
|
|
i32.store8
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $2
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $3
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $2
|
|
i32.store
|
|
end
|
|
)
|
|
(func $~lib/set/Set<i8>#delete (; 12 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.const 24
|
|
i32.shl
|
|
i32.const 24
|
|
i32.shr_s
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
call $~lib/set/Set<i8>#find
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $1
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.or
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=20
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shr_u
|
|
local.tee $2
|
|
i32.const 1
|
|
i32.add
|
|
i32.const 4
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.tee $1
|
|
i32.const 4
|
|
local.get $1
|
|
i32.gt_u
|
|
select
|
|
i32.ge_u
|
|
local.tee $1
|
|
if
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
local.set $1
|
|
end
|
|
local.get $1
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/set/Set<i8>#rehash
|
|
end
|
|
)
|
|
(func $std/set/testNumeric<i8> (; 13 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/set/Set<i8>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 10
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 12
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 50
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 20
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|2
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 24
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|2
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 28
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|3
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 32
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|3
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 38
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 42
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/set/Set<u8>#constructor (; 14 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 18
|
|
call $~lib/util/runtime/register
|
|
local.tee $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
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/set/Set<u8>#has (; 15 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
call $~lib/set/Set<i8>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/set/Set<u8>#rehash (; 16 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $4
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $6
|
|
i32.const 3
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $2
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 3
|
|
i32.shl
|
|
i32.add
|
|
local.set $7
|
|
local.get $4
|
|
local.set $3
|
|
loop $continue|0
|
|
local.get $2
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $3
|
|
local.get $2
|
|
i32.load8_u
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $5
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $8
|
|
local.get $3
|
|
i32.store
|
|
local.get $3
|
|
i32.const 8
|
|
i32.add
|
|
local.set $3
|
|
end
|
|
local.get $2
|
|
i32.const 8
|
|
i32.add
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
i32.load
|
|
drop
|
|
local.get $0
|
|
local.get $5
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.load offset=8
|
|
drop
|
|
local.get $0
|
|
local.get $4
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $6
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.store offset=16
|
|
)
|
|
(func $~lib/set/Set<u8>#add (; 17 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.tee $2
|
|
local.set $3
|
|
local.get $0
|
|
local.get $1
|
|
local.get $2
|
|
call $~lib/set/Set<i8>#find
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.eq
|
|
if
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 1
|
|
i32.or
|
|
end
|
|
call $~lib/set/Set<u8>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.set $2
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $4
|
|
i32.const 3
|
|
i32.shl
|
|
local.get $2
|
|
i32.add
|
|
local.tee $2
|
|
local.get $1
|
|
i32.store8
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $2
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $3
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $2
|
|
i32.store
|
|
end
|
|
)
|
|
(func $~lib/set/Set<u8>#delete (; 18 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
call $~lib/set/Set<i8>#find
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $1
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.or
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=20
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shr_u
|
|
local.tee $2
|
|
i32.const 1
|
|
i32.add
|
|
i32.const 4
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.tee $1
|
|
i32.const 4
|
|
local.get $1
|
|
i32.gt_u
|
|
select
|
|
i32.ge_u
|
|
local.tee $1
|
|
if
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
local.set $1
|
|
end
|
|
local.get $1
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/set/Set<u8>#rehash
|
|
end
|
|
)
|
|
(func $std/set/testNumeric<u8> (; 19 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/set/Set<u8>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 10
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 12
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 50
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 20
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|2
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 24
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|2
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 28
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|3
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 32
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u8>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|3
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 38
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 42
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/set/Set<i16>#constructor (; 20 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 19
|
|
call $~lib/util/runtime/register
|
|
local.tee $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
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/set/Set<i16>#find (; 21 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $2
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
i32.load
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $2
|
|
if
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
local.tee $0
|
|
if
|
|
local.get $2
|
|
i32.load16_u
|
|
local.get $1
|
|
i32.const 65535
|
|
i32.and
|
|
i32.eq
|
|
local.set $0
|
|
end
|
|
local.get $0
|
|
if
|
|
local.get $2
|
|
return
|
|
end
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const -2
|
|
i32.and
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/set/Set<i16>#has (; 22 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
local.tee $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $0
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
call $~lib/set/Set<i16>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/set/Set<i16>#rehash (; 23 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $6
|
|
local.get $4
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $7
|
|
i32.const 3
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $2
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 3
|
|
i32.shl
|
|
i32.add
|
|
local.set $8
|
|
local.get $4
|
|
local.set $3
|
|
loop $continue|0
|
|
local.get $2
|
|
local.get $8
|
|
i32.ne
|
|
if
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.load16_s
|
|
i32.store16
|
|
local.get $3
|
|
local.get $2
|
|
i32.load16_s
|
|
local.tee $5
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $5
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $6
|
|
i32.add
|
|
local.tee $5
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $5
|
|
local.get $3
|
|
i32.store
|
|
local.get $3
|
|
i32.const 8
|
|
i32.add
|
|
local.set $3
|
|
end
|
|
local.get $2
|
|
i32.const 8
|
|
i32.add
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
i32.load
|
|
drop
|
|
local.get $0
|
|
local.get $6
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.load offset=8
|
|
drop
|
|
local.get $0
|
|
local.get $4
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $7
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.store offset=16
|
|
)
|
|
(func $~lib/set/Set<i16>#add (; 24 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $1
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
local.tee $2
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $2
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.tee $2
|
|
local.set $3
|
|
local.get $0
|
|
local.get $1
|
|
local.get $2
|
|
call $~lib/set/Set<i16>#find
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.eq
|
|
if
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 1
|
|
i32.or
|
|
end
|
|
call $~lib/set/Set<i16>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.set $2
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $4
|
|
i32.const 3
|
|
i32.shl
|
|
local.get $2
|
|
i32.add
|
|
local.tee $2
|
|
local.get $1
|
|
i32.store16
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $2
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $3
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $2
|
|
i32.store
|
|
end
|
|
)
|
|
(func $~lib/set/Set<i16>#delete (; 25 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
local.tee $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
call $~lib/set/Set<i16>#find
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $1
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.or
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=20
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shr_u
|
|
local.tee $2
|
|
i32.const 1
|
|
i32.add
|
|
i32.const 4
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.tee $1
|
|
i32.const 4
|
|
local.get $1
|
|
i32.gt_u
|
|
select
|
|
i32.ge_u
|
|
local.tee $1
|
|
if
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
local.set $1
|
|
end
|
|
local.get $1
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/set/Set<i16>#rehash
|
|
end
|
|
)
|
|
(func $std/set/testNumeric<i16> (; 26 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/set/Set<i16>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 10
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 12
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 50
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 20
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|2
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 24
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|2
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 28
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|3
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 32
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i16>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|3
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 38
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 42
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/set/Set<u16>#constructor (; 27 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 20
|
|
call $~lib/util/runtime/register
|
|
local.tee $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
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/set/Set<u16>#has (; 28 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.const 65535
|
|
i32.and
|
|
local.tee $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $0
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
call $~lib/set/Set<i16>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/set/Set<u16>#rehash (; 29 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $6
|
|
local.get $4
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $7
|
|
i32.const 3
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $2
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 3
|
|
i32.shl
|
|
i32.add
|
|
local.set $8
|
|
local.get $4
|
|
local.set $3
|
|
loop $continue|0
|
|
local.get $2
|
|
local.get $8
|
|
i32.ne
|
|
if
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.load16_u
|
|
i32.store16
|
|
local.get $3
|
|
local.get $2
|
|
i32.load16_u
|
|
local.tee $5
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $5
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $6
|
|
i32.add
|
|
local.tee $5
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $5
|
|
local.get $3
|
|
i32.store
|
|
local.get $3
|
|
i32.const 8
|
|
i32.add
|
|
local.set $3
|
|
end
|
|
local.get $2
|
|
i32.const 8
|
|
i32.add
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
i32.load
|
|
drop
|
|
local.get $0
|
|
local.get $6
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.load offset=8
|
|
drop
|
|
local.get $0
|
|
local.get $4
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $7
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.store offset=16
|
|
)
|
|
(func $~lib/set/Set<u16>#add (; 30 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $1
|
|
i32.const 65535
|
|
i32.and
|
|
local.tee $2
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $2
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.tee $2
|
|
local.set $3
|
|
local.get $0
|
|
local.get $1
|
|
local.get $2
|
|
call $~lib/set/Set<i16>#find
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.eq
|
|
if
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 1
|
|
i32.or
|
|
end
|
|
call $~lib/set/Set<u16>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.set $2
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $4
|
|
i32.const 3
|
|
i32.shl
|
|
local.get $2
|
|
i32.add
|
|
local.tee $2
|
|
local.get $1
|
|
i32.store16
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $2
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $3
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $2
|
|
i32.store
|
|
end
|
|
)
|
|
(func $~lib/set/Set<u16>#delete (; 31 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.const 65535
|
|
i32.and
|
|
local.tee $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
call $~lib/set/Set<i16>#find
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $1
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.or
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=20
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shr_u
|
|
local.tee $2
|
|
i32.const 1
|
|
i32.add
|
|
i32.const 4
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.tee $1
|
|
i32.const 4
|
|
local.get $1
|
|
i32.gt_u
|
|
select
|
|
i32.ge_u
|
|
local.tee $1
|
|
if
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
local.set $1
|
|
end
|
|
local.get $1
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/set/Set<u16>#rehash
|
|
end
|
|
)
|
|
(func $std/set/testNumeric<u16> (; 32 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/set/Set<u16>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 10
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 12
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 50
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 20
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|2
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 24
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|2
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 28
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|3
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 32
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<u16>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|3
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 38
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 42
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/set/Set<i32>#constructor (; 33 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 21
|
|
call $~lib/util/runtime/register
|
|
local.tee $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
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/util/hash/hash32 (; 34 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
local.get $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $0
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.const 255
|
|
i32.and
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $0
|
|
i32.const 16
|
|
i32.shr_u
|
|
i32.const 255
|
|
i32.and
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $0
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
)
|
|
(func $~lib/set/Set<i32>#find (; 35 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $2
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
i32.load
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $2
|
|
if
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
local.tee $0
|
|
if
|
|
local.get $2
|
|
i32.load
|
|
local.get $1
|
|
i32.eq
|
|
local.set $0
|
|
end
|
|
local.get $0
|
|
if
|
|
local.get $2
|
|
return
|
|
end
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const -2
|
|
i32.and
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/set/Set<i32>#has (; 36 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
call $~lib/util/hash/hash32
|
|
call $~lib/set/Set<i32>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/set/Set<i32>#rehash (; 37 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $4
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $6
|
|
i32.const 3
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $2
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 3
|
|
i32.shl
|
|
i32.add
|
|
local.set $7
|
|
local.get $4
|
|
local.set $3
|
|
loop $continue|0
|
|
local.get $2
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.load
|
|
i32.store
|
|
local.get $3
|
|
local.get $2
|
|
i32.load
|
|
call $~lib/util/hash/hash32
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $5
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $8
|
|
local.get $3
|
|
i32.store
|
|
local.get $3
|
|
i32.const 8
|
|
i32.add
|
|
local.set $3
|
|
end
|
|
local.get $2
|
|
i32.const 8
|
|
i32.add
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
i32.load
|
|
drop
|
|
local.get $0
|
|
local.get $5
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.load offset=8
|
|
drop
|
|
local.get $0
|
|
local.get $4
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $6
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.store offset=16
|
|
)
|
|
(func $~lib/set/Set<i32>#add (; 38 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
call $~lib/util/hash/hash32
|
|
local.tee $3
|
|
call $~lib/set/Set<i32>#find
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.eq
|
|
if
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 1
|
|
i32.or
|
|
end
|
|
call $~lib/set/Set<i32>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.set $2
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $4
|
|
i32.const 3
|
|
i32.shl
|
|
local.get $2
|
|
i32.add
|
|
local.tee $2
|
|
local.get $1
|
|
i32.store
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $2
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $3
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $2
|
|
i32.store
|
|
end
|
|
)
|
|
(func $~lib/set/Set<i32>#delete (; 39 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
call $~lib/util/hash/hash32
|
|
call $~lib/set/Set<i32>#find
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $1
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.or
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=20
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shr_u
|
|
local.tee $2
|
|
i32.const 1
|
|
i32.add
|
|
i32.const 4
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.tee $1
|
|
i32.const 4
|
|
local.get $1
|
|
i32.gt_u
|
|
select
|
|
i32.ge_u
|
|
local.tee $1
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
else
|
|
local.get $1
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/set/Set<i32>#rehash
|
|
end
|
|
)
|
|
(func $std/set/testNumeric<i32> (; 40 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/set/Set<i32>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 10
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 12
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 50
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 20
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|2
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 24
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|2
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 28
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|3
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 32
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|3
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 38
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 42
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/set/Set<u32>#constructor (; 41 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 22
|
|
call $~lib/util/runtime/register
|
|
local.tee $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
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $0
|
|
)
|
|
(func $std/set/testNumeric<u32> (; 42 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/set/Set<u32>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 10
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 12
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 50
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 20
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|2
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 24
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|2
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 28
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|3
|
|
local.get $0
|
|
i32.const 50
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 32
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|3
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 38
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 42
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/set/Set<i64>#clear (; 43 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
(local $1 i32)
|
|
i32.const 16
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.tee $1
|
|
local.get $0
|
|
i32.load
|
|
i32.ne
|
|
drop
|
|
local.get $0
|
|
local.get $1
|
|
i32.store
|
|
local.get $0
|
|
i32.const 3
|
|
i32.store offset=4
|
|
i32.const 64
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.tee $1
|
|
local.get $0
|
|
i32.load offset=8
|
|
i32.ne
|
|
drop
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=8
|
|
local.get $0
|
|
i32.const 4
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
)
|
|
(func $~lib/set/Set<i64>#constructor (; 44 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 23
|
|
call $~lib/util/runtime/register
|
|
local.tee $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
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/util/hash/hash64 (; 45 ;) (type $FUNCSIG$ij) (param $0 i64) (result i32)
|
|
(local $1 i32)
|
|
local.get $0
|
|
i32.wrap_i64
|
|
local.tee $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.const 255
|
|
i32.and
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.const 16
|
|
i32.shr_u
|
|
i32.const 255
|
|
i32.and
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $0
|
|
i64.const 32
|
|
i64.shr_u
|
|
i32.wrap_i64
|
|
local.tee $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.const 255
|
|
i32.and
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.const 16
|
|
i32.shr_u
|
|
i32.const 255
|
|
i32.and
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $1
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
)
|
|
(func $~lib/set/Set<i64>#find (; 46 ;) (type $FUNCSIG$iiji) (param $0 i32) (param $1 i64) (param $2 i32) (result i32)
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $2
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
i32.load
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $2
|
|
if
|
|
local.get $2
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
local.tee $0
|
|
if
|
|
local.get $2
|
|
i64.load
|
|
local.get $1
|
|
i64.eq
|
|
local.set $0
|
|
end
|
|
local.get $0
|
|
if
|
|
local.get $2
|
|
return
|
|
end
|
|
local.get $2
|
|
i32.load offset=8
|
|
i32.const -2
|
|
i32.and
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/set/Set<i64>#has (; 47 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
call $~lib/util/hash/hash64
|
|
call $~lib/set/Set<i64>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/set/Set<i64>#rehash (; 48 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $4
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $6
|
|
i32.const 4
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $2
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 4
|
|
i32.shl
|
|
i32.add
|
|
local.set $7
|
|
local.get $4
|
|
local.set $3
|
|
loop $continue|0
|
|
local.get $2
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $2
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i64.load
|
|
i64.store
|
|
local.get $3
|
|
local.get $2
|
|
i64.load
|
|
call $~lib/util/hash/hash64
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $5
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $8
|
|
local.get $3
|
|
i32.store
|
|
local.get $3
|
|
i32.const 16
|
|
i32.add
|
|
local.set $3
|
|
end
|
|
local.get $2
|
|
i32.const 16
|
|
i32.add
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
i32.load
|
|
drop
|
|
local.get $0
|
|
local.get $5
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.load offset=8
|
|
drop
|
|
local.get $0
|
|
local.get $4
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $6
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.store offset=16
|
|
)
|
|
(func $~lib/set/Set<i64>#add (; 49 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
call $~lib/util/hash/hash64
|
|
local.tee $3
|
|
call $~lib/set/Set<i64>#find
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.eq
|
|
if
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 1
|
|
i32.or
|
|
end
|
|
call $~lib/set/Set<i64>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.set $2
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $4
|
|
i32.const 4
|
|
i32.shl
|
|
local.get $2
|
|
i32.add
|
|
local.tee $2
|
|
local.get $1
|
|
i64.store
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $2
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $3
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $2
|
|
i32.store
|
|
end
|
|
)
|
|
(func $~lib/set/Set<i64>#delete (; 50 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
call $~lib/util/hash/hash64
|
|
call $~lib/set/Set<i64>#find
|
|
local.tee $2
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $2
|
|
local.get $2
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.or
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=20
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shr_u
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.const 4
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.tee $2
|
|
i32.const 4
|
|
local.get $2
|
|
i32.gt_u
|
|
select
|
|
i32.ge_u
|
|
local.tee $2
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
else
|
|
local.get $2
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $3
|
|
call $~lib/set/Set<i64>#rehash
|
|
end
|
|
)
|
|
(func $std/set/testNumeric<i64> (; 51 ;) (type $FUNCSIG$v)
|
|
(local $0 i64)
|
|
(local $1 i32)
|
|
call $~lib/set/Set<i64>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
i64.const 100
|
|
i64.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|0
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 10
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 12
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i64.const 50
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i64.const 100
|
|
i64.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|1
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 20
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i64.const 0
|
|
local.set $0
|
|
loop $repeat|2
|
|
local.get $0
|
|
i64.const 50
|
|
i64.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 24
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|2
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 28
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i64.const 0
|
|
local.set $0
|
|
loop $repeat|3
|
|
local.get $0
|
|
i64.const 50
|
|
i64.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 32
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|3
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 38
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/set/Set<i64>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 42
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/set/Set<u64>#constructor (; 52 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 24
|
|
call $~lib/util/runtime/register
|
|
local.tee $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
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#clear
|
|
local.get $0
|
|
)
|
|
(func $std/set/testNumeric<u64> (; 53 ;) (type $FUNCSIG$v)
|
|
(local $0 i64)
|
|
(local $1 i32)
|
|
call $~lib/set/Set<u64>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
i64.const 100
|
|
i64.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|0
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 10
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 12
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i64.const 50
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i64.const 100
|
|
i64.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|1
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 20
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i64.const 0
|
|
local.set $0
|
|
loop $repeat|2
|
|
local.get $0
|
|
i64.const 50
|
|
i64.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 24
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|2
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 28
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i64.const 0
|
|
local.set $0
|
|
loop $repeat|3
|
|
local.get $0
|
|
i64.const 50
|
|
i64.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 32
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|3
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 38
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/set/Set<i64>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 42
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/set/Set<f32>#constructor (; 54 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 25
|
|
call $~lib/util/runtime/register
|
|
local.tee $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
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $0
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/set/Set<f32>#find (; 55 ;) (type $FUNCSIG$iifi) (param $0 i32) (param $1 f32) (param $2 i32) (result i32)
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $2
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
i32.load
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $2
|
|
if
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
local.tee $0
|
|
if
|
|
local.get $2
|
|
f32.load
|
|
local.get $1
|
|
f32.eq
|
|
local.set $0
|
|
end
|
|
local.get $0
|
|
if
|
|
local.get $2
|
|
return
|
|
end
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const -2
|
|
i32.and
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/set/Set<f32>#has (; 56 ;) (type $FUNCSIG$iif) (param $0 i32) (param $1 f32) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.reinterpret_f32
|
|
call $~lib/util/hash/hash32
|
|
call $~lib/set/Set<f32>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/set/Set<f32>#rehash (; 57 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $4
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $6
|
|
i32.const 3
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $2
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 3
|
|
i32.shl
|
|
i32.add
|
|
local.set $7
|
|
local.get $4
|
|
local.set $3
|
|
loop $continue|0
|
|
local.get $2
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
f32.load
|
|
f32.store
|
|
local.get $3
|
|
local.get $2
|
|
f32.load
|
|
i32.reinterpret_f32
|
|
call $~lib/util/hash/hash32
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $5
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $8
|
|
local.get $3
|
|
i32.store
|
|
local.get $3
|
|
i32.const 8
|
|
i32.add
|
|
local.set $3
|
|
end
|
|
local.get $2
|
|
i32.const 8
|
|
i32.add
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
i32.load
|
|
drop
|
|
local.get $0
|
|
local.get $5
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.load offset=8
|
|
drop
|
|
local.get $0
|
|
local.get $4
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $6
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.store offset=16
|
|
)
|
|
(func $~lib/set/Set<f32>#add (; 58 ;) (type $FUNCSIG$vif) (param $0 i32) (param $1 f32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.reinterpret_f32
|
|
call $~lib/util/hash/hash32
|
|
local.tee $3
|
|
call $~lib/set/Set<f32>#find
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.eq
|
|
if
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 1
|
|
i32.or
|
|
end
|
|
call $~lib/set/Set<f32>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.set $2
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $4
|
|
i32.const 3
|
|
i32.shl
|
|
local.get $2
|
|
i32.add
|
|
local.tee $2
|
|
local.get $1
|
|
f32.store
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $2
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $3
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $2
|
|
i32.store
|
|
end
|
|
)
|
|
(func $~lib/set/Set<f32>#delete (; 59 ;) (type $FUNCSIG$vif) (param $0 i32) (param $1 f32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.reinterpret_f32
|
|
call $~lib/util/hash/hash32
|
|
call $~lib/set/Set<f32>#find
|
|
local.tee $2
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $2
|
|
local.get $2
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.or
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=20
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shr_u
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.const 4
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.tee $2
|
|
i32.const 4
|
|
local.get $2
|
|
i32.gt_u
|
|
select
|
|
i32.ge_u
|
|
local.tee $2
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
else
|
|
local.get $2
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $3
|
|
call $~lib/set/Set<f32>#rehash
|
|
end
|
|
)
|
|
(func $std/set/testNumeric<f32> (; 60 ;) (type $FUNCSIG$v)
|
|
(local $0 f32)
|
|
(local $1 i32)
|
|
call $~lib/set/Set<f32>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
f32.const 100
|
|
f32.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#has
|
|
if
|
|
local.get $0
|
|
f32.const 1
|
|
f32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 10
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 12
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
f32.const 50
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
f32.const 100
|
|
f32.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#has
|
|
if
|
|
local.get $0
|
|
f32.const 1
|
|
f32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 20
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
f32.const 0
|
|
local.set $0
|
|
loop $repeat|2
|
|
local.get $0
|
|
f32.const 50
|
|
f32.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 24
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
f32.const 1
|
|
f32.add
|
|
local.set $0
|
|
br $repeat|2
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 28
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
f32.const 0
|
|
local.set $0
|
|
loop $repeat|3
|
|
local.get $0
|
|
f32.const 50
|
|
f32.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 32
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
f32.const 1
|
|
f32.add
|
|
local.set $0
|
|
br $repeat|3
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 38
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/set/Set<i8>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 42
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/set/Set<f64>#constructor (; 61 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 26
|
|
call $~lib/util/runtime/register
|
|
local.tee $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
|
|
i32.const 0
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $0
|
|
call $~lib/set/Set<i64>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/set/Set<f64>#find (; 62 ;) (type $FUNCSIG$iidi) (param $0 i32) (param $1 f64) (param $2 i32) (result i32)
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $2
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
i32.load
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $2
|
|
if
|
|
local.get $2
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
local.tee $0
|
|
if
|
|
local.get $2
|
|
f64.load
|
|
local.get $1
|
|
f64.eq
|
|
local.set $0
|
|
end
|
|
local.get $0
|
|
if
|
|
local.get $2
|
|
return
|
|
end
|
|
local.get $2
|
|
i32.load offset=8
|
|
i32.const -2
|
|
i32.and
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/set/Set<f64>#has (; 63 ;) (type $FUNCSIG$iid) (param $0 i32) (param $1 f64) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i64.reinterpret_f64
|
|
call $~lib/util/hash/hash64
|
|
call $~lib/set/Set<f64>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/set/Set<f64>#rehash (; 64 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $4
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $6
|
|
i32.const 4
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $2
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 4
|
|
i32.shl
|
|
i32.add
|
|
local.set $7
|
|
local.get $4
|
|
local.set $3
|
|
loop $continue|0
|
|
local.get $2
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $2
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
f64.load
|
|
f64.store
|
|
local.get $3
|
|
local.get $2
|
|
f64.load
|
|
i64.reinterpret_f64
|
|
call $~lib/util/hash/hash64
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $5
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $8
|
|
local.get $3
|
|
i32.store
|
|
local.get $3
|
|
i32.const 16
|
|
i32.add
|
|
local.set $3
|
|
end
|
|
local.get $2
|
|
i32.const 16
|
|
i32.add
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
i32.load
|
|
drop
|
|
local.get $0
|
|
local.get $5
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.load offset=8
|
|
drop
|
|
local.get $0
|
|
local.get $4
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $6
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.store offset=16
|
|
)
|
|
(func $~lib/set/Set<f64>#add (; 65 ;) (type $FUNCSIG$vid) (param $0 i32) (param $1 f64)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i64.reinterpret_f64
|
|
call $~lib/util/hash/hash64
|
|
local.tee $3
|
|
call $~lib/set/Set<f64>#find
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.eq
|
|
if
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 1
|
|
i32.or
|
|
end
|
|
call $~lib/set/Set<f64>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.set $2
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $4
|
|
i32.const 4
|
|
i32.shl
|
|
local.get $2
|
|
i32.add
|
|
local.tee $2
|
|
local.get $1
|
|
f64.store
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $2
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $3
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $2
|
|
i32.store
|
|
end
|
|
)
|
|
(func $~lib/set/Set<f64>#delete (; 66 ;) (type $FUNCSIG$vid) (param $0 i32) (param $1 f64)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i64.reinterpret_f64
|
|
call $~lib/util/hash/hash64
|
|
call $~lib/set/Set<f64>#find
|
|
local.tee $2
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $2
|
|
local.get $2
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.or
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=20
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shr_u
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.const 4
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.tee $2
|
|
i32.const 4
|
|
local.get $2
|
|
i32.gt_u
|
|
select
|
|
i32.ge_u
|
|
local.tee $2
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=20
|
|
local.get $0
|
|
i32.load offset=12
|
|
f64.convert_i32_s
|
|
f64.const 0.75
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
i32.lt_s
|
|
else
|
|
local.get $2
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $3
|
|
call $~lib/set/Set<f64>#rehash
|
|
end
|
|
)
|
|
(func $std/set/testNumeric<f64> (; 67 ;) (type $FUNCSIG$v)
|
|
(local $0 f64)
|
|
(local $1 i32)
|
|
call $~lib/set/Set<f64>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
f64.const 100
|
|
f64.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#has
|
|
if
|
|
local.get $0
|
|
f64.const 1
|
|
f64.add
|
|
local.set $0
|
|
br $repeat|0
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 10
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 12
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
f64.const 50
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
f64.const 100
|
|
f64.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#has
|
|
if
|
|
local.get $0
|
|
f64.const 1
|
|
f64.add
|
|
local.set $0
|
|
br $repeat|1
|
|
else
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 20
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
f64.const 0
|
|
local.set $0
|
|
loop $repeat|2
|
|
local.get $0
|
|
f64.const 50
|
|
f64.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 24
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
f64.const 1
|
|
f64.add
|
|
local.set $0
|
|
br $repeat|2
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 28
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
f64.const 0
|
|
local.set $0
|
|
loop $repeat|3
|
|
local.get $0
|
|
f64.const 50
|
|
f64.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 32
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#add
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/set/Set<f64>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
f64.const 1
|
|
f64.add
|
|
local.set $0
|
|
br $repeat|3
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 50
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 38
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/set/Set<i64>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 136
|
|
i32.const 42
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/runtime/runtime.instanceof (; 68 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
local.get $0
|
|
i32.const 16
|
|
i32.sub
|
|
i32.load
|
|
local.tee $0
|
|
if (result i32)
|
|
local.get $0
|
|
i32.const 160
|
|
i32.load
|
|
i32.le_u
|
|
else
|
|
local.get $0
|
|
end
|
|
if
|
|
loop $continue|0
|
|
local.get $0
|
|
local.get $1
|
|
i32.eq
|
|
if
|
|
i32.const 1
|
|
return
|
|
end
|
|
local.get $0
|
|
i32.const 3
|
|
i32.shl
|
|
i32.const 160
|
|
i32.add
|
|
i32.load offset=4
|
|
local.tee $0
|
|
br_if $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/runtime/runtime.flags (; 69 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
local.get $0
|
|
i32.eqz
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
i32.const 160
|
|
i32.load
|
|
i32.gt_u
|
|
local.set $1
|
|
end
|
|
local.get $1
|
|
if (result i32)
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 3
|
|
i32.shl
|
|
i32.const 160
|
|
i32.add
|
|
i32.load
|
|
end
|
|
)
|
|
(func $~lib/runtime/runtime.newObject (; 70 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
local.get $0
|
|
call $~lib/util/runtime/allocate
|
|
local.get $1
|
|
call $~lib/util/runtime/register
|
|
)
|
|
(func $~lib/runtime/runtime.newString (; 71 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
local.get $0
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 16
|
|
call $~lib/runtime/runtime.newObject
|
|
)
|
|
(func $~lib/runtime/runtime.newArrayBuffer (; 72 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
local.get $0
|
|
i32.const 15
|
|
call $~lib/runtime/runtime.newObject
|
|
)
|
|
(func $~lib/runtime/runtime.newArray (; 73 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $0
|
|
local.tee $2
|
|
i32.eqz
|
|
local.tee $0
|
|
if (result i32)
|
|
local.get $0
|
|
else
|
|
local.get $2
|
|
i32.const 160
|
|
i32.load
|
|
i32.gt_u
|
|
end
|
|
if (result i32)
|
|
unreachable
|
|
else
|
|
local.get $2
|
|
i32.const 3
|
|
i32.shl
|
|
i32.const 160
|
|
i32.add
|
|
i32.load
|
|
end
|
|
local.tee $0
|
|
i32.const 16
|
|
i32.div_u
|
|
i32.const 31
|
|
i32.and
|
|
local.set $4
|
|
local.get $1
|
|
if (result i32)
|
|
local.get $1
|
|
i32.const 16
|
|
i32.sub
|
|
i32.load offset=4
|
|
else
|
|
i32.const 0
|
|
call $~lib/runtime/runtime.newArrayBuffer
|
|
local.set $1
|
|
i32.const 0
|
|
end
|
|
local.set $3
|
|
local.get $2
|
|
i32.const 16
|
|
call $~lib/runtime/runtime.newObject
|
|
local.tee $2
|
|
i32.load
|
|
drop
|
|
local.get $2
|
|
local.get $1
|
|
i32.store
|
|
local.get $2
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $2
|
|
local.get $3
|
|
i32.store offset=8
|
|
local.get $2
|
|
local.get $3
|
|
local.get $4
|
|
i32.shr_u
|
|
i32.store offset=12
|
|
local.get $0
|
|
i32.const 1024
|
|
i32.and
|
|
if
|
|
local.get $1
|
|
local.get $3
|
|
i32.add
|
|
local.set $0
|
|
loop $continue|0
|
|
local.get $1
|
|
local.get $0
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
i32.load
|
|
drop
|
|
local.get $1
|
|
i32.const 4
|
|
i32.add
|
|
local.set $1
|
|
br $continue|0
|
|
end
|
|
end
|
|
end
|
|
local.get $2
|
|
)
|
|
(func $~lib/runtime/runtime.retain (; 74 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
nop
|
|
)
|
|
(func $~lib/runtime/runtime.collect (; 75 ;) (type $FUNCSIG$v)
|
|
nop
|
|
)
|
|
(func $start (; 76 ;) (type $FUNCSIG$v)
|
|
i32.const 392
|
|
global.set $~lib/allocator/arena/startOffset
|
|
global.get $~lib/allocator/arena/startOffset
|
|
global.set $~lib/allocator/arena/offset
|
|
call $std/set/testNumeric<i8>
|
|
call $std/set/testNumeric<u8>
|
|
call $std/set/testNumeric<i16>
|
|
call $std/set/testNumeric<u16>
|
|
call $std/set/testNumeric<i32>
|
|
call $std/set/testNumeric<u32>
|
|
call $std/set/testNumeric<i64>
|
|
call $std/set/testNumeric<u64>
|
|
call $std/set/testNumeric<f32>
|
|
call $std/set/testNumeric<f64>
|
|
i32.const 0
|
|
call $~lib/util/runtime/allocate
|
|
i32.const 28
|
|
call $~lib/util/runtime/register
|
|
global.set $~lib/runtime/ROOT
|
|
)
|
|
)
|