mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 07:22:21 +00:00
8486 lines
145 KiB
Plaintext
8486 lines
145 KiB
Plaintext
(module
|
|
(type $FUNCSIG$v (func))
|
|
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
|
(type $FUNCSIG$vi (func (param i32)))
|
|
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
|
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
|
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
|
(type $FUNCSIG$vii (func (param i32 i32)))
|
|
(type $FUNCSIG$viii (func (param i32 i32 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$viji (func (param i32 i64 i32)))
|
|
(type $FUNCSIG$iif (func (param i32 f32) (result i32)))
|
|
(type $FUNCSIG$iifi (func (param i32 f32 i32) (result i32)))
|
|
(type $FUNCSIG$vifi (func (param i32 f32 i32)))
|
|
(type $FUNCSIG$iid (func (param i32 f64) (result i32)))
|
|
(type $FUNCSIG$iidi (func (param i32 f64 i32) (result i32)))
|
|
(type $FUNCSIG$vidi (func (param i32 f64 i32)))
|
|
(type $FUNCSIG$i (func (result i32)))
|
|
(type $FUNCSIG$vij (func (param i32 i64)))
|
|
(type $FUNCSIG$vif (func (param i32 f32)))
|
|
(type $FUNCSIG$vid (func (param i32 f64)))
|
|
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
|
|
(import "rtrace" "retain" (func $~lib/rt/purerc/onIncrement (param i32)))
|
|
(import "rtrace" "release" (func $~lib/rt/purerc/onDecrement (param i32)))
|
|
(import "rtrace" "free" (func $~lib/rt/tlsf/onFree (param i32)))
|
|
(memory $0 1)
|
|
(data (i32.const 8) "\1c\00\00\00\01\00\00\00\10\00\00\00\1c\00\00\00I\00n\00v\00a\00l\00i\00d\00 \00l\00e\00n\00g\00t\00h")
|
|
(data (i32.const 56) "&\00\00\00\01\00\00\00\10\00\00\00&\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
|
(data (i32.const 112) "\1e\00\00\00\01\00\00\00\10\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00t\00l\00s\00f\00.\00t\00s")
|
|
(data (i32.const 160) "(\00\00\00\01\00\00\00\10\00\00\00(\00\00\00a\00l\00l\00o\00c\00a\00t\00i\00o\00n\00 \00t\00o\00o\00 \00l\00a\00r\00g\00e")
|
|
(data (i32.const 216) "\14\00\00\00\01\00\00\00\10\00\00\00\14\00\00\00s\00t\00d\00/\00m\00a\00p\00.\00t\00s")
|
|
(data (i32.const 256) "\"\00\00\00\01\00\00\00\10\00\00\00\"\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00p\00u\00r\00e\00r\00c\00.\00t\00s")
|
|
(data (i32.const 312) "$\00\00\00\01\00\00\00\10\00\00\00$\00\00\00I\00n\00d\00e\00x\00 \00o\00u\00t\00 \00o\00f\00 \00r\00a\00n\00g\00e")
|
|
(data (i32.const 368) "\"\00\00\00\01\00\00\00\10\00\00\00\"\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00c\00o\00m\00m\00o\00n\00.\00t\00s")
|
|
(data (i32.const 424) "\1a\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\00L\08\00\00\00\00\00\00L\08\00\00\00\00\00\00L\10\00\00\00\00\00\00L\10\00\00\00\00\00\00L \00\00\00\00\00\00L \00\00\00\00\00\00L@\00\00\00\00\00\00L@\00\00\00\00\00\00L \00\00\00\00\00\00L@")
|
|
(global $~lib/rt/tlsf/ROOT (mut i32) (i32.const 0))
|
|
(global $~lib/rt/purerc/CUR (mut i32) (i32.const 0))
|
|
(global $~lib/rt/purerc/END (mut i32) (i32.const 0))
|
|
(global $~lib/rt/purerc/ROOTS (mut i32) (i32.const 0))
|
|
(export "memory" (memory $0))
|
|
(start $start)
|
|
(func $~lib/rt/tlsf/removeBlock (; 4 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
local.get $1
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 275
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $3
|
|
i32.const -4
|
|
i32.and
|
|
local.tee $2
|
|
i32.const 16
|
|
i32.ge_u
|
|
if (result i32)
|
|
local.get $2
|
|
i32.const 1073741808
|
|
i32.lt_u
|
|
else
|
|
i32.const 0
|
|
end
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 277
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $2
|
|
i32.const 256
|
|
i32.lt_u
|
|
if (result i32)
|
|
local.get $2
|
|
i32.const 4
|
|
i32.shr_u
|
|
local.set $2
|
|
i32.const 0
|
|
else
|
|
local.get $2
|
|
i32.const 31
|
|
local.get $2
|
|
i32.clz
|
|
i32.sub
|
|
local.tee $3
|
|
i32.const 4
|
|
i32.sub
|
|
i32.shr_u
|
|
i32.const 16
|
|
i32.xor
|
|
local.set $2
|
|
local.get $3
|
|
i32.const 7
|
|
i32.sub
|
|
end
|
|
local.tee $3
|
|
i32.const 23
|
|
i32.lt_u
|
|
if (result i32)
|
|
local.get $2
|
|
i32.const 16
|
|
i32.lt_u
|
|
else
|
|
i32.const 0
|
|
end
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 290
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
local.set $4
|
|
local.get $1
|
|
i32.load offset=16
|
|
local.tee $5
|
|
if
|
|
local.get $5
|
|
local.get $4
|
|
i32.store offset=20
|
|
end
|
|
local.get $4
|
|
if
|
|
local.get $4
|
|
local.get $5
|
|
i32.store offset=16
|
|
end
|
|
local.get $3
|
|
i32.const 4
|
|
i32.shl
|
|
local.get $2
|
|
i32.add
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
i32.load offset=96
|
|
local.get $1
|
|
i32.eq
|
|
if
|
|
local.get $3
|
|
i32.const 4
|
|
i32.shl
|
|
local.get $2
|
|
i32.add
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
local.get $4
|
|
i32.store offset=96
|
|
local.get $4
|
|
i32.eqz
|
|
if
|
|
local.get $3
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
local.get $3
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
i32.load offset=4
|
|
i32.const 1
|
|
local.get $2
|
|
i32.shl
|
|
i32.const -1
|
|
i32.xor
|
|
i32.and
|
|
local.tee $1
|
|
i32.store offset=4
|
|
local.get $1
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
local.get $0
|
|
i32.load
|
|
i32.const 1
|
|
local.get $3
|
|
i32.shl
|
|
i32.const -1
|
|
i32.xor
|
|
i32.and
|
|
i32.store
|
|
end
|
|
end
|
|
end
|
|
)
|
|
(func $~lib/rt/tlsf/insertBlock (; 5 ;) (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.get $1
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 203
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 205
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
local.get $1
|
|
i32.load
|
|
i32.const -4
|
|
i32.and
|
|
i32.add
|
|
local.tee $4
|
|
i32.load
|
|
local.tee $5
|
|
i32.const 1
|
|
i32.and
|
|
if
|
|
local.get $3
|
|
i32.const -4
|
|
i32.and
|
|
i32.const 16
|
|
i32.add
|
|
local.get $5
|
|
i32.const -4
|
|
i32.and
|
|
i32.add
|
|
local.tee $2
|
|
i32.const 1073741808
|
|
i32.lt_u
|
|
if
|
|
local.get $0
|
|
local.get $4
|
|
call $~lib/rt/tlsf/removeBlock
|
|
local.get $1
|
|
local.get $3
|
|
i32.const 3
|
|
i32.and
|
|
local.get $2
|
|
i32.or
|
|
local.tee $3
|
|
i32.store
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
local.get $1
|
|
i32.load
|
|
i32.const -4
|
|
i32.and
|
|
i32.add
|
|
local.tee $4
|
|
i32.load
|
|
local.set $5
|
|
end
|
|
end
|
|
local.get $3
|
|
i32.const 2
|
|
i32.and
|
|
if
|
|
local.get $1
|
|
i32.const 4
|
|
i32.sub
|
|
i32.load
|
|
local.tee $2
|
|
i32.load
|
|
local.tee $6
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 226
|
|
i32.const 15
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $6
|
|
i32.const -4
|
|
i32.and
|
|
i32.const 16
|
|
i32.add
|
|
local.get $3
|
|
i32.const -4
|
|
i32.and
|
|
i32.add
|
|
local.tee $7
|
|
i32.const 1073741808
|
|
i32.lt_u
|
|
if (result i32)
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/rt/tlsf/removeBlock
|
|
local.get $2
|
|
local.get $6
|
|
i32.const 3
|
|
i32.and
|
|
local.get $7
|
|
i32.or
|
|
local.tee $3
|
|
i32.store
|
|
local.get $2
|
|
else
|
|
local.get $1
|
|
end
|
|
local.set $1
|
|
end
|
|
local.get $4
|
|
local.get $5
|
|
i32.const 2
|
|
i32.or
|
|
i32.store
|
|
local.get $3
|
|
i32.const -4
|
|
i32.and
|
|
local.tee $2
|
|
i32.const 16
|
|
i32.ge_u
|
|
if (result i32)
|
|
local.get $2
|
|
i32.const 1073741808
|
|
i32.lt_u
|
|
else
|
|
i32.const 0
|
|
end
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 241
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $4
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
local.get $2
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 242
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $4
|
|
i32.const 4
|
|
i32.sub
|
|
local.get $1
|
|
i32.store
|
|
local.get $2
|
|
i32.const 256
|
|
i32.lt_u
|
|
if (result i32)
|
|
local.get $2
|
|
i32.const 4
|
|
i32.shr_u
|
|
local.set $4
|
|
i32.const 0
|
|
else
|
|
local.get $2
|
|
i32.const 31
|
|
local.get $2
|
|
i32.clz
|
|
i32.sub
|
|
local.tee $2
|
|
i32.const 4
|
|
i32.sub
|
|
i32.shr_u
|
|
i32.const 16
|
|
i32.xor
|
|
local.set $4
|
|
local.get $2
|
|
i32.const 7
|
|
i32.sub
|
|
end
|
|
local.tee $3
|
|
i32.const 23
|
|
i32.lt_u
|
|
if (result i32)
|
|
local.get $4
|
|
i32.const 16
|
|
i32.lt_u
|
|
else
|
|
i32.const 0
|
|
end
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 258
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $3
|
|
i32.const 4
|
|
i32.shl
|
|
local.get $4
|
|
i32.add
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
i32.load offset=96
|
|
local.set $2
|
|
local.get $1
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $1
|
|
local.get $2
|
|
i32.store offset=20
|
|
local.get $2
|
|
if
|
|
local.get $2
|
|
local.get $1
|
|
i32.store offset=16
|
|
end
|
|
local.get $3
|
|
i32.const 4
|
|
i32.shl
|
|
local.get $4
|
|
i32.add
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
local.get $1
|
|
i32.store offset=96
|
|
local.get $0
|
|
local.get $0
|
|
i32.load
|
|
i32.const 1
|
|
local.get $3
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
local.get $3
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
local.get $3
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
i32.load offset=4
|
|
i32.const 1
|
|
local.get $4
|
|
i32.shl
|
|
i32.or
|
|
i32.store offset=4
|
|
)
|
|
(func $~lib/rt/tlsf/addMemory (; 6 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $2
|
|
i32.const 15
|
|
i32.and
|
|
i32.eqz
|
|
i32.const 0
|
|
local.get $1
|
|
i32.const 15
|
|
i32.and
|
|
i32.eqz
|
|
i32.const 0
|
|
local.get $1
|
|
local.get $2
|
|
i32.le_u
|
|
select
|
|
select
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 384
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
i32.load offset=1568
|
|
local.tee $3
|
|
if
|
|
local.get $1
|
|
local.get $3
|
|
i32.const 16
|
|
i32.add
|
|
i32.lt_u
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 394
|
|
i32.const 15
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
i32.const 16
|
|
i32.sub
|
|
local.get $3
|
|
i32.eq
|
|
if
|
|
local.get $3
|
|
i32.load
|
|
local.set $4
|
|
local.get $1
|
|
i32.const 16
|
|
i32.sub
|
|
local.set $1
|
|
end
|
|
else
|
|
local.get $1
|
|
local.get $0
|
|
i32.const 1572
|
|
i32.add
|
|
i32.lt_u
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 406
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $2
|
|
local.get $1
|
|
i32.sub
|
|
local.tee $2
|
|
i32.const 48
|
|
i32.lt_u
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $4
|
|
i32.const 2
|
|
i32.and
|
|
local.get $2
|
|
i32.const 32
|
|
i32.sub
|
|
i32.const 1
|
|
i32.or
|
|
i32.or
|
|
i32.store
|
|
local.get $1
|
|
i32.const 0
|
|
i32.store offset=16
|
|
local.get $1
|
|
i32.const 0
|
|
i32.store offset=20
|
|
local.get $1
|
|
local.get $2
|
|
i32.add
|
|
i32.const 16
|
|
i32.sub
|
|
local.tee $2
|
|
i32.const 2
|
|
i32.store
|
|
local.get $0
|
|
local.get $2
|
|
i32.store offset=1568
|
|
local.get $0
|
|
local.get $1
|
|
call $~lib/rt/tlsf/insertBlock
|
|
)
|
|
(func $~lib/rt/tlsf/initializeRoot (; 7 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
i32.const 1
|
|
current_memory
|
|
local.tee $0
|
|
i32.gt_s
|
|
if (result i32)
|
|
i32.const 1
|
|
local.get $0
|
|
i32.sub
|
|
grow_memory
|
|
i32.const 0
|
|
i32.lt_s
|
|
else
|
|
i32.const 0
|
|
end
|
|
if
|
|
unreachable
|
|
end
|
|
i32.const 640
|
|
i32.const 0
|
|
i32.store
|
|
i32.const 2208
|
|
i32.const 0
|
|
i32.store
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|0
|
|
block $break|0
|
|
local.get $0
|
|
i32.const 23
|
|
i32.ge_u
|
|
br_if $break|0
|
|
local.get $0
|
|
i32.const 2
|
|
i32.shl
|
|
i32.const 640
|
|
i32.add
|
|
i32.const 0
|
|
i32.store offset=4
|
|
i32.const 0
|
|
local.set $1
|
|
loop $repeat|1
|
|
block $break|1
|
|
local.get $1
|
|
i32.const 16
|
|
i32.ge_u
|
|
br_if $break|1
|
|
local.get $0
|
|
i32.const 4
|
|
i32.shl
|
|
local.get $1
|
|
i32.add
|
|
i32.const 2
|
|
i32.shl
|
|
i32.const 640
|
|
i32.add
|
|
i32.const 0
|
|
i32.store offset=96
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
br $repeat|1
|
|
end
|
|
end
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
end
|
|
i32.const 640
|
|
i32.const 2224
|
|
current_memory
|
|
i32.const 16
|
|
i32.shl
|
|
call $~lib/rt/tlsf/addMemory
|
|
i32.const 640
|
|
global.set $~lib/rt/tlsf/ROOT
|
|
)
|
|
(func $~lib/rt/tlsf/prepareSize (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
local.get $0
|
|
i32.const 1073741808
|
|
i32.ge_u
|
|
if
|
|
i32.const 176
|
|
i32.const 128
|
|
i32.const 446
|
|
i32.const 29
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
i32.const 15
|
|
i32.add
|
|
i32.const -16
|
|
i32.and
|
|
local.tee $0
|
|
i32.const 16
|
|
local.get $0
|
|
i32.const 16
|
|
i32.gt_u
|
|
select
|
|
)
|
|
(func $~lib/rt/tlsf/searchBlock (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
local.get $1
|
|
i32.const 256
|
|
i32.lt_u
|
|
if (result i32)
|
|
local.get $1
|
|
i32.const 4
|
|
i32.shr_u
|
|
local.set $1
|
|
i32.const 0
|
|
else
|
|
local.get $1
|
|
i32.const 536870904
|
|
i32.lt_u
|
|
if
|
|
i32.const 1
|
|
i32.const 27
|
|
local.get $1
|
|
i32.clz
|
|
i32.sub
|
|
i32.shl
|
|
local.get $1
|
|
i32.add
|
|
i32.const 1
|
|
i32.sub
|
|
local.set $1
|
|
end
|
|
local.get $1
|
|
i32.const 31
|
|
local.get $1
|
|
i32.clz
|
|
i32.sub
|
|
local.tee $2
|
|
i32.const 4
|
|
i32.sub
|
|
i32.shr_u
|
|
i32.const 16
|
|
i32.xor
|
|
local.set $1
|
|
local.get $2
|
|
i32.const 7
|
|
i32.sub
|
|
end
|
|
local.tee $2
|
|
i32.const 23
|
|
i32.lt_u
|
|
if (result i32)
|
|
local.get $1
|
|
i32.const 16
|
|
i32.lt_u
|
|
else
|
|
i32.const 0
|
|
end
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 336
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $2
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
i32.load offset=4
|
|
i32.const -1
|
|
local.get $1
|
|
i32.shl
|
|
i32.and
|
|
local.tee $1
|
|
if (result i32)
|
|
local.get $1
|
|
i32.ctz
|
|
local.get $2
|
|
i32.const 4
|
|
i32.shl
|
|
i32.add
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
i32.load offset=96
|
|
else
|
|
local.get $0
|
|
i32.load
|
|
i32.const -1
|
|
local.get $2
|
|
i32.const 1
|
|
i32.add
|
|
i32.shl
|
|
i32.and
|
|
local.tee $1
|
|
if (result i32)
|
|
local.get $1
|
|
i32.ctz
|
|
local.tee $1
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
i32.load offset=4
|
|
local.tee $2
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 349
|
|
i32.const 17
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $2
|
|
i32.ctz
|
|
local.get $1
|
|
i32.const 4
|
|
i32.shl
|
|
i32.add
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $0
|
|
i32.add
|
|
i32.load offset=96
|
|
else
|
|
i32.const 0
|
|
end
|
|
end
|
|
)
|
|
(func $~lib/rt/tlsf/growMemory (; 10 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
current_memory
|
|
local.tee $2
|
|
local.get $1
|
|
i32.const 65535
|
|
i32.add
|
|
i32.const -65536
|
|
i32.and
|
|
i32.const 16
|
|
i32.shr_u
|
|
local.tee $1
|
|
local.get $2
|
|
local.get $1
|
|
i32.gt_s
|
|
select
|
|
grow_memory
|
|
i32.const 0
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
grow_memory
|
|
i32.const 0
|
|
i32.lt_s
|
|
if
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $0
|
|
local.get $2
|
|
i32.const 16
|
|
i32.shl
|
|
current_memory
|
|
i32.const 16
|
|
i32.shl
|
|
call $~lib/rt/tlsf/addMemory
|
|
)
|
|
(func $~lib/rt/tlsf/prepareBlock (; 11 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $1
|
|
i32.load
|
|
local.set $3
|
|
local.get $2
|
|
i32.const 15
|
|
i32.and
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 363
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $3
|
|
i32.const -4
|
|
i32.and
|
|
local.get $2
|
|
i32.sub
|
|
local.tee $4
|
|
i32.const 32
|
|
i32.ge_u
|
|
if
|
|
local.get $1
|
|
local.get $3
|
|
i32.const 2
|
|
i32.and
|
|
local.get $2
|
|
i32.or
|
|
i32.store
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
local.get $2
|
|
i32.add
|
|
local.tee $1
|
|
local.get $4
|
|
i32.const 16
|
|
i32.sub
|
|
i32.const 1
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
call $~lib/rt/tlsf/insertBlock
|
|
else
|
|
local.get $1
|
|
local.get $3
|
|
i32.const -2
|
|
i32.and
|
|
i32.store
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
local.get $1
|
|
i32.load
|
|
i32.const -4
|
|
i32.and
|
|
i32.add
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
local.get $1
|
|
i32.load
|
|
i32.const -4
|
|
i32.and
|
|
i32.add
|
|
i32.load
|
|
i32.const -3
|
|
i32.and
|
|
i32.store
|
|
end
|
|
)
|
|
(func $~lib/rt/tlsf/allocateBlock (; 12 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
local.get $0
|
|
local.get $1
|
|
call $~lib/rt/tlsf/prepareSize
|
|
local.tee $3
|
|
call $~lib/rt/tlsf/searchBlock
|
|
local.tee $2
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
local.get $3
|
|
call $~lib/rt/tlsf/growMemory
|
|
local.get $0
|
|
local.get $3
|
|
call $~lib/rt/tlsf/searchBlock
|
|
local.tee $2
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 476
|
|
i32.const 15
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $2
|
|
i32.load
|
|
i32.const -4
|
|
i32.and
|
|
local.get $3
|
|
i32.lt_u
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 478
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $2
|
|
i32.const 0
|
|
i32.store offset=4
|
|
local.get $2
|
|
local.get $1
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/rt/tlsf/removeBlock
|
|
local.get $0
|
|
local.get $2
|
|
local.get $3
|
|
call $~lib/rt/tlsf/prepareBlock
|
|
local.get $2
|
|
)
|
|
(func $~lib/rt/tlsf/__alloc (; 13 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
global.get $~lib/rt/tlsf/ROOT
|
|
local.tee $2
|
|
if (result i32)
|
|
local.get $2
|
|
else
|
|
call $~lib/rt/tlsf/initializeRoot
|
|
global.get $~lib/rt/tlsf/ROOT
|
|
end
|
|
local.get $0
|
|
call $~lib/rt/tlsf/allocateBlock
|
|
local.tee $0
|
|
local.get $1
|
|
i32.store offset=8
|
|
local.get $0
|
|
i32.const 16
|
|
i32.add
|
|
)
|
|
(func $~lib/memory/memory.fill (; 14 ;) (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 (; 15 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
local.get $0
|
|
i32.const 1073741808
|
|
i32.gt_u
|
|
if
|
|
i32.const 24
|
|
i32.const 72
|
|
i32.const 56
|
|
i32.const 42
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
i32.const 15
|
|
call $~lib/rt/tlsf/__alloc
|
|
local.tee $1
|
|
local.get $0
|
|
call $~lib/memory/memory.fill
|
|
local.get $1
|
|
call $~lib/rt/purerc/__retain
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#clear (; 16 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
local.get $0
|
|
i32.load
|
|
call $~lib/rt/purerc/__release
|
|
local.get $0
|
|
i32.const 16
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
i32.store
|
|
local.get $0
|
|
i32.const 3
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__release
|
|
local.get $0
|
|
i32.const 48
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
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/map/Map<i8,i32>#constructor (; 17 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
i32.const 17
|
|
call $~lib/rt/tlsf/__alloc
|
|
call $~lib/rt/purerc/__retain
|
|
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/map/Map<i8,i32>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#find (; 18 ;) (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 $0
|
|
loop $continue|0
|
|
local.get $0
|
|
if
|
|
local.get $0
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
if (result i32)
|
|
i32.const 0
|
|
else
|
|
local.get $0
|
|
i32.load8_u
|
|
local.get $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.eq
|
|
end
|
|
if
|
|
local.get $0
|
|
return
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
i32.const -2
|
|
i32.and
|
|
local.set $0
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#has (; 19 ;) (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/map/Map<i8,i32>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#rehash (; 20 ;) (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 $2
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $2
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $6
|
|
i32.const 12
|
|
i32.mul
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $3
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 12
|
|
i32.mul
|
|
i32.add
|
|
local.set $7
|
|
local.get $5
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $3
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $3
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $2
|
|
local.get $3
|
|
i32.load8_s
|
|
i32.store8
|
|
local.get $2
|
|
local.get $3
|
|
i32.load offset=4
|
|
i32.store offset=4
|
|
local.get $2
|
|
local.get $3
|
|
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 $4
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $8
|
|
local.get $2
|
|
i32.store
|
|
local.get $2
|
|
i32.const 12
|
|
i32.add
|
|
local.set $2
|
|
end
|
|
local.get $3
|
|
i32.const 12
|
|
i32.add
|
|
local.set $3
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
local.get $4
|
|
local.get $0
|
|
i32.load
|
|
call $~lib/rt/purerc/__retainRelease
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retainRelease
|
|
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
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
local.get $5
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#set (; 21 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 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 $3
|
|
local.set $5
|
|
local.get $0
|
|
local.get $1
|
|
local.get $3
|
|
call $~lib/map/Map<i8,i32>#find
|
|
local.tee $3
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
else
|
|
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/map/Map<i8,i32>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retain
|
|
local.set $4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $3
|
|
i32.const 12
|
|
i32.mul
|
|
local.get $4
|
|
i32.add
|
|
local.tee $3
|
|
local.get $1
|
|
i32.store8
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $3
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $5
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $3
|
|
i32.store
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
end
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#get (; 22 ;) (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/map/Map<i8,i32>#find
|
|
local.tee $0
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#delete (; 23 ;) (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/map/Map<i8,i32>#find
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $1
|
|
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 $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
|
|
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
|
|
i32.const 0
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/map/Map<i8,i32>#rehash
|
|
end
|
|
)
|
|
(func $std/map/testNumeric<i8,i32> (; 24 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/map/Map<i8,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/map/Map<i8,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 6
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 24
|
|
i32.shl
|
|
i32.const 24
|
|
i32.shr_s
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i8,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#get
|
|
local.get $0
|
|
i32.const 24
|
|
i32.shl
|
|
i32.const 24
|
|
i32.shr_s
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 9
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 11
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 15
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#get
|
|
local.get $0
|
|
i32.const 24
|
|
i32.shl
|
|
i32.const 24
|
|
i32.shr_s
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 24
|
|
i32.shl
|
|
i32.const 24
|
|
i32.shr_s
|
|
i32.const 20
|
|
i32.add
|
|
call $~lib/map/Map<i8,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#get
|
|
local.get $0
|
|
i32.const 24
|
|
i32.shl
|
|
i32.const 24
|
|
i32.shr_s
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 19
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 21
|
|
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/map/Map<i8,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 25
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#get
|
|
local.get $0
|
|
i32.const 24
|
|
i32.shl
|
|
i32.const 24
|
|
i32.shr_s
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 28
|
|
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 232
|
|
i32.const 30
|
|
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/map/Map<i8,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 24
|
|
i32.shl
|
|
i32.const 24
|
|
i32.shr_s
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i8,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i8,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 38
|
|
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 232
|
|
i32.const 40
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/map/Map<i8,i32>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 44
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#constructor (; 25 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
i32.const 18
|
|
call $~lib/rt/tlsf/__alloc
|
|
call $~lib/rt/purerc/__retain
|
|
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/map/Map<i8,i32>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#has (; 26 ;) (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/map/Map<i8,i32>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#rehash (; 27 ;) (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 $2
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $2
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $6
|
|
i32.const 12
|
|
i32.mul
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $3
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 12
|
|
i32.mul
|
|
i32.add
|
|
local.set $7
|
|
local.get $5
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $3
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $3
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $2
|
|
local.get $3
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $2
|
|
local.get $3
|
|
i32.load offset=4
|
|
i32.store offset=4
|
|
local.get $2
|
|
local.get $3
|
|
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 $4
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $8
|
|
local.get $2
|
|
i32.store
|
|
local.get $2
|
|
i32.const 12
|
|
i32.add
|
|
local.set $2
|
|
end
|
|
local.get $3
|
|
i32.const 12
|
|
i32.add
|
|
local.set $3
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
local.get $4
|
|
local.get $0
|
|
i32.load
|
|
call $~lib/rt/purerc/__retainRelease
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retainRelease
|
|
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
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
local.get $5
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#set (; 28 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
local.get $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.tee $3
|
|
local.set $5
|
|
local.get $0
|
|
local.get $1
|
|
local.get $3
|
|
call $~lib/map/Map<i8,i32>#find
|
|
local.tee $3
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
else
|
|
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/map/Map<u8,i32>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retain
|
|
local.set $4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $3
|
|
i32.const 12
|
|
i32.mul
|
|
local.get $4
|
|
i32.add
|
|
local.tee $3
|
|
local.get $1
|
|
i32.store8
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $3
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $5
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $3
|
|
i32.store
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
end
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#get (; 29 ;) (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/map/Map<i8,i32>#find
|
|
local.tee $0
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#delete (; 30 ;) (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/map/Map<i8,i32>#find
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $1
|
|
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 $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
|
|
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
|
|
i32.const 0
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/map/Map<u8,i32>#rehash
|
|
end
|
|
)
|
|
(func $std/map/testNumeric<u8,i32> (; 31 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/map/Map<u8,i32>#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/map/Map<u8,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 6
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<u8,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#get
|
|
local.get $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 9
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 11
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 15
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#get
|
|
local.get $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.const 20
|
|
i32.add
|
|
call $~lib/map/Map<u8,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#get
|
|
local.get $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 19
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 21
|
|
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/map/Map<u8,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 25
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#get
|
|
local.get $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 28
|
|
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 232
|
|
i32.const 30
|
|
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/map/Map<u8,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<u8,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u8,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 38
|
|
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 232
|
|
i32.const 40
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/map/Map<i8,i32>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 44
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#constructor (; 32 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
i32.const 19
|
|
call $~lib/rt/tlsf/__alloc
|
|
call $~lib/rt/purerc/__retain
|
|
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/map/Map<i8,i32>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#find (; 33 ;) (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 $0
|
|
loop $continue|0
|
|
local.get $0
|
|
if
|
|
local.get $0
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
if (result i32)
|
|
i32.const 0
|
|
else
|
|
local.get $0
|
|
i32.load16_u
|
|
local.get $1
|
|
i32.const 65535
|
|
i32.and
|
|
i32.eq
|
|
end
|
|
if
|
|
local.get $0
|
|
return
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
i32.const -2
|
|
i32.and
|
|
local.set $0
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#has (; 34 ;) (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/map/Map<i16,i32>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#rehash (; 35 ;) (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 $2
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $2
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $7
|
|
i32.const 12
|
|
i32.mul
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $3
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 12
|
|
i32.mul
|
|
i32.add
|
|
local.set $8
|
|
local.get $5
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $3
|
|
local.get $8
|
|
i32.ne
|
|
if
|
|
local.get $3
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $2
|
|
local.get $3
|
|
i32.load16_s
|
|
i32.store16
|
|
local.get $2
|
|
local.get $3
|
|
i32.load offset=4
|
|
i32.store offset=4
|
|
local.get $2
|
|
local.get $3
|
|
i32.load16_s
|
|
local.tee $6
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $6
|
|
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 $4
|
|
i32.add
|
|
local.tee $6
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $6
|
|
local.get $2
|
|
i32.store
|
|
local.get $2
|
|
i32.const 12
|
|
i32.add
|
|
local.set $2
|
|
end
|
|
local.get $3
|
|
i32.const 12
|
|
i32.add
|
|
local.set $3
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
local.get $4
|
|
local.get $0
|
|
i32.load
|
|
call $~lib/rt/purerc/__retainRelease
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retainRelease
|
|
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
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
local.get $5
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#set (; 36 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
local.get $1
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
local.tee $3
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $3
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.tee $3
|
|
local.set $5
|
|
local.get $0
|
|
local.get $1
|
|
local.get $3
|
|
call $~lib/map/Map<i16,i32>#find
|
|
local.tee $3
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
else
|
|
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/map/Map<i16,i32>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retain
|
|
local.set $4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $3
|
|
i32.const 12
|
|
i32.mul
|
|
local.get $4
|
|
i32.add
|
|
local.tee $3
|
|
local.get $1
|
|
i32.store16
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $3
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $5
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $3
|
|
i32.store
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
end
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#get (; 37 ;) (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/map/Map<i16,i32>#find
|
|
local.tee $0
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#delete (; 38 ;) (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/map/Map<i16,i32>#find
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $1
|
|
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 $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
|
|
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
|
|
i32.const 0
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/map/Map<i16,i32>#rehash
|
|
end
|
|
)
|
|
(func $std/map/testNumeric<i16,i32> (; 39 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/map/Map<i16,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/map/Map<i16,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 6
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i16,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#get
|
|
local.get $0
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 9
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 11
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 15
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#get
|
|
local.get $0
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
i32.const 20
|
|
i32.add
|
|
call $~lib/map/Map<i16,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#get
|
|
local.get $0
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 19
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 21
|
|
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/map/Map<i16,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 25
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#get
|
|
local.get $0
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 28
|
|
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 232
|
|
i32.const 30
|
|
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/map/Map<i16,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 16
|
|
i32.shl
|
|
i32.const 16
|
|
i32.shr_s
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i16,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i16,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 38
|
|
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 232
|
|
i32.const 40
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/map/Map<i8,i32>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 44
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#constructor (; 40 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
i32.const 20
|
|
call $~lib/rt/tlsf/__alloc
|
|
call $~lib/rt/purerc/__retain
|
|
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/map/Map<i8,i32>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#has (; 41 ;) (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/map/Map<i16,i32>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#rehash (; 42 ;) (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 $2
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $2
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $7
|
|
i32.const 12
|
|
i32.mul
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $3
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 12
|
|
i32.mul
|
|
i32.add
|
|
local.set $8
|
|
local.get $5
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $3
|
|
local.get $8
|
|
i32.ne
|
|
if
|
|
local.get $3
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $2
|
|
local.get $3
|
|
i32.load16_u
|
|
i32.store16
|
|
local.get $2
|
|
local.get $3
|
|
i32.load offset=4
|
|
i32.store offset=4
|
|
local.get $2
|
|
local.get $3
|
|
i32.load16_u
|
|
local.tee $6
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $6
|
|
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 $4
|
|
i32.add
|
|
local.tee $6
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $6
|
|
local.get $2
|
|
i32.store
|
|
local.get $2
|
|
i32.const 12
|
|
i32.add
|
|
local.set $2
|
|
end
|
|
local.get $3
|
|
i32.const 12
|
|
i32.add
|
|
local.set $3
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
local.get $4
|
|
local.get $0
|
|
i32.load
|
|
call $~lib/rt/purerc/__retainRelease
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retainRelease
|
|
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
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
local.get $5
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#set (; 43 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
local.get $1
|
|
i32.const 65535
|
|
i32.and
|
|
local.tee $3
|
|
i32.const 255
|
|
i32.and
|
|
i32.const -2128831035
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.get $3
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.xor
|
|
i32.const 16777619
|
|
i32.mul
|
|
local.tee $3
|
|
local.set $5
|
|
local.get $0
|
|
local.get $1
|
|
local.get $3
|
|
call $~lib/map/Map<i16,i32>#find
|
|
local.tee $3
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
else
|
|
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/map/Map<u16,i32>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retain
|
|
local.set $4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $3
|
|
i32.const 12
|
|
i32.mul
|
|
local.get $4
|
|
i32.add
|
|
local.tee $3
|
|
local.get $1
|
|
i32.store16
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $3
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $5
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $3
|
|
i32.store
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
end
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#get (; 44 ;) (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/map/Map<i16,i32>#find
|
|
local.tee $0
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#delete (; 45 ;) (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/map/Map<i16,i32>#find
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $1
|
|
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 $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
|
|
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
|
|
i32.const 0
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/map/Map<u16,i32>#rehash
|
|
end
|
|
)
|
|
(func $std/map/testNumeric<u16,i32> (; 46 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/map/Map<u16,i32>#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/map/Map<u16,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 6
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 65535
|
|
i32.and
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<u16,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#get
|
|
local.get $0
|
|
i32.const 65535
|
|
i32.and
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 9
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 11
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 15
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#get
|
|
local.get $0
|
|
i32.const 65535
|
|
i32.and
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 65535
|
|
i32.and
|
|
i32.const 20
|
|
i32.add
|
|
call $~lib/map/Map<u16,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#get
|
|
local.get $0
|
|
i32.const 65535
|
|
i32.and
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 19
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 21
|
|
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/map/Map<u16,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 25
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#get
|
|
local.get $0
|
|
i32.const 65535
|
|
i32.and
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 28
|
|
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 232
|
|
i32.const 30
|
|
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/map/Map<u16,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 65535
|
|
i32.and
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<u16,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<u16,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 38
|
|
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 232
|
|
i32.const 40
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/map/Map<i8,i32>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 44
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#constructor (; 47 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
i32.const 21
|
|
call $~lib/rt/tlsf/__alloc
|
|
call $~lib/rt/purerc/__retain
|
|
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/map/Map<i8,i32>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/util/hash/hash32 (; 48 ;) (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/map/Map<i32,i32>#find (; 49 ;) (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 $0
|
|
loop $continue|0
|
|
local.get $0
|
|
if
|
|
local.get $0
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
if (result i32)
|
|
i32.const 0
|
|
else
|
|
local.get $0
|
|
i32.load
|
|
local.get $1
|
|
i32.eq
|
|
end
|
|
if
|
|
local.get $0
|
|
return
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
i32.const -2
|
|
i32.and
|
|
local.set $0
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#has (; 50 ;) (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/map/Map<i32,i32>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#rehash (; 51 ;) (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 $2
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $2
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $6
|
|
i32.const 12
|
|
i32.mul
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $3
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 12
|
|
i32.mul
|
|
i32.add
|
|
local.set $7
|
|
local.get $5
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $3
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $3
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $2
|
|
local.get $3
|
|
i32.load
|
|
i32.store
|
|
local.get $2
|
|
local.get $3
|
|
i32.load offset=4
|
|
i32.store offset=4
|
|
local.get $2
|
|
local.get $3
|
|
i32.load
|
|
call $~lib/util/hash/hash32
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $4
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $8
|
|
local.get $2
|
|
i32.store
|
|
local.get $2
|
|
i32.const 12
|
|
i32.add
|
|
local.set $2
|
|
end
|
|
local.get $3
|
|
i32.const 12
|
|
i32.add
|
|
local.set $3
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
local.get $4
|
|
local.get $0
|
|
i32.load
|
|
call $~lib/rt/purerc/__retainRelease
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retainRelease
|
|
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
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
local.get $5
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#set (; 52 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
call $~lib/util/hash/hash32
|
|
local.tee $5
|
|
call $~lib/map/Map<i32,i32>#find
|
|
local.tee $3
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
else
|
|
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/map/Map<i32,i32>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retain
|
|
local.set $4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $3
|
|
i32.const 12
|
|
i32.mul
|
|
local.get $4
|
|
i32.add
|
|
local.tee $3
|
|
local.get $1
|
|
i32.store
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $3
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $5
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $3
|
|
i32.store
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
end
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#get (; 53 ;) (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/map/Map<i32,i32>#find
|
|
local.tee $0
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#delete (; 54 ;) (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/map/Map<i32,i32>#find
|
|
local.tee $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $1
|
|
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 $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
|
|
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
|
|
i32.const 0
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
call $~lib/map/Map<i32,i32>#rehash
|
|
end
|
|
)
|
|
(func $std/map/testNumeric<i32,i32> (; 55 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/map/Map<i32,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/map/Map<i32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 6
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i32,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#get
|
|
local.get $0
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 9
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 11
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 15
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#get
|
|
local.get $0
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 20
|
|
i32.add
|
|
call $~lib/map/Map<i32,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#get
|
|
local.get $0
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 19
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 21
|
|
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/map/Map<i32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 25
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#get
|
|
local.get $0
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 28
|
|
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 232
|
|
i32.const 30
|
|
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/map/Map<i32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i32,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 38
|
|
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 232
|
|
i32.const 40
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/map/Map<i8,i32>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 44
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<u32,i32>#constructor (; 56 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
i32.const 22
|
|
call $~lib/rt/tlsf/__alloc
|
|
call $~lib/rt/purerc/__retain
|
|
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/map/Map<i8,i32>#clear
|
|
local.get $0
|
|
)
|
|
(func $std/map/testNumeric<u32,i32> (; 57 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
call $~lib/map/Map<u32,i32>#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/map/Map<i32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 6
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i32,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#get
|
|
local.get $0
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 9
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 11
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i32.const 100
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 15
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#get
|
|
local.get $0
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 20
|
|
i32.add
|
|
call $~lib/map/Map<i32,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#get
|
|
local.get $0
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 19
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 21
|
|
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/map/Map<i32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 25
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#get
|
|
local.get $0
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 28
|
|
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 232
|
|
i32.const 30
|
|
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/map/Map<i32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i32,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 38
|
|
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 232
|
|
i32.const 40
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/map/Map<i8,i32>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 44
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#clear (; 58 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
local.get $0
|
|
i32.load
|
|
call $~lib/rt/purerc/__release
|
|
local.get $0
|
|
i32.const 16
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
i32.store
|
|
local.get $0
|
|
i32.const 3
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__release
|
|
local.get $0
|
|
i32.const 64
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
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/map/Map<i64,i32>#constructor (; 59 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
i32.const 23
|
|
call $~lib/rt/tlsf/__alloc
|
|
call $~lib/rt/purerc/__retain
|
|
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/map/Map<i64,i32>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/util/hash/hash64 (; 60 ;) (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/map/Map<i64,i32>#find (; 61 ;) (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 $0
|
|
loop $continue|0
|
|
local.get $0
|
|
if
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.const 1
|
|
i32.and
|
|
if (result i32)
|
|
i32.const 0
|
|
else
|
|
local.get $0
|
|
i64.load
|
|
local.get $1
|
|
i64.eq
|
|
end
|
|
if
|
|
local.get $0
|
|
return
|
|
end
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.const -2
|
|
i32.and
|
|
local.set $0
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#has (; 62 ;) (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/map/Map<i64,i32>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#rehash (; 63 ;) (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 $2
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $2
|
|
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 $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $3
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 4
|
|
i32.shl
|
|
i32.add
|
|
local.set $7
|
|
local.get $5
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $3
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $3
|
|
i32.load offset=12
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $2
|
|
local.get $3
|
|
i64.load
|
|
i64.store
|
|
local.get $2
|
|
local.get $3
|
|
i32.load offset=8
|
|
i32.store offset=8
|
|
local.get $2
|
|
local.get $3
|
|
i64.load
|
|
call $~lib/util/hash/hash64
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $4
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=12
|
|
local.get $8
|
|
local.get $2
|
|
i32.store
|
|
local.get $2
|
|
i32.const 16
|
|
i32.add
|
|
local.set $2
|
|
end
|
|
local.get $3
|
|
i32.const 16
|
|
i32.add
|
|
local.set $3
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
local.get $4
|
|
local.get $0
|
|
i32.load
|
|
call $~lib/rt/purerc/__retainRelease
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retainRelease
|
|
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
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
local.get $5
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#set (; 64 ;) (type $FUNCSIG$viji) (param $0 i32) (param $1 i64) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
call $~lib/util/hash/hash64
|
|
local.tee $5
|
|
call $~lib/map/Map<i64,i32>#find
|
|
local.tee $3
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=8
|
|
else
|
|
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/map/Map<i64,i32>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retain
|
|
local.set $4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $3
|
|
i32.const 4
|
|
i32.shl
|
|
local.get $4
|
|
i32.add
|
|
local.tee $3
|
|
local.get $1
|
|
i64.store
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $3
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $5
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $3
|
|
i32.store
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
end
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#get (; 65 ;) (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/map/Map<i64,i32>#find
|
|
local.tee $0
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=8
|
|
else
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#delete (; 66 ;) (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/map/Map<i64,i32>#find
|
|
local.tee $2
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $2
|
|
local.get $2
|
|
i32.load offset=12
|
|
i32.const 1
|
|
i32.or
|
|
i32.store offset=12
|
|
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
|
|
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
|
|
i32.const 0
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $3
|
|
call $~lib/map/Map<i64,i32>#rehash
|
|
end
|
|
)
|
|
(func $std/map/testNumeric<i64,i32> (; 67 ;) (type $FUNCSIG$v)
|
|
(local $0 i64)
|
|
(local $1 i32)
|
|
call $~lib/map/Map<i64,i32>#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/map/Map<i64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 6
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i64,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#get
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 9
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 11
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i64.const 0
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i64.const 100
|
|
i64.lt_s
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 15
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#get
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 20
|
|
i32.add
|
|
call $~lib/map/Map<i64,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#get
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 19
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|1
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 21
|
|
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/map/Map<i64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 25
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#get
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 28
|
|
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 232
|
|
i32.const 30
|
|
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/map/Map<i64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i64,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 38
|
|
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 232
|
|
i32.const 40
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/map/Map<i64,i32>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 44
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<u64,i32>#constructor (; 68 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
i32.const 24
|
|
call $~lib/rt/tlsf/__alloc
|
|
call $~lib/rt/purerc/__retain
|
|
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/map/Map<i64,i32>#clear
|
|
local.get $0
|
|
)
|
|
(func $std/map/testNumeric<u64,i32> (; 69 ;) (type $FUNCSIG$v)
|
|
(local $0 i64)
|
|
(local $1 i32)
|
|
call $~lib/map/Map<u64,i32>#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/map/Map<i64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 6
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i64,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#get
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 9
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 11
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
i64.const 0
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
i64.const 100
|
|
i64.lt_u
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 15
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#get
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 20
|
|
i32.add
|
|
call $~lib/map/Map<i64,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#get
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 19
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
i64.const 1
|
|
i64.add
|
|
local.set $0
|
|
br $repeat|1
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 21
|
|
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/map/Map<i64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 25
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#get
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 28
|
|
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 232
|
|
i32.const 30
|
|
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/map/Map<i64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.wrap_i64
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<i64,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<i64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 38
|
|
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 232
|
|
i32.const 40
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/map/Map<i64,i32>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 44
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#constructor (; 70 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
i32.const 25
|
|
call $~lib/rt/tlsf/__alloc
|
|
call $~lib/rt/purerc/__retain
|
|
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/map/Map<i8,i32>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#find (; 71 ;) (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 $0
|
|
loop $continue|0
|
|
local.get $0
|
|
if
|
|
local.get $0
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
if (result i32)
|
|
i32.const 0
|
|
else
|
|
local.get $0
|
|
f32.load
|
|
local.get $1
|
|
f32.eq
|
|
end
|
|
if
|
|
local.get $0
|
|
return
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
i32.const -2
|
|
i32.and
|
|
local.set $0
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#has (; 72 ;) (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/map/Map<f32,i32>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#rehash (; 73 ;) (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 $2
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $2
|
|
f64.convert_i32_s
|
|
f64.const 2.6666666666666665
|
|
f64.mul
|
|
i32.trunc_f64_s
|
|
local.tee $6
|
|
i32.const 12
|
|
i32.mul
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $3
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 12
|
|
i32.mul
|
|
i32.add
|
|
local.set $7
|
|
local.get $5
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $3
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $3
|
|
i32.load offset=8
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $2
|
|
local.get $3
|
|
f32.load
|
|
f32.store
|
|
local.get $2
|
|
local.get $3
|
|
i32.load offset=4
|
|
i32.store offset=4
|
|
local.get $2
|
|
local.get $3
|
|
f32.load
|
|
i32.reinterpret_f32
|
|
call $~lib/util/hash/hash32
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $4
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $8
|
|
local.get $2
|
|
i32.store
|
|
local.get $2
|
|
i32.const 12
|
|
i32.add
|
|
local.set $2
|
|
end
|
|
local.get $3
|
|
i32.const 12
|
|
i32.add
|
|
local.set $3
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
local.get $4
|
|
local.get $0
|
|
i32.load
|
|
call $~lib/rt/purerc/__retainRelease
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retainRelease
|
|
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
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
local.get $5
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#set (; 74 ;) (type $FUNCSIG$vifi) (param $0 i32) (param $1 f32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i32.reinterpret_f32
|
|
call $~lib/util/hash/hash32
|
|
local.tee $5
|
|
call $~lib/map/Map<f32,i32>#find
|
|
local.tee $3
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
else
|
|
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/map/Map<f32,i32>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retain
|
|
local.set $4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $3
|
|
i32.const 12
|
|
i32.mul
|
|
local.get $4
|
|
i32.add
|
|
local.tee $3
|
|
local.get $1
|
|
f32.store
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $3
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $5
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $3
|
|
i32.store
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
end
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#get (; 75 ;) (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/map/Map<f32,i32>#find
|
|
local.tee $0
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
else
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#delete (; 76 ;) (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/map/Map<f32,i32>#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
|
|
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
|
|
i32.const 0
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $3
|
|
call $~lib/map/Map<f32,i32>#rehash
|
|
end
|
|
)
|
|
(func $std/map/testNumeric<f32,i32> (; 77 ;) (type $FUNCSIG$v)
|
|
(local $0 f32)
|
|
(local $1 i32)
|
|
call $~lib/map/Map<f32,i32>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
f32.const 100
|
|
f32.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 6
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.trunc_f32_s
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<f32,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#get
|
|
local.get $0
|
|
i32.trunc_f32_s
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 9
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
f32.const 1
|
|
f32.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 11
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
f32.const 0
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
f32.const 100
|
|
f32.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 15
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#get
|
|
local.get $0
|
|
i32.trunc_f32_s
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.trunc_f32_s
|
|
i32.const 20
|
|
i32.add
|
|
call $~lib/map/Map<f32,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#get
|
|
local.get $0
|
|
i32.trunc_f32_s
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 19
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
f32.const 1
|
|
f32.add
|
|
local.set $0
|
|
br $repeat|1
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 21
|
|
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/map/Map<f32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 25
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#get
|
|
local.get $0
|
|
i32.trunc_f32_s
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 28
|
|
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 232
|
|
i32.const 30
|
|
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/map/Map<f32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.trunc_f32_s
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<f32,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f32,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 38
|
|
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 232
|
|
i32.const 40
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/map/Map<i8,i32>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 44
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#constructor (; 78 ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
i32.const 24
|
|
i32.const 26
|
|
call $~lib/rt/tlsf/__alloc
|
|
call $~lib/rt/purerc/__retain
|
|
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/map/Map<i64,i32>#clear
|
|
local.get $0
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#find (; 79 ;) (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 $0
|
|
loop $continue|0
|
|
local.get $0
|
|
if
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.const 1
|
|
i32.and
|
|
if (result i32)
|
|
i32.const 0
|
|
else
|
|
local.get $0
|
|
f64.load
|
|
local.get $1
|
|
f64.eq
|
|
end
|
|
if
|
|
local.get $0
|
|
return
|
|
end
|
|
local.get $0
|
|
i32.load offset=12
|
|
i32.const -2
|
|
i32.and
|
|
local.set $0
|
|
br $continue|0
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#has (; 80 ;) (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/map/Map<f64,i32>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#rehash (; 81 ;) (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 $2
|
|
i32.const 2
|
|
i32.shl
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
local.set $4
|
|
local.get $2
|
|
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 $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.tee $3
|
|
local.get $0
|
|
i32.load offset=16
|
|
i32.const 4
|
|
i32.shl
|
|
i32.add
|
|
local.set $7
|
|
local.get $5
|
|
local.set $2
|
|
loop $continue|0
|
|
local.get $3
|
|
local.get $7
|
|
i32.ne
|
|
if
|
|
local.get $3
|
|
i32.load offset=12
|
|
i32.const 1
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $2
|
|
local.get $3
|
|
f64.load
|
|
f64.store
|
|
local.get $2
|
|
local.get $3
|
|
i32.load offset=8
|
|
i32.store offset=8
|
|
local.get $2
|
|
local.get $3
|
|
f64.load
|
|
i64.reinterpret_f64
|
|
call $~lib/util/hash/hash64
|
|
local.get $1
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
local.get $4
|
|
i32.add
|
|
local.tee $8
|
|
i32.load
|
|
i32.store offset=12
|
|
local.get $8
|
|
local.get $2
|
|
i32.store
|
|
local.get $2
|
|
i32.const 16
|
|
i32.add
|
|
local.set $2
|
|
end
|
|
local.get $3
|
|
i32.const 16
|
|
i32.add
|
|
local.set $3
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
local.get $4
|
|
local.get $0
|
|
i32.load
|
|
call $~lib/rt/purerc/__retainRelease
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
i32.store offset=4
|
|
local.get $0
|
|
local.get $5
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retainRelease
|
|
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
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
local.get $5
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#set (; 82 ;) (type $FUNCSIG$vidi) (param $0 i32) (param $1 f64) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
local.get $0
|
|
local.get $1
|
|
local.get $1
|
|
i64.reinterpret_f64
|
|
call $~lib/util/hash/hash64
|
|
local.tee $5
|
|
call $~lib/map/Map<f64,i32>#find
|
|
local.tee $3
|
|
if
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=8
|
|
else
|
|
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/map/Map<f64,i32>#rehash
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/purerc/__retain
|
|
local.set $4
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=16
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
local.get $3
|
|
i32.const 4
|
|
i32.shl
|
|
local.get $4
|
|
i32.add
|
|
local.tee $3
|
|
local.get $1
|
|
f64.store
|
|
local.get $3
|
|
local.get $2
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
local.get $3
|
|
local.get $0
|
|
i32.load
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.get $5
|
|
i32.and
|
|
i32.const 2
|
|
i32.shl
|
|
i32.add
|
|
local.tee $0
|
|
i32.load
|
|
i32.store offset=12
|
|
local.get $0
|
|
local.get $3
|
|
i32.store
|
|
local.get $4
|
|
call $~lib/rt/purerc/__release
|
|
end
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#get (; 83 ;) (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/map/Map<f64,i32>#find
|
|
local.tee $0
|
|
if (result i32)
|
|
local.get $0
|
|
i32.load offset=8
|
|
else
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#delete (; 84 ;) (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/map/Map<f64,i32>#find
|
|
local.tee $2
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $2
|
|
local.get $2
|
|
i32.load offset=12
|
|
i32.const 1
|
|
i32.or
|
|
i32.store offset=12
|
|
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
|
|
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
|
|
i32.const 0
|
|
end
|
|
if
|
|
local.get $0
|
|
local.get $3
|
|
call $~lib/map/Map<f64,i32>#rehash
|
|
end
|
|
)
|
|
(func $std/map/testNumeric<f64,i32> (; 85 ;) (type $FUNCSIG$v)
|
|
(local $0 f64)
|
|
(local $1 i32)
|
|
call $~lib/map/Map<f64,i32>#constructor
|
|
local.set $1
|
|
loop $repeat|0
|
|
local.get $0
|
|
f64.const 100
|
|
f64.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 6
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.trunc_f64_s
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<f64,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 8
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#get
|
|
local.get $0
|
|
i32.trunc_f64_s
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 9
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
f64.const 1
|
|
f64.add
|
|
local.set $0
|
|
br $repeat|0
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 11
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
f64.const 0
|
|
local.set $0
|
|
loop $repeat|1
|
|
local.get $0
|
|
f64.const 100
|
|
f64.lt
|
|
if
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 15
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#get
|
|
local.get $0
|
|
i32.trunc_f64_s
|
|
i32.const 10
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 16
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.trunc_f64_s
|
|
i32.const 20
|
|
i32.add
|
|
call $~lib/map/Map<f64,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 18
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#get
|
|
local.get $0
|
|
i32.trunc_f64_s
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 19
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
else
|
|
local.get $0
|
|
f64.const 1
|
|
f64.add
|
|
local.set $0
|
|
br $repeat|1
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
local.get $1
|
|
i32.load offset=20
|
|
i32.const 100
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 21
|
|
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/map/Map<f64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 25
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#get
|
|
local.get $0
|
|
i32.trunc_f64_s
|
|
i32.const 20
|
|
i32.add
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 26
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 28
|
|
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 232
|
|
i32.const 30
|
|
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/map/Map<f64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 34
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
local.get $0
|
|
i32.trunc_f64_s
|
|
i32.const 10
|
|
i32.add
|
|
call $~lib/map/Map<f64,i32>#set
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#has
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 36
|
|
i32.const 4
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#delete
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/map/Map<f64,i32>#has
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 38
|
|
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 232
|
|
i32.const 40
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/map/Map<i64,i32>#clear
|
|
local.get $1
|
|
i32.load offset=20
|
|
if
|
|
i32.const 0
|
|
i32.const 232
|
|
i32.const 44
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
call $~lib/rt/purerc/__release
|
|
)
|
|
(func $start (; 86 ;) (type $FUNCSIG$v)
|
|
call $std/map/testNumeric<i8,i32>
|
|
call $std/map/testNumeric<u8,i32>
|
|
call $std/map/testNumeric<i16,i32>
|
|
call $std/map/testNumeric<u16,i32>
|
|
call $std/map/testNumeric<i32,i32>
|
|
call $std/map/testNumeric<u32,i32>
|
|
call $std/map/testNumeric<i64,i32>
|
|
call $std/map/testNumeric<u64,i32>
|
|
call $std/map/testNumeric<f32,i32>
|
|
call $std/map/testNumeric<f64,i32>
|
|
)
|
|
(func $~lib/rt/purerc/increment (; 87 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
(local $1 i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.tee $1
|
|
i32.const -268435456
|
|
i32.and
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
i32.const -268435456
|
|
i32.and
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 272
|
|
i32.const 103
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=4
|
|
local.get $0
|
|
call $~lib/rt/purerc/onIncrement
|
|
local.get $0
|
|
i32.load
|
|
i32.const 1
|
|
i32.and
|
|
if
|
|
i32.const 0
|
|
i32.const 272
|
|
i32.const 106
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/rt/purerc/__retain (; 88 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
local.get $0
|
|
i32.const 640
|
|
i32.gt_u
|
|
if
|
|
local.get $0
|
|
i32.const 16
|
|
i32.sub
|
|
call $~lib/rt/purerc/increment
|
|
end
|
|
local.get $0
|
|
)
|
|
(func $~lib/rt/tlsf/freeBlock (; 89 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
local.get $1
|
|
i32.load
|
|
local.tee $2
|
|
i32.const 1
|
|
i32.and
|
|
if
|
|
i32.const 0
|
|
i32.const 128
|
|
i32.const 530
|
|
i32.const 2
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $2
|
|
i32.const 1
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
local.get $1
|
|
call $~lib/rt/tlsf/insertBlock
|
|
local.get $1
|
|
call $~lib/rt/tlsf/onFree
|
|
)
|
|
(func $~lib/rt/common/__typeinfo (; 90 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
local.get $0
|
|
if (result i32)
|
|
local.get $0
|
|
i32.const 424
|
|
i32.load
|
|
i32.gt_u
|
|
else
|
|
i32.const 1
|
|
end
|
|
if
|
|
i32.const 328
|
|
i32.const 384
|
|
i32.const 55
|
|
i32.const 34
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
i32.const 3
|
|
i32.shl
|
|
i32.const 424
|
|
i32.add
|
|
i32.load
|
|
)
|
|
(func $~lib/memory/memory.copy (; 91 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
block $~lib/util/memory/memmove|inlined.0
|
|
local.get $2
|
|
local.set $3
|
|
local.get $0
|
|
local.get $1
|
|
i32.eq
|
|
br_if $~lib/util/memory/memmove|inlined.0
|
|
local.get $0
|
|
local.get $1
|
|
i32.lt_u
|
|
if
|
|
local.get $1
|
|
i32.const 7
|
|
i32.and
|
|
local.get $0
|
|
i32.const 7
|
|
i32.and
|
|
i32.eq
|
|
if
|
|
loop $continue|0
|
|
local.get $0
|
|
i32.const 7
|
|
i32.and
|
|
if
|
|
local.get $3
|
|
i32.eqz
|
|
br_if $~lib/util/memory/memmove|inlined.0
|
|
local.get $3
|
|
i32.const 1
|
|
i32.sub
|
|
local.set $3
|
|
local.get $0
|
|
local.tee $2
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $2
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
br $continue|0
|
|
end
|
|
end
|
|
loop $continue|1
|
|
local.get $3
|
|
i32.const 8
|
|
i32.ge_u
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i64.load
|
|
i64.store
|
|
local.get $3
|
|
i32.const 8
|
|
i32.sub
|
|
local.set $3
|
|
local.get $0
|
|
i32.const 8
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
i32.const 8
|
|
i32.add
|
|
local.set $1
|
|
br $continue|1
|
|
end
|
|
end
|
|
end
|
|
loop $continue|2
|
|
local.get $3
|
|
if
|
|
local.get $0
|
|
local.tee $2
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $2
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $3
|
|
i32.const 1
|
|
i32.sub
|
|
local.set $3
|
|
br $continue|2
|
|
end
|
|
end
|
|
else
|
|
local.get $1
|
|
i32.const 7
|
|
i32.and
|
|
local.get $0
|
|
i32.const 7
|
|
i32.and
|
|
i32.eq
|
|
if
|
|
loop $continue|3
|
|
local.get $0
|
|
local.get $3
|
|
i32.add
|
|
i32.const 7
|
|
i32.and
|
|
if
|
|
local.get $3
|
|
i32.eqz
|
|
br_if $~lib/util/memory/memmove|inlined.0
|
|
local.get $0
|
|
local.get $3
|
|
i32.const 1
|
|
i32.sub
|
|
local.tee $3
|
|
i32.add
|
|
local.get $1
|
|
local.get $3
|
|
i32.add
|
|
i32.load8_u
|
|
i32.store8
|
|
br $continue|3
|
|
end
|
|
end
|
|
loop $continue|4
|
|
local.get $3
|
|
i32.const 8
|
|
i32.ge_u
|
|
if
|
|
local.get $0
|
|
local.get $3
|
|
i32.const 8
|
|
i32.sub
|
|
local.tee $3
|
|
i32.add
|
|
local.get $1
|
|
local.get $3
|
|
i32.add
|
|
i64.load
|
|
i64.store
|
|
br $continue|4
|
|
end
|
|
end
|
|
end
|
|
loop $continue|5
|
|
local.get $3
|
|
if
|
|
local.get $0
|
|
local.get $3
|
|
i32.const 1
|
|
i32.sub
|
|
local.tee $3
|
|
i32.add
|
|
local.get $1
|
|
local.get $3
|
|
i32.add
|
|
i32.load8_u
|
|
i32.store8
|
|
br $continue|5
|
|
end
|
|
end
|
|
end
|
|
end
|
|
)
|
|
(func $~lib/rt/purerc/growRoots (; 92 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
global.get $~lib/rt/purerc/CUR
|
|
global.get $~lib/rt/purerc/ROOTS
|
|
local.tee $2
|
|
i32.sub
|
|
local.tee $1
|
|
i32.const 1
|
|
i32.shl
|
|
local.tee $0
|
|
i32.const 256
|
|
local.get $0
|
|
i32.const 256
|
|
i32.gt_u
|
|
select
|
|
local.tee $3
|
|
i32.const 0
|
|
call $~lib/rt/tlsf/__alloc
|
|
local.tee $0
|
|
local.get $2
|
|
local.get $1
|
|
call $~lib/memory/memory.copy
|
|
local.get $0
|
|
global.set $~lib/rt/purerc/ROOTS
|
|
local.get $0
|
|
local.get $1
|
|
i32.add
|
|
global.set $~lib/rt/purerc/CUR
|
|
local.get $0
|
|
local.get $3
|
|
i32.add
|
|
global.set $~lib/rt/purerc/END
|
|
)
|
|
(func $~lib/rt/purerc/appendRoot (; 93 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
(local $1 i32)
|
|
global.get $~lib/rt/purerc/CUR
|
|
local.tee $1
|
|
global.get $~lib/rt/purerc/END
|
|
i32.ge_u
|
|
if
|
|
call $~lib/rt/purerc/growRoots
|
|
global.get $~lib/rt/purerc/CUR
|
|
local.set $1
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
i32.store
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
global.set $~lib/rt/purerc/CUR
|
|
)
|
|
(func $~lib/rt/purerc/decrement (; 94 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.tee $2
|
|
i32.const 268435455
|
|
i32.and
|
|
local.set $1
|
|
local.get $0
|
|
call $~lib/rt/purerc/onDecrement
|
|
local.get $0
|
|
i32.load
|
|
i32.const 1
|
|
i32.and
|
|
if
|
|
i32.const 0
|
|
i32.const 272
|
|
i32.const 114
|
|
i32.const 13
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
i32.const 1
|
|
i32.eq
|
|
if
|
|
local.get $0
|
|
i32.const 16
|
|
i32.add
|
|
i32.const 1
|
|
call $~lib/builtins/__visit_members
|
|
local.get $2
|
|
i32.const -2147483648
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
i32.const -2147483648
|
|
i32.store offset=4
|
|
else
|
|
global.get $~lib/rt/tlsf/ROOT
|
|
local.get $0
|
|
call $~lib/rt/tlsf/freeBlock
|
|
end
|
|
else
|
|
local.get $1
|
|
i32.const 0
|
|
i32.le_u
|
|
if
|
|
i32.const 0
|
|
i32.const 272
|
|
i32.const 123
|
|
i32.const 15
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
i32.load offset=8
|
|
call $~lib/rt/common/__typeinfo
|
|
i32.const 8
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.sub
|
|
local.get $2
|
|
i32.const -268435456
|
|
i32.and
|
|
i32.or
|
|
i32.store offset=4
|
|
else
|
|
local.get $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.sub
|
|
i32.const -1342177280
|
|
i32.or
|
|
i32.store offset=4
|
|
local.get $2
|
|
i32.const -2147483648
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
call $~lib/rt/purerc/appendRoot
|
|
end
|
|
end
|
|
end
|
|
)
|
|
(func $~lib/rt/purerc/__retainRelease (; 95 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
i32.ne
|
|
if
|
|
local.get $0
|
|
i32.const 640
|
|
i32.gt_u
|
|
if
|
|
local.get $0
|
|
i32.const 16
|
|
i32.sub
|
|
call $~lib/rt/purerc/increment
|
|
end
|
|
local.get $1
|
|
i32.const 640
|
|
i32.gt_u
|
|
if
|
|
local.get $1
|
|
i32.const 16
|
|
i32.sub
|
|
call $~lib/rt/purerc/decrement
|
|
end
|
|
end
|
|
local.get $0
|
|
)
|
|
(func $~lib/rt/purerc/__release (; 96 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
local.get $0
|
|
i32.const 640
|
|
i32.gt_u
|
|
if
|
|
local.get $0
|
|
i32.const 16
|
|
i32.sub
|
|
call $~lib/rt/purerc/decrement
|
|
end
|
|
)
|
|
(func $~lib/rt/purerc/markGray (; 97 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
(local $1 i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.tee $1
|
|
i32.const 1879048192
|
|
i32.and
|
|
i32.const 268435456
|
|
i32.ne
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.const -1879048193
|
|
i32.and
|
|
i32.const 268435456
|
|
i32.or
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.const 16
|
|
i32.add
|
|
i32.const 2
|
|
call $~lib/builtins/__visit_members
|
|
end
|
|
)
|
|
(func $~lib/rt/purerc/scanBlack (; 98 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const -1879048193
|
|
i32.and
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.const 16
|
|
i32.add
|
|
i32.const 4
|
|
call $~lib/builtins/__visit_members
|
|
)
|
|
(func $~lib/rt/purerc/scan (; 99 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
(local $1 i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.tee $1
|
|
i32.const 1879048192
|
|
i32.and
|
|
i32.const 268435456
|
|
i32.eq
|
|
if
|
|
local.get $1
|
|
i32.const 268435455
|
|
i32.and
|
|
i32.const 0
|
|
i32.gt_u
|
|
if
|
|
local.get $0
|
|
call $~lib/rt/purerc/scanBlack
|
|
else
|
|
local.get $0
|
|
local.get $1
|
|
i32.const -1879048193
|
|
i32.and
|
|
i32.const 536870912
|
|
i32.or
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.const 16
|
|
i32.add
|
|
i32.const 3
|
|
call $~lib/builtins/__visit_members
|
|
end
|
|
end
|
|
)
|
|
(func $~lib/rt/purerc/collectWhite (; 100 ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
(local $1 i32)
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.tee $1
|
|
i32.const 1879048192
|
|
i32.and
|
|
i32.const 536870912
|
|
i32.eq
|
|
if (result i32)
|
|
local.get $1
|
|
i32.const -2147483648
|
|
i32.and
|
|
i32.eqz
|
|
else
|
|
i32.const 0
|
|
end
|
|
if
|
|
local.get $0
|
|
i32.const 16
|
|
i32.add
|
|
i32.const 5
|
|
call $~lib/builtins/__visit_members
|
|
end
|
|
global.get $~lib/rt/tlsf/ROOT
|
|
local.get $0
|
|
call $~lib/rt/tlsf/freeBlock
|
|
)
|
|
(func $~lib/rt/purerc/__visit (; 101 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
local.get $0
|
|
i32.const 640
|
|
i32.lt_u
|
|
if
|
|
return
|
|
end
|
|
local.get $0
|
|
i32.const 16
|
|
i32.sub
|
|
local.set $0
|
|
block $break|0
|
|
block $case5|0
|
|
block $case4|0
|
|
block $case3|0
|
|
block $case2|0
|
|
block $case1|0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.ne
|
|
if
|
|
local.get $1
|
|
i32.const 2
|
|
i32.eq
|
|
br_if $case1|0
|
|
block $tablify|0
|
|
local.get $1
|
|
i32.const 3
|
|
i32.sub
|
|
br_table $case2|0 $case3|0 $case4|0 $tablify|0
|
|
end
|
|
br $case5|0
|
|
end
|
|
local.get $0
|
|
call $~lib/rt/purerc/decrement
|
|
br $break|0
|
|
end
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 268435455
|
|
i32.and
|
|
i32.const 0
|
|
i32.le_u
|
|
if
|
|
i32.const 0
|
|
i32.const 272
|
|
i32.const 74
|
|
i32.const 17
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
local.get $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=4
|
|
local.get $0
|
|
call $~lib/rt/purerc/markGray
|
|
br $break|0
|
|
end
|
|
local.get $0
|
|
call $~lib/rt/purerc/scan
|
|
br $break|0
|
|
end
|
|
local.get $0
|
|
i32.load offset=4
|
|
local.tee $1
|
|
i32.const -268435456
|
|
i32.and
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
i32.const -268435456
|
|
i32.and
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 272
|
|
i32.const 85
|
|
i32.const 6
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=4
|
|
local.get $1
|
|
i32.const 1879048192
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
call $~lib/rt/purerc/scanBlack
|
|
end
|
|
br $break|0
|
|
end
|
|
local.get $0
|
|
call $~lib/rt/purerc/collectWhite
|
|
br $break|0
|
|
end
|
|
i32.const 0
|
|
i32.const 272
|
|
i32.const 96
|
|
i32.const 24
|
|
call $~lib/builtins/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#__visit_impl (; 102 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
local.get $0
|
|
i32.load
|
|
local.get $1
|
|
call $~lib/rt/purerc/__visit
|
|
local.get $0
|
|
i32.load offset=8
|
|
local.get $1
|
|
call $~lib/rt/purerc/__visit
|
|
)
|
|
(func $~lib/builtins/__visit_members (; 103 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
block $folding-inner0
|
|
block $switch$1$case$28
|
|
block
|
|
block $switch$1$case$16
|
|
block $switch$1$case$3
|
|
block $switch$1$default
|
|
local.get $0
|
|
i32.const 8
|
|
i32.sub
|
|
i32.load
|
|
i32.const 1
|
|
i32.sub
|
|
br_table $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$3 $switch$1$case$16 $switch$1$case$3 $switch$1$case$3 $folding-inner0 $folding-inner0 $folding-inner0 $folding-inner0 $folding-inner0 $folding-inner0 $folding-inner0 $folding-inner0 $folding-inner0 $switch$1$case$28 $switch$1$default
|
|
end
|
|
unreachable
|
|
end
|
|
return
|
|
end
|
|
local.get $0
|
|
i32.load
|
|
local.tee $0
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
call $~lib/rt/purerc/__visit
|
|
end
|
|
return
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
local.get $0
|
|
local.get $1
|
|
call $~lib/map/Map<i8,i32>#__visit_impl
|
|
return
|
|
end
|
|
local.get $0
|
|
local.get $1
|
|
call $~lib/map/Map<i8,i32>#__visit_impl
|
|
)
|
|
(func $null (; 104 ;) (type $FUNCSIG$v)
|
|
nop
|
|
)
|
|
)
|