mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
9329 lines
154 KiB
Plaintext
9329 lines
154 KiB
Plaintext
(module
|
|
(type $v (func))
|
|
(type $ii (func (param i32) (result i32)))
|
|
(type $iv (func (param i32)))
|
|
(type $iiii (func (param i32 i32 i32) (result i32)))
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
(type $iiiv (func (param i32 i32 i32)))
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
(type $iiv (func (param i32 i32)))
|
|
(type $iIi (func (param i32 i64) (result i32)))
|
|
(type $Ii (func (param i64) (result i32)))
|
|
(type $iIii (func (param i32 i64 i32) (result i32)))
|
|
(type $iIiv (func (param i32 i64 i32)))
|
|
(type $ifi (func (param i32 f32) (result i32)))
|
|
(type $ifii (func (param i32 f32 i32) (result i32)))
|
|
(type $ifiv (func (param i32 f32 i32)))
|
|
(type $iFi (func (param i32 f64) (result i32)))
|
|
(type $iFii (func (param i32 f64 i32) (result i32)))
|
|
(type $iFiv (func (param i32 f64 i32)))
|
|
(type $FUNCSIG$i (func (result i32)))
|
|
(type $FUNCSIG$vii (func (param i32 i32)))
|
|
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
|
(memory $0 1)
|
|
(data (i32.const 8) "\13\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
|
(data (i32.const 56) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
|
(data (i32.const 120) "\n\00\00\00s\00t\00d\00/\00m\00a\00p\00.\00t\00s")
|
|
(export "memory" (memory $0))
|
|
(start $start)
|
|
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 1073741824)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(if
|
|
(i32.gt_u
|
|
(tee_local $2
|
|
(i32.and
|
|
(i32.add
|
|
(i32.add
|
|
(tee_local $1
|
|
(get_global $~lib/allocator/arena/offset)
|
|
)
|
|
(select
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 7)
|
|
)
|
|
(i32.const -8)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(tee_local $3
|
|
(current_memory)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(grow_memory
|
|
(select
|
|
(get_local $3)
|
|
(tee_local $0
|
|
(i32.shr_u
|
|
(i32.and
|
|
(i32.add
|
|
(i32.sub
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const -65536)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $3)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(grow_memory
|
|
(get_local $0)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/allocator/arena/offset
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/memory/memory.allocate (; 2 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
(func $~lib/internal/arraybuffer/computeSize (; 3 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.sub
|
|
(i32.const 32)
|
|
(i32.clz
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 7)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/arraybuffer/allocateUnsafe (; 4 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 1073741816)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 56)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $1
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/internal/memory/memset (; 5 ;) (; has Stack IR ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 3)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $1)
|
|
(i32.const 6)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $1)
|
|
(i32.const 8)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store
|
|
(tee_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(tee_local $2
|
|
(i32.and
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(tee_local $1
|
|
(i32.and
|
|
(i32.sub
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(i32.const -4)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $1)
|
|
(i32.const 8)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $1)
|
|
(i32.const 24)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 20)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 28)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 20)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(tee_local $2
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.sub
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.const 32)
|
|
)
|
|
(block
|
|
(i64.store
|
|
(get_local $0)
|
|
(i64.const 0)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i64.const 0)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i64.const 0)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(i64.const 0)
|
|
)
|
|
(set_local $1
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 32)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 32)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 6 ;) (; has Stack IR ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 1073741816)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 16)
|
|
(i32.const 40)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#clear (; 7 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
|
(i32.store
|
|
(get_local $0)
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.const 16)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.const 48)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#constructor (; 8 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(i32.store
|
|
(tee_local $0
|
|
(call $~lib/memory/memory.allocate)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#clear
|
|
(get_local $0)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/internal/hash/hash8 (; 9 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(i32.mul
|
|
(i32.xor
|
|
(get_local $0)
|
|
(i32.const -2128831035)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#find (; 10 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(if
|
|
(tee_local $0
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.eq
|
|
(i32.load8_u
|
|
(get_local $2)
|
|
)
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#has (; 11 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash8
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#rehash (; 12 ;) (; has Stack IR ;) (type $iiv) (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)
|
|
(set_local $4
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.mul
|
|
(tee_local $7
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(get_local $2)
|
|
)
|
|
(f64.const 2.6666666666666665)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.mul
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store8
|
|
(get_local $2)
|
|
(i32.load8_s
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(i32.and
|
|
(tee_local $6
|
|
(call $~lib/internal/hash/hash8
|
|
(i32.load8_s
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#set (; 13 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(tee_local $3
|
|
(call $~lib/map/Map<i8,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(tee_local $5
|
|
(call $~lib/internal/hash/hash8
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#rehash
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.or
|
|
(i32.shl
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.mul
|
|
(get_local $4)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(i32.load offset=8
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#get (; 14 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i8,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash8
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#get:size (; 15 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i8,i32>#delete (; 16 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i8,i32>#find
|
|
(tee_local $2
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
(tee_local $0
|
|
(call $~lib/internal/hash/hash8
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $2)
|
|
(i32.sub
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $0
|
|
(i32.ge_u
|
|
(i32.add
|
|
(tee_local $1
|
|
(i32.shr_u
|
|
(i32.load offset=4
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(select
|
|
(i32.const 4)
|
|
(tee_local $0
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.gt_u
|
|
(i32.const 4)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(call $~lib/map/Map<i8,i32>#rehash
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/map/test<i8,i32> (; 17 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/map/Map<i8,i32>#constructor)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 8)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 10)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 11)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 13)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 17)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 18)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 20)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 21)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 27)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i8,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 32)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|3
|
|
(br_if $break|3
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 36)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 38)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i8,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 40)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 42)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#clear
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 46)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#has (; 18 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash8
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#rehash (; 19 ;) (; has Stack IR ;) (type $iiv) (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)
|
|
(set_local $4
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.mul
|
|
(tee_local $7
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(get_local $2)
|
|
)
|
|
(f64.const 2.6666666666666665)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.mul
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store8
|
|
(get_local $2)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(i32.and
|
|
(tee_local $6
|
|
(call $~lib/internal/hash/hash8
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#set (; 20 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(tee_local $3
|
|
(call $~lib/map/Map<i8,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(tee_local $5
|
|
(call $~lib/internal/hash/hash8
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<u8,i32>#rehash
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.or
|
|
(i32.shl
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.mul
|
|
(get_local $4)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(i32.load offset=8
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#get (; 21 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i8,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash8
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<u8,i32>#delete (; 22 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i8,i32>#find
|
|
(tee_local $2
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
(tee_local $0
|
|
(call $~lib/internal/hash/hash8
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $2)
|
|
(i32.sub
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $0
|
|
(i32.ge_u
|
|
(i32.add
|
|
(tee_local $1
|
|
(i32.shr_u
|
|
(i32.load offset=4
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(select
|
|
(i32.const 4)
|
|
(tee_local $0
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.gt_u
|
|
(i32.const 4)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(call $~lib/map/Map<u8,i32>#rehash
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/map/test<u8,i32> (; 23 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/map/Map<i8,i32>#constructor)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<u8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 8)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<u8,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<u8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 10)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<u8,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 11)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 13)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<u8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 17)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<u8,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 18)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<u8,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<u8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 20)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<u8,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 21)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<u8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 27)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<u8,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<u8,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<u8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 32)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|3
|
|
(br_if $break|3
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<u8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 36)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<u8,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<u8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 38)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<u8,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<u8,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 40)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 42)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#clear
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 46)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/hash/hash16 (; 24 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const -2128831035)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.shr_u
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#find (; 25 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(if
|
|
(tee_local $0
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.eq
|
|
(i32.load16_u
|
|
(get_local $2)
|
|
)
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 65535)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#has (; 26 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.ne
|
|
(call $~lib/map/Map<i16,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash16
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#rehash (; 27 ;) (; has Stack IR ;) (type $iiv) (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)
|
|
(set_local $4
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.mul
|
|
(tee_local $7
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(get_local $2)
|
|
)
|
|
(f64.const 2.6666666666666665)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.mul
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store16
|
|
(get_local $2)
|
|
(i32.load16_s
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(i32.and
|
|
(tee_local $6
|
|
(call $~lib/internal/hash/hash16
|
|
(i32.load16_s
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#set (; 28 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(tee_local $3
|
|
(call $~lib/map/Map<i16,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(tee_local $5
|
|
(call $~lib/internal/hash/hash16
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i16,i32>#rehash
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.or
|
|
(i32.shl
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store16
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.mul
|
|
(get_local $4)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(i32.load offset=8
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#get (; 29 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i16,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash16
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i16,i32>#delete (; 30 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i16,i32>#find
|
|
(tee_local $2
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
(tee_local $0
|
|
(call $~lib/internal/hash/hash16
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $2)
|
|
(i32.sub
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $0
|
|
(i32.ge_u
|
|
(i32.add
|
|
(tee_local $1
|
|
(i32.shr_u
|
|
(i32.load offset=4
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(select
|
|
(i32.const 4)
|
|
(tee_local $0
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.gt_u
|
|
(i32.const 4)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(call $~lib/map/Map<i16,i32>#rehash
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/map/test<i16,i32> (; 31 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/map/Map<i8,i32>#constructor)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 8)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i16,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 10)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i16,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 11)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 13)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 17)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i16,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 18)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i16,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 20)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i16,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 21)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 27)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i16,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i16,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 32)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|3
|
|
(br_if $break|3
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 36)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i16,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 38)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i16,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 40)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 42)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#clear
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 46)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#has (; 32 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.ne
|
|
(call $~lib/map/Map<i16,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash16
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 65535)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#rehash (; 33 ;) (; has Stack IR ;) (type $iiv) (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)
|
|
(set_local $4
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.mul
|
|
(tee_local $7
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(get_local $2)
|
|
)
|
|
(f64.const 2.6666666666666665)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.mul
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store16
|
|
(get_local $2)
|
|
(i32.load16_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(i32.and
|
|
(tee_local $6
|
|
(call $~lib/internal/hash/hash16
|
|
(i32.load16_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#set (; 34 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(tee_local $3
|
|
(call $~lib/map/Map<i16,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(tee_local $5
|
|
(call $~lib/internal/hash/hash16
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 65535)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<u16,i32>#rehash
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.or
|
|
(i32.shl
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store16
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.mul
|
|
(get_local $4)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(i32.load offset=8
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#get (; 35 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i16,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash16
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 65535)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<u16,i32>#delete (; 36 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i16,i32>#find
|
|
(tee_local $2
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
(tee_local $0
|
|
(call $~lib/internal/hash/hash16
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 65535)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $2)
|
|
(i32.sub
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $0
|
|
(i32.ge_u
|
|
(i32.add
|
|
(tee_local $1
|
|
(i32.shr_u
|
|
(i32.load offset=4
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(select
|
|
(i32.const 4)
|
|
(tee_local $0
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.gt_u
|
|
(i32.const 4)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(call $~lib/map/Map<u16,i32>#rehash
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/map/test<u16,i32> (; 37 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/map/Map<i8,i32>#constructor)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<u16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 8)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<u16,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<u16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 10)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<u16,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 11)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 13)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<u16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 17)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<u16,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 18)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<u16,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<u16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 20)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<u16,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 21)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<u16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 27)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<u16,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<u16,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<u16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 32)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|3
|
|
(br_if $break|3
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<u16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 36)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<u16,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<u16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 38)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<u16,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<u16,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 40)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 42)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#clear
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 46)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/hash/hash32 (; 38 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const -2128831035)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.shr_u
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#find (; 39 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(if
|
|
(tee_local $0
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.eq
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#has (; 40 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.ne
|
|
(call $~lib/map/Map<i32,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#rehash (; 41 ;) (; has Stack IR ;) (type $iiv) (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)
|
|
(set_local $4
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.mul
|
|
(tee_local $7
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(get_local $2)
|
|
)
|
|
(f64.const 2.6666666666666665)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.mul
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(get_local $2)
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(i32.and
|
|
(tee_local $6
|
|
(call $~lib/internal/hash/hash32
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#set (; 42 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(tee_local $3
|
|
(call $~lib/map/Map<i32,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(tee_local $5
|
|
(call $~lib/internal/hash/hash32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i32,i32>#rehash
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.or
|
|
(i32.shl
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.mul
|
|
(get_local $4)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(i32.load offset=8
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#get (; 43 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i32,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i32,i32>#delete (; 44 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i32,i32>#find
|
|
(tee_local $2
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
(tee_local $0
|
|
(call $~lib/internal/hash/hash32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $2)
|
|
(i32.sub
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $0
|
|
(i32.ge_u
|
|
(i32.add
|
|
(tee_local $1
|
|
(i32.shr_u
|
|
(i32.load offset=4
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(select
|
|
(i32.const 4)
|
|
(tee_local $0
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.gt_u
|
|
(i32.const 4)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(call $~lib/map/Map<i32,i32>#rehash
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/map/test<i32,i32> (; 45 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/map/Map<i8,i32>#constructor)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 8)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i32,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 10)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 11)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 13)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 17)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 18)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i32,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 20)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 21)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 27)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i32,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 32)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|3
|
|
(br_if $break|3
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 36)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i32,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 38)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i32,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 40)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 42)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#clear
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 46)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $std/map/test<u32,i32> (; 46 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/map/Map<i8,i32>#constructor)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 8)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i32,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 10)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 11)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 13)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 17)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 18)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i32,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 20)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 21)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 27)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i32,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 32)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|3
|
|
(br_if $break|3
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 36)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i32,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 38)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i32,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 40)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 42)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#clear
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 46)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#clear (; 47 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
|
(i32.store
|
|
(get_local $0)
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.const 16)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.const 64)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#constructor (; 48 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(i32.store
|
|
(tee_local $0
|
|
(call $~lib/memory/memory.allocate)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#clear
|
|
(get_local $0)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/internal/hash/hash64 (; 49 ;) (; has Stack IR ;) (type $Ii) (param $0 i64) (result i32)
|
|
(local $1 i32)
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.and
|
|
(tee_local $1
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const -2128831035)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(get_local $1)
|
|
(i32.const 8)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.shr_u
|
|
(get_local $1)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.and
|
|
(tee_local $1
|
|
(i32.wrap/i64
|
|
(i64.shr_u
|
|
(get_local $0)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(get_local $1)
|
|
(i32.const 8)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.shr_u
|
|
(get_local $1)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#find (; 50 ;) (; has Stack IR ;) (type $iIii) (param $0 i32) (param $1 i64) (param $2 i32) (result i32)
|
|
(set_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(if
|
|
(tee_local $0
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.eq
|
|
(i64.load
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.and
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#has (; 51 ;) (; has Stack IR ;) (type $iIi) (param $0 i32) (param $1 i64) (result i32)
|
|
(i32.ne
|
|
(call $~lib/map/Map<i64,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#rehash (; 52 ;) (; has Stack IR ;) (type $iiv) (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)
|
|
(set_local $4
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.shl
|
|
(tee_local $7
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(get_local $2)
|
|
)
|
|
(f64.const 2.6666666666666665)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=12
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(i64.store
|
|
(get_local $2)
|
|
(i64.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(i32.and
|
|
(tee_local $6
|
|
(call $~lib/internal/hash/hash64
|
|
(i64.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#set (; 53 ;) (; has Stack IR ;) (type $iIiv) (param $0 i32) (param $1 i64) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(tee_local $3
|
|
(call $~lib/map/Map<i64,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(tee_local $5
|
|
(call $~lib/internal/hash/hash64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#rehash
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.or
|
|
(i32.shl
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i64.store
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $3)
|
|
(i32.load offset=8
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#get (; 54 ;) (; has Stack IR ;) (type $iIi) (param $0 i32) (param $1 i64) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i64,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<i64,i32>#delete (; 55 ;) (; has Stack IR ;) (type $iIi) (param $0 i32) (param $1 i64) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $0
|
|
(call $~lib/map/Map<i64,i32>#find
|
|
(tee_local $2
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
(tee_local $0
|
|
(call $~lib/internal/hash/hash64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $2)
|
|
(i32.sub
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $0
|
|
(i32.ge_u
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.shr_u
|
|
(i32.load offset=4
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(select
|
|
(i32.const 4)
|
|
(tee_local $0
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.gt_u
|
|
(i32.const 4)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(call $~lib/map/Map<i64,i32>#rehash
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/map/test<i64,i32> (; 56 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 i64)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/map/Map<i64,i32>#constructor)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i64.ge_s
|
|
(get_local $0)
|
|
(i64.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 8)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 10)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 11)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i64.add
|
|
(get_local $0)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 13)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $0
|
|
(i64.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i64.ge_s
|
|
(get_local $0)
|
|
(i64.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 17)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 18)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 20)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 21)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i64.add
|
|
(get_local $0)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $0
|
|
(i64.const 0)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i64.ge_s
|
|
(get_local $0)
|
|
(i64.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 27)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i64,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i64.add
|
|
(get_local $0)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 32)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(set_local $0
|
|
(i64.const 0)
|
|
)
|
|
(loop $repeat|3
|
|
(br_if $break|3
|
|
(i64.ge_s
|
|
(get_local $0)
|
|
(i64.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 36)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 38)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i64,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 40)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i64.add
|
|
(get_local $0)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 42)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#clear
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 46)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $std/map/test<u64,i32> (; 57 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 i64)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/map/Map<i64,i32>#constructor)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i64.ge_u
|
|
(get_local $0)
|
|
(i64.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 8)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 10)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 11)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i64.add
|
|
(get_local $0)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 13)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $0
|
|
(i64.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i64.ge_u
|
|
(get_local $0)
|
|
(i64.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 17)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 18)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 20)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 21)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i64.add
|
|
(get_local $0)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $0
|
|
(i64.const 0)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i64.ge_u
|
|
(get_local $0)
|
|
(i64.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 27)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i64,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i64.add
|
|
(get_local $0)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 32)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(set_local $0
|
|
(i64.const 0)
|
|
)
|
|
(loop $repeat|3
|
|
(br_if $break|3
|
|
(i64.ge_u
|
|
(get_local $0)
|
|
(i64.const 50)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 36)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 38)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<i64,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 40)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i64.add
|
|
(get_local $0)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 42)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#clear
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 46)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#find (; 58 ;) (; has Stack IR ;) (type $ifii) (param $0 i32) (param $1 f32) (param $2 i32) (result i32)
|
|
(set_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(if
|
|
(tee_local $0
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(f32.eq
|
|
(f32.load
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#has (; 59 ;) (; has Stack IR ;) (type $ifi) (param $0 i32) (param $1 f32) (result i32)
|
|
(i32.ne
|
|
(call $~lib/map/Map<f32,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash32
|
|
(i32.reinterpret/f32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#rehash (; 60 ;) (; has Stack IR ;) (type $iiv) (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)
|
|
(set_local $4
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.mul
|
|
(tee_local $7
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(get_local $2)
|
|
)
|
|
(f64.const 2.6666666666666665)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.mul
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(f32.store
|
|
(get_local $2)
|
|
(f32.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(i32.and
|
|
(tee_local $6
|
|
(call $~lib/internal/hash/hash32
|
|
(i32.reinterpret/f32
|
|
(f32.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#set (; 61 ;) (; has Stack IR ;) (type $ifiv) (param $0 i32) (param $1 f32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(tee_local $3
|
|
(call $~lib/map/Map<f32,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(tee_local $5
|
|
(call $~lib/internal/hash/hash32
|
|
(i32.reinterpret/f32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<f32,i32>#rehash
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.or
|
|
(i32.shl
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(f32.store
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.mul
|
|
(get_local $4)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(i32.load offset=8
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#get (; 62 ;) (; has Stack IR ;) (type $ifi) (param $0 i32) (param $1 f32) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $0
|
|
(call $~lib/map/Map<f32,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash32
|
|
(i32.reinterpret/f32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<f32,i32>#delete (; 63 ;) (; has Stack IR ;) (type $ifi) (param $0 i32) (param $1 f32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $0
|
|
(call $~lib/map/Map<f32,i32>#find
|
|
(tee_local $2
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
(tee_local $0
|
|
(call $~lib/internal/hash/hash32
|
|
(i32.reinterpret/f32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $2)
|
|
(i32.sub
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $0
|
|
(i32.ge_u
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.shr_u
|
|
(i32.load offset=4
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(select
|
|
(i32.const 4)
|
|
(tee_local $0
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.gt_u
|
|
(i32.const 4)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(call $~lib/map/Map<f32,i32>#rehash
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/map/test<f32,i32> (; 64 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 f32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/map/Map<i8,i32>#constructor)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(f32.lt
|
|
(get_local $0)
|
|
(f32.const 100)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<f32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 8)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<f32,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.trunc_s/f32
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<f32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 10)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<f32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.trunc_s/f32
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 11)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(f32.add
|
|
(get_local $0)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 13)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $0
|
|
(f32.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i32.eqz
|
|
(f32.lt
|
|
(get_local $0)
|
|
(f32.const 100)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<f32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 17)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<f32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.trunc_s/f32
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 18)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<f32,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.trunc_s/f32
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<f32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 20)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<f32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.trunc_s/f32
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 21)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(f32.add
|
|
(get_local $0)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $0
|
|
(f32.const 0)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.eqz
|
|
(f32.lt
|
|
(get_local $0)
|
|
(f32.const 50)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<f32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 27)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<f32,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.trunc_s/f32
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<f32,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<f32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(f32.add
|
|
(get_local $0)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 32)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(set_local $0
|
|
(f32.const 0)
|
|
)
|
|
(loop $repeat|3
|
|
(br_if $break|3
|
|
(i32.eqz
|
|
(f32.lt
|
|
(get_local $0)
|
|
(f32.const 50)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<f32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 36)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<f32,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.trunc_s/f32
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<f32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 38)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<f32,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<f32,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 40)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(f32.add
|
|
(get_local $0)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 42)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i8,i32>#clear
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 46)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#find (; 65 ;) (; has Stack IR ;) (type $iFii) (param $0 i32) (param $1 f64) (param $2 i32) (result i32)
|
|
(set_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(if
|
|
(tee_local $0
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(f64.eq
|
|
(f64.load
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.and
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#has (; 66 ;) (; has Stack IR ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
|
|
(i32.ne
|
|
(call $~lib/map/Map<f64,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash64
|
|
(i64.reinterpret/f64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#rehash (; 67 ;) (; has Stack IR ;) (type $iiv) (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)
|
|
(set_local $4
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.shl
|
|
(tee_local $7
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(get_local $2)
|
|
)
|
|
(f64.const 2.6666666666666665)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=12
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(f64.store
|
|
(get_local $2)
|
|
(f64.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(i32.and
|
|
(tee_local $6
|
|
(call $~lib/internal/hash/hash64
|
|
(i64.reinterpret/f64
|
|
(f64.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#set (; 68 ;) (; has Stack IR ;) (type $iFiv) (param $0 i32) (param $1 f64) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(tee_local $3
|
|
(call $~lib/map/Map<f64,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(tee_local $5
|
|
(call $~lib/internal/hash/hash64
|
|
(i64.reinterpret/f64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<f64,i32>#rehash
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.or
|
|
(i32.shl
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(f64.store
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $3)
|
|
(i32.load offset=8
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#get (; 69 ;) (; has Stack IR ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $0
|
|
(call $~lib/map/Map<f64,i32>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash64
|
|
(i64.reinterpret/f64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<f64,i32>#delete (; 70 ;) (; has Stack IR ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $0
|
|
(call $~lib/map/Map<f64,i32>#find
|
|
(tee_local $2
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
(tee_local $0
|
|
(call $~lib/internal/hash/hash64
|
|
(i64.reinterpret/f64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $2)
|
|
(i32.sub
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $0
|
|
(i32.ge_u
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.shr_u
|
|
(i32.load offset=4
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(select
|
|
(i32.const 4)
|
|
(tee_local $0
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.gt_u
|
|
(i32.const 4)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $2)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(call $~lib/map/Map<f64,i32>#rehash
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/map/test<f64,i32> (; 71 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 f64)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/map/Map<i64,i32>#constructor)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(f64.lt
|
|
(get_local $0)
|
|
(f64.const 100)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<f64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 8)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<f64,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.trunc_s/f64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<f64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 10)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<f64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.trunc_s/f64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 11)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(f64.add
|
|
(get_local $0)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 13)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $0
|
|
(f64.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i32.eqz
|
|
(f64.lt
|
|
(get_local $0)
|
|
(f64.const 100)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<f64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 17)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<f64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.trunc_s/f64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 18)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<f64,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.trunc_s/f64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<f64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 20)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<f64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.trunc_s/f64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 21)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(f64.add
|
|
(get_local $0)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $0
|
|
(f64.const 0)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.eqz
|
|
(f64.lt
|
|
(get_local $0)
|
|
(f64.const 50)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<f64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 27)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<f64,i32>#get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.add
|
|
(i32.trunc_s/f64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<f64,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<f64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(f64.add
|
|
(get_local $0)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 32)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(set_local $0
|
|
(f64.const 0)
|
|
)
|
|
(loop $repeat|3
|
|
(br_if $break|3
|
|
(i32.eqz
|
|
(f64.lt
|
|
(get_local $0)
|
|
(f64.const 50)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<f64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 36)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<f64,i32>#set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.trunc_s/f64
|
|
(get_local $0)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/map/Map<f64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 38)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/map/Map<f64,i32>#delete
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<f64,i32>#has
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 40)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(f64.add
|
|
(get_local $0)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(br $repeat|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(i32.const 50)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 42)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<i64,i32>#clear
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(call $~lib/map/Map<i8,i32>#get:size
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 120)
|
|
(i32.const 46)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $start (; 72 ;) (; has Stack IR ;) (type $v)
|
|
(set_global $~lib/allocator/arena/startOffset
|
|
(i32.const 144)
|
|
)
|
|
(set_global $~lib/allocator/arena/offset
|
|
(get_global $~lib/allocator/arena/startOffset)
|
|
)
|
|
(call $std/map/test<i8,i32>)
|
|
(call $std/map/test<u8,i32>)
|
|
(call $std/map/test<i16,i32>)
|
|
(call $std/map/test<u16,i32>)
|
|
(call $std/map/test<i32,i32>)
|
|
(call $std/map/test<u32,i32>)
|
|
(call $std/map/test<i64,i32>)
|
|
(call $std/map/test<u64,i32>)
|
|
(call $std/map/test<f32,i32>)
|
|
(call $std/map/test<f64,i32>)
|
|
)
|
|
(func $null (; 73 ;) (; has Stack IR ;) (type $v)
|
|
(nop)
|
|
)
|
|
)
|