assemblyscript/tests/compiler/std/symbol.untouched.wat

3545 lines
66 KiB
Plaintext

(module
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$iiiiii (func (param i32 i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$v (func))
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\06\00\00\00\01\00\00\00\01\00\00\00\06\00\00\001\002\003\00")
(data (i32.const 32) "\1a\00\00\00\01\00\00\00\01\00\00\00\1a\00\00\00s\00t\00d\00/\00s\00y\00m\00b\00o\00l\00.\00t\00s\00")
(data (i32.const 80) "\1c\00\00\00\01\00\00\00\01\00\00\00\1c\00\00\00I\00n\00v\00a\00l\00i\00d\00 \00l\00e\00n\00g\00t\00h\00")
(data (i32.const 128) "&\00\00\00\01\00\00\00\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")
(data (i32.const 184) "\00\00\00\00\01\00\00\00\01\00\00\00\00\00\00\00")
(data (i32.const 200) "\16\00\00\00\01\00\00\00\01\00\00\00\16\00\00\00h\00a\00s\00I\00n\00s\00t\00a\00n\00c\00e\00")
(data (i32.const 240) "$\00\00\00\01\00\00\00\01\00\00\00$\00\00\00i\00s\00C\00o\00n\00c\00a\00t\00S\00p\00r\00e\00a\00d\00a\00b\00l\00e\00")
(data (i32.const 296) "\10\00\00\00\01\00\00\00\01\00\00\00\10\00\00\00i\00s\00R\00e\00g\00E\00x\00p\00")
(data (i32.const 328) "\n\00\00\00\01\00\00\00\01\00\00\00\n\00\00\00m\00a\00t\00c\00h\00")
(data (i32.const 360) "\0e\00\00\00\01\00\00\00\01\00\00\00\0e\00\00\00r\00e\00p\00l\00a\00c\00e\00")
(data (i32.const 392) "\0c\00\00\00\01\00\00\00\01\00\00\00\0c\00\00\00s\00e\00a\00r\00c\00h\00")
(data (i32.const 424) "\0e\00\00\00\01\00\00\00\01\00\00\00\0e\00\00\00s\00p\00e\00c\00i\00e\00s\00")
(data (i32.const 456) "\n\00\00\00\01\00\00\00\01\00\00\00\n\00\00\00s\00p\00l\00i\00t\00")
(data (i32.const 488) "\16\00\00\00\01\00\00\00\01\00\00\00\16\00\00\00t\00o\00P\00r\00i\00m\00i\00t\00i\00v\00e\00")
(data (i32.const 528) "\16\00\00\00\01\00\00\00\01\00\00\00\16\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00T\00a\00g\00")
(data (i32.const 568) "\16\00\00\00\01\00\00\00\01\00\00\00\16\00\00\00u\00n\00s\00c\00o\00p\00a\00b\00l\00e\00s\00")
(data (i32.const 608) "\0e\00\00\00\01\00\00\00\01\00\00\00\0e\00\00\00S\00y\00m\00b\00o\00l\00(\00")
(data (i32.const 640) "\08\00\00\00\01\00\00\00\01\00\00\00\08\00\00\00n\00u\00l\00l\00")
(data (i32.const 664) "\02\00\00\00\01\00\00\00\01\00\00\00\02\00\00\00)\00")
(data (i32.const 688) "\10\00\00\00\01\00\00\00\01\00\00\00\10\00\00\00S\00y\00m\00b\00o\00l\00(\00)\00")
(data (i32.const 720) "\16\00\00\00\01\00\00\00\01\00\00\00\16\00\00\00S\00y\00m\00b\00o\00l\00(\001\002\003\00)\00")
(data (i32.const 760) "&\00\00\00\01\00\00\00\01\00\00\00&\00\00\00S\00y\00m\00b\00o\00l\00(\00h\00a\00s\00I\00n\00s\00t\00a\00n\00c\00e\00)\00")
(data (i32.const 816) "4\00\00\00\01\00\00\00\01\00\00\004\00\00\00S\00y\00m\00b\00o\00l\00(\00i\00s\00C\00o\00n\00c\00a\00t\00S\00p\00r\00e\00a\00d\00a\00b\00l\00e\00)\00")
(table $0 1 funcref)
(elem (i32.const 0) $null)
(global $~lib/symbol/nextId (mut i32) (i32.const 12))
(global $std/symbol/sym1 (mut i32) (i32.const 0))
(global $std/symbol/sym2 (mut i32) (i32.const 0))
(global $~lib/symbol/stringToId (mut i32) (i32.const 0))
(global $~lib/rt/stub/startOffset (mut i32) (i32.const 0))
(global $~lib/rt/stub/offset (mut i32) (i32.const 0))
(global $~lib/ASC_SHRINK_LEVEL i32 (i32.const 0))
(global $~lib/symbol/idToString (mut i32) (i32.const 0))
(global $std/symbol/sym3 (mut i32) (i32.const 0))
(global $std/symbol/sym4 (mut i32) (i32.const 0))
(global $std/symbol/key1 (mut i32) (i32.const 0))
(global $std/symbol/key2 (mut i32) (i32.const 0))
(global $std/symbol/key3 (mut i32) (i32.const 0))
(global $std/symbol/key4 (mut i32) (i32.const 0))
(global $~lib/symbol/_Symbol.hasInstance i32 (i32.const 1))
(global $std/symbol/hasInstance (mut i32) (i32.const 0))
(global $~lib/symbol/_Symbol.isConcatSpreadable i32 (i32.const 2))
(global $std/symbol/isConcatSpreadable (mut i32) (i32.const 0))
(global $~lib/heap/__heap_base i32 (i32.const 884))
(export "memory" (memory $0))
(start $start)
(func $~lib/rt/stub/__retain (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
)
(func $~lib/rt/stub/__release (; 2 ;) (type $FUNCSIG$vi) (param $0 i32)
nop
)
(func $~lib/symbol/Symbol (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
local.get $0
call $~lib/rt/stub/__retain
drop
global.get $~lib/symbol/nextId
local.tee $1
i32.const 1
i32.add
global.set $~lib/symbol/nextId
local.get $1
local.set $2
local.get $2
i32.eqz
if
unreachable
end
local.get $2
local.set $1
local.get $0
call $~lib/rt/stub/__release
local.get $1
)
(func $~lib/rt/stub/__alloc (; 4 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
local.get $0
i32.const 1073741808
i32.gt_u
if
unreachable
end
global.get $~lib/rt/stub/offset
i32.const 16
i32.add
local.set $2
local.get $2
local.get $0
local.tee $3
i32.const 1
local.tee $4
local.get $3
local.get $4
i32.gt_u
select
i32.add
i32.const 15
i32.add
i32.const 15
i32.const -1
i32.xor
i32.and
local.set $5
memory.size
local.set $6
local.get $5
local.get $6
i32.const 16
i32.shl
i32.gt_u
if
local.get $5
local.get $2
i32.sub
i32.const 65535
i32.add
i32.const 65535
i32.const -1
i32.xor
i32.and
i32.const 16
i32.shr_u
local.set $3
local.get $6
local.tee $4
local.get $3
local.tee $7
local.get $4
local.get $7
i32.gt_s
select
local.set $4
local.get $4
memory.grow
i32.const 0
i32.lt_s
if
local.get $3
memory.grow
i32.const 0
i32.lt_s
if
unreachable
end
end
end
local.get $5
global.set $~lib/rt/stub/offset
local.get $2
i32.const 16
i32.sub
local.set $8
local.get $8
local.get $1
i32.store offset=8
local.get $8
local.get $0
i32.store offset=12
local.get $2
)
(func $~lib/memory/memory.fill (; 5 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i64)
block $~lib/util/memory/memset|inlined.0
local.get $0
local.set $5
local.get $1
local.set $4
local.get $2
local.set $3
local.get $3
i32.eqz
if
br $~lib/util/memory/memset|inlined.0
end
local.get $5
local.get $4
i32.store8
local.get $5
local.get $3
i32.add
i32.const 1
i32.sub
local.get $4
i32.store8
local.get $3
i32.const 2
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $5
i32.const 1
i32.add
local.get $4
i32.store8
local.get $5
i32.const 2
i32.add
local.get $4
i32.store8
local.get $5
local.get $3
i32.add
i32.const 2
i32.sub
local.get $4
i32.store8
local.get $5
local.get $3
i32.add
i32.const 3
i32.sub
local.get $4
i32.store8
local.get $3
i32.const 6
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $5
i32.const 3
i32.add
local.get $4
i32.store8
local.get $5
local.get $3
i32.add
i32.const 4
i32.sub
local.get $4
i32.store8
local.get $3
i32.const 8
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
i32.const 0
local.get $5
i32.sub
i32.const 3
i32.and
local.set $6
local.get $5
local.get $6
i32.add
local.set $5
local.get $3
local.get $6
i32.sub
local.set $3
local.get $3
i32.const -4
i32.and
local.set $3
i32.const -1
i32.const 255
i32.div_u
local.get $4
i32.const 255
i32.and
i32.mul
local.set $7
local.get $5
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 4
i32.sub
local.get $7
i32.store
local.get $3
i32.const 8
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $5
i32.const 4
i32.add
local.get $7
i32.store
local.get $5
i32.const 8
i32.add
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 12
i32.sub
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 8
i32.sub
local.get $7
i32.store
local.get $3
i32.const 24
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $5
i32.const 12
i32.add
local.get $7
i32.store
local.get $5
i32.const 16
i32.add
local.get $7
i32.store
local.get $5
i32.const 20
i32.add
local.get $7
i32.store
local.get $5
i32.const 24
i32.add
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 28
i32.sub
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 24
i32.sub
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 20
i32.sub
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 16
i32.sub
local.get $7
i32.store
i32.const 24
local.get $5
i32.const 4
i32.and
i32.add
local.set $6
local.get $5
local.get $6
i32.add
local.set $5
local.get $3
local.get $6
i32.sub
local.set $3
local.get $7
i64.extend_i32_u
local.get $7
i64.extend_i32_u
i64.const 32
i64.shl
i64.or
local.set $8
block $break|0
loop $continue|0
local.get $3
i32.const 32
i32.ge_u
i32.eqz
br_if $break|0
local.get $5
local.get $8
i64.store
local.get $5
i32.const 8
i32.add
local.get $8
i64.store
local.get $5
i32.const 16
i32.add
local.get $8
i64.store
local.get $5
i32.const 24
i32.add
local.get $8
i64.store
local.get $3
i32.const 32
i32.sub
local.set $3
local.get $5
i32.const 32
i32.add
local.set $5
br $continue|0
end
unreachable
end
end
)
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 6 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $1
i32.const 1073741808
i32.gt_u
if
i32.const 96
i32.const 144
i32.const 56
i32.const 42
call $~lib/builtins/abort
unreachable
end
local.get $1
i32.const 0
call $~lib/rt/stub/__alloc
local.set $2
local.get $2
i32.const 0
local.get $1
call $~lib/memory/memory.fill
local.get $2
call $~lib/rt/stub/__retain
)
(func $~lib/map/Map<~lib/string/String,usize>#clear (; 7 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
local.get $1
i32.load
call $~lib/rt/stub/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 48
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/stub/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/map/Map<~lib/string/String,usize>#constructor (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 3
call $~lib/rt/stub/__alloc
call $~lib/rt/stub/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/map/Map<~lib/string/String,usize>#clear
local.get $0
)
(func $~lib/map/Map<usize,~lib/string/String>#clear (; 9 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
local.get $1
i32.load
call $~lib/rt/stub/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 48
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/stub/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/map/Map<usize,~lib/string/String>#constructor (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 4
call $~lib/rt/stub/__alloc
call $~lib/rt/stub/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/map/Map<usize,~lib/string/String>#clear
local.get $0
)
(func $~lib/string/String#get:length (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.const 16
i32.sub
i32.load offset=12
i32.const 1
i32.shr_u
)
(func $~lib/util/hash/hashStr (; 12 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
call $~lib/rt/stub/__retain
drop
i32.const -2128831035
local.set $1
local.get $0
i32.const 0
i32.ne
if
block $break|0
i32.const 0
local.set $2
local.get $0
call $~lib/string/String#get:length
i32.const 1
i32.shl
local.set $3
loop $loop|0
local.get $2
local.get $3
i32.lt_u
i32.eqz
br_if $break|0
local.get $1
local.get $0
local.get $2
i32.add
i32.load8_u
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $2
i32.const 1
i32.add
local.set $2
br $loop|0
end
unreachable
end
end
local.get $1
local.set $3
local.get $0
call $~lib/rt/stub/__release
local.get $3
)
(func $~lib/util/string/compareImpl (; 13 ;) (type $FUNCSIG$iiiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
local.get $0
call $~lib/rt/stub/__retain
drop
local.get $2
call $~lib/rt/stub/__retain
drop
i32.const 0
local.set $5
local.get $0
local.get $1
i32.const 1
i32.shl
i32.add
local.set $6
local.get $2
local.get $3
i32.const 1
i32.shl
i32.add
local.set $7
block $break|0
loop $continue|0
local.get $4
if (result i32)
local.get $6
i32.load16_u
local.get $7
i32.load16_u
i32.sub
local.tee $5
i32.eqz
else
i32.const 0
end
i32.eqz
br_if $break|0
local.get $4
i32.const 1
i32.sub
local.set $4
local.get $6
i32.const 2
i32.add
local.set $6
local.get $7
i32.const 2
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $5
local.set $8
local.get $0
call $~lib/rt/stub/__release
local.get $2
call $~lib/rt/stub/__release
local.get $8
)
(func $~lib/string/String.__eq (; 14 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
call $~lib/rt/stub/__retain
drop
local.get $1
call $~lib/rt/stub/__retain
drop
local.get $0
local.get $1
i32.eq
if
i32.const 1
local.set $2
local.get $0
call $~lib/rt/stub/__release
local.get $1
call $~lib/rt/stub/__release
local.get $2
return
end
local.get $0
i32.const 0
i32.eq
if (result i32)
i32.const 1
else
local.get $1
i32.const 0
i32.eq
end
if
i32.const 0
local.set $2
local.get $0
call $~lib/rt/stub/__release
local.get $1
call $~lib/rt/stub/__release
local.get $2
return
end
local.get $0
call $~lib/string/String#get:length
local.set $3
local.get $3
local.get $1
call $~lib/string/String#get:length
i32.ne
if
i32.const 0
local.set $2
local.get $0
call $~lib/rt/stub/__release
local.get $1
call $~lib/rt/stub/__release
local.get $2
return
end
local.get $0
i32.const 0
local.get $1
i32.const 0
local.get $3
call $~lib/util/string/compareImpl
i32.eqz
local.set $2
local.get $0
call $~lib/rt/stub/__release
local.get $1
call $~lib/rt/stub/__release
local.get $2
)
(func $~lib/map/Map<~lib/string/String,usize>#find (; 15 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $1
call $~lib/rt/stub/__retain
drop
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=8
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
i32.load
local.get $1
call $~lib/string/String.__eq
else
i32.const 0
end
if
local.get $3
local.set $4
local.get $1
call $~lib/rt/stub/__release
local.get $4
return
end
local.get $3
i32.load offset=8
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
local.set $4
local.get $1
call $~lib/rt/stub/__release
local.get $4
)
(func $~lib/map/Map<~lib/string/String,usize>#has (; 16 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $1
call $~lib/rt/stub/__retain
drop
local.get $0
local.get $1
block $~lib/util/hash/HASH<~lib/string/String>|inlined.0 (result i32)
local.get $1
call $~lib/rt/stub/__retain
local.set $2
local.get $2
call $~lib/util/hash/hashStr
local.set $3
local.get $2
call $~lib/rt/stub/__release
local.get $3
br $~lib/util/hash/HASH<~lib/string/String>|inlined.0
end
call $~lib/map/Map<~lib/string/String,usize>#find
i32.const 0
i32.ne
local.set $2
local.get $1
call $~lib/rt/stub/__release
local.get $2
)
(func $~lib/map/Map<~lib/string/String,usize>#get (; 17 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
local.get $1
call $~lib/rt/stub/__retain
drop
local.get $0
local.get $1
block $~lib/util/hash/HASH<~lib/string/String>|inlined.1 (result i32)
local.get $1
call $~lib/rt/stub/__retain
local.set $2
local.get $2
call $~lib/util/hash/hashStr
local.set $3
local.get $2
call $~lib/rt/stub/__release
local.get $3
br $~lib/util/hash/HASH<~lib/string/String>|inlined.1
end
call $~lib/map/Map<~lib/string/String,usize>#find
local.set $4
local.get $4
if (result i32)
local.get $4
i32.load offset=4
else
unreachable
end
local.set $2
local.get $1
call $~lib/rt/stub/__release
local.get $2
)
(func $~lib/map/Map<~lib/string/String,usize>#rehash (; 18 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $4
i32.const 0
local.get $4
i32.const 12
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $5
local.get $0
i32.load offset=8
local.set $6
local.get $6
local.get $0
i32.load offset=16
i32.const 12
i32.mul
i32.add
local.set $7
local.get $5
local.set $8
block $break|0
loop $continue|0
local.get $6
local.get $7
i32.ne
i32.eqz
br_if $break|0
local.get $6
local.set $9
local.get $9
i32.load offset=8
i32.const 1
i32.and
i32.eqz
if
local.get $8
local.set $10
local.get $10
local.get $9
i32.load
i32.store
local.get $10
local.get $9
i32.load offset=4
i32.store offset=4
block $~lib/util/hash/HASH<~lib/string/String>|inlined.3 (result i32)
local.get $9
i32.load
call $~lib/rt/stub/__retain
local.set $11
local.get $11
call $~lib/util/hash/hashStr
local.set $12
local.get $11
call $~lib/rt/stub/__release
local.get $12
br $~lib/util/hash/HASH<~lib/string/String>|inlined.3
end
local.get $1
i32.and
local.set $11
local.get $3
local.get $11
i32.const 4
i32.mul
i32.add
local.set $12
local.get $10
local.get $12
i32.load
i32.store offset=8
local.get $12
local.get $8
i32.store
local.get $8
i32.const 12
i32.add
local.set $8
end
local.get $6
i32.const 12
i32.add
local.set $6
br $continue|0
end
unreachable
end
local.get $0
local.tee $9
local.get $3
local.tee $10
local.get $9
i32.load
local.tee $9
i32.ne
if
local.get $10
call $~lib/rt/stub/__retain
drop
local.get $9
call $~lib/rt/stub/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $5
local.tee $11
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $11
call $~lib/rt/stub/__retain
drop
local.get $10
call $~lib/rt/stub/__release
end
local.get $11
i32.store offset=8
local.get $0
local.get $4
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $3
call $~lib/rt/stub/__release
local.get $5
call $~lib/rt/stub/__release
)
(func $~lib/map/Map<~lib/string/String,usize>#set (; 19 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
local.get $1
call $~lib/rt/stub/__retain
drop
block $~lib/util/hash/HASH<~lib/string/String>|inlined.2 (result i32)
local.get $1
call $~lib/rt/stub/__retain
local.set $3
local.get $3
call $~lib/util/hash/hashStr
local.set $4
local.get $3
call $~lib/rt/stub/__release
local.get $4
br $~lib/util/hash/HASH<~lib/string/String>|inlined.2
end
local.set $5
local.get $0
local.get $1
local.get $5
call $~lib/map/Map<~lib/string/String,usize>#find
local.set $6
local.get $6
if
local.get $6
local.get $2
i32.store offset=4
else
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/map/Map<~lib/string/String,usize>#rehash
end
local.get $0
i32.load offset=8
call $~lib/rt/stub/__retain
local.set $3
local.get $3
local.get $0
local.get $0
i32.load offset=16
local.tee $4
i32.const 1
i32.add
i32.store offset=16
local.get $4
i32.const 12
i32.mul
i32.add
local.set $6
local.get $6
local.get $1
call $~lib/rt/stub/__retain
i32.store
local.get $6
local.get $2
i32.store offset=4
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $5
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $4
local.get $6
local.get $4
i32.load
i32.store offset=8
local.get $4
local.get $6
i32.store
local.get $3
call $~lib/rt/stub/__release
end
local.get $1
call $~lib/rt/stub/__release
)
(func $~lib/util/hash/hash32 (; 20 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const -2128831035
local.set $1
local.get $1
local.get $0
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $1
local.get $0
i32.const 8
i32.shr_u
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $1
local.get $0
i32.const 16
i32.shr_u
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $1
local.get $0
i32.const 24
i32.shr_u
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $1
)
(func $~lib/map/Map<usize,~lib/string/String>#find (; 21 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=8
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
i32.load
local.get $1
i32.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=8
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/map/Map<usize,~lib/string/String>#rehash (; 22 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $4
i32.const 0
local.get $4
i32.const 12
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $5
local.get $0
i32.load offset=8
local.set $6
local.get $6
local.get $0
i32.load offset=16
i32.const 12
i32.mul
i32.add
local.set $7
local.get $5
local.set $8
block $break|0
loop $continue|0
local.get $6
local.get $7
i32.ne
i32.eqz
br_if $break|0
local.get $6
local.set $9
local.get $9
i32.load offset=8
i32.const 1
i32.and
i32.eqz
if
local.get $8
local.set $10
local.get $10
local.get $9
i32.load
i32.store
local.get $10
local.get $9
i32.load offset=4
i32.store offset=4
block $~lib/util/hash/HASH<usize>|inlined.1 (result i32)
local.get $9
i32.load
local.set $11
local.get $11
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<usize>|inlined.1
end
local.get $1
i32.and
local.set $11
local.get $3
local.get $11
i32.const 4
i32.mul
i32.add
local.set $12
local.get $10
local.get $12
i32.load
i32.store offset=8
local.get $12
local.get $8
i32.store
local.get $8
i32.const 12
i32.add
local.set $8
end
local.get $6
i32.const 12
i32.add
local.set $6
br $continue|0
end
unreachable
end
local.get $0
local.tee $9
local.get $3
local.tee $10
local.get $9
i32.load
local.tee $9
i32.ne
if
local.get $10
call $~lib/rt/stub/__retain
drop
local.get $9
call $~lib/rt/stub/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $5
local.tee $11
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $11
call $~lib/rt/stub/__retain
drop
local.get $10
call $~lib/rt/stub/__release
end
local.get $11
i32.store offset=8
local.get $0
local.get $4
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $3
call $~lib/rt/stub/__release
local.get $5
call $~lib/rt/stub/__release
)
(func $~lib/map/Map<usize,~lib/string/String>#set (; 23 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
local.get $2
call $~lib/rt/stub/__retain
drop
block $~lib/util/hash/HASH<usize>|inlined.0 (result i32)
local.get $1
local.set $3
local.get $3
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<usize>|inlined.0
end
local.set $4
local.get $0
local.get $1
local.get $4
call $~lib/map/Map<usize,~lib/string/String>#find
local.set $5
local.get $5
if
local.get $5
i32.load offset=4
local.set $3
local.get $2
local.get $3
i32.ne
if
local.get $5
local.get $2
call $~lib/rt/stub/__retain
i32.store offset=4
local.get $3
call $~lib/rt/stub/__release
end
else
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/map/Map<usize,~lib/string/String>#rehash
end
local.get $0
i32.load offset=8
call $~lib/rt/stub/__retain
local.set $3
local.get $3
local.get $0
local.get $0
i32.load offset=16
local.tee $6
i32.const 1
i32.add
i32.store offset=16
local.get $6
i32.const 12
i32.mul
i32.add
local.set $5
local.get $5
local.get $1
i32.store
local.get $5
local.get $2
call $~lib/rt/stub/__retain
i32.store offset=4
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $4
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $6
local.get $5
local.get $6
i32.load
i32.store offset=8
local.get $6
local.get $5
i32.store
local.get $3
call $~lib/rt/stub/__release
end
local.get $2
call $~lib/rt/stub/__release
)
(func $~lib/symbol/_Symbol.for (; 24 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
local.get $0
call $~lib/rt/stub/__retain
drop
global.get $~lib/symbol/stringToId
i32.eqz
if
i32.const 0
call $~lib/map/Map<~lib/string/String,usize>#constructor
local.set $1
global.get $~lib/symbol/stringToId
call $~lib/rt/stub/__release
local.get $1
global.set $~lib/symbol/stringToId
i32.const 0
call $~lib/map/Map<usize,~lib/string/String>#constructor
local.set $1
global.get $~lib/symbol/idToString
call $~lib/rt/stub/__release
local.get $1
global.set $~lib/symbol/idToString
else
global.get $~lib/symbol/stringToId
local.get $0
call $~lib/map/Map<~lib/string/String,usize>#has
if
global.get $~lib/symbol/stringToId
local.get $0
call $~lib/map/Map<~lib/string/String,usize>#get
local.set $1
local.get $0
call $~lib/rt/stub/__release
local.get $1
return
end
end
global.get $~lib/symbol/nextId
local.tee $1
i32.const 1
i32.add
global.set $~lib/symbol/nextId
local.get $1
local.set $2
local.get $2
i32.eqz
if
unreachable
end
global.get $~lib/symbol/stringToId
local.get $0
local.get $2
call $~lib/map/Map<~lib/string/String,usize>#set
global.get $~lib/symbol/idToString
local.get $2
local.get $0
call $~lib/map/Map<usize,~lib/string/String>#set
local.get $2
local.set $1
local.get $0
call $~lib/rt/stub/__release
local.get $1
)
(func $~lib/map/Map<usize,~lib/string/String>#has (; 25 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<usize>|inlined.2 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<usize>|inlined.2
end
call $~lib/map/Map<usize,~lib/string/String>#find
i32.const 0
i32.ne
)
(func $~lib/map/Map<usize,~lib/string/String>#get (; 26 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<usize>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<usize>|inlined.3
end
call $~lib/map/Map<usize,~lib/string/String>#find
local.set $3
local.get $3
if (result i32)
local.get $3
i32.load offset=4
call $~lib/rt/stub/__retain
local.tee $2
else
unreachable
end
call $~lib/rt/stub/__retain
)
(func $~lib/symbol/_Symbol.keyFor (; 27 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
global.get $~lib/symbol/idToString
i32.const 0
i32.ne
if (result i32)
global.get $~lib/symbol/idToString
local.get $0
call $~lib/map/Map<usize,~lib/string/String>#has
else
i32.const 0
end
if (result i32)
global.get $~lib/symbol/idToString
local.get $0
call $~lib/map/Map<usize,~lib/string/String>#get
else
i32.const 0
call $~lib/rt/stub/__retain
end
)
(func $~lib/util/memory/memcpy (; 28 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
block $break|0
loop $continue|0
local.get $2
if (result i32)
local.get $1
i32.const 3
i32.and
else
i32.const 0
end
i32.eqz
br_if $break|0
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
br $continue|0
end
unreachable
end
local.get $0
i32.const 3
i32.and
i32.const 0
i32.eq
if
block $break|1
loop $continue|1
local.get $2
i32.const 16
i32.ge_u
i32.eqz
br_if $break|1
local.get $0
local.get $1
i32.load
i32.store
local.get $0
i32.const 4
i32.add
local.get $1
i32.const 4
i32.add
i32.load
i32.store
local.get $0
i32.const 8
i32.add
local.get $1
i32.const 8
i32.add
i32.load
i32.store
local.get $0
i32.const 12
i32.add
local.get $1
i32.const 12
i32.add
i32.load
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
br $continue|1
end
unreachable
end
local.get $2
i32.const 8
i32.and
if
local.get $0
local.get $1
i32.load
i32.store
local.get $0
i32.const 4
i32.add
local.get $1
i32.const 4
i32.add
i32.load
i32.store
local.get $0
i32.const 8
i32.add
local.set $0
local.get $1
i32.const 8
i32.add
local.set $1
end
local.get $2
i32.const 4
i32.and
if
local.get $0
local.get $1
i32.load
i32.store
local.get $0
i32.const 4
i32.add
local.set $0
local.get $1
i32.const 4
i32.add
local.set $1
end
local.get $2
i32.const 2
i32.and
if
local.get $0
local.get $1
i32.load16_u
i32.store16
local.get $0
i32.const 2
i32.add
local.set $0
local.get $1
i32.const 2
i32.add
local.set $1
end
local.get $2
i32.const 1
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
return
end
local.get $2
i32.const 32
i32.ge_u
if
block $break|2
block $case2|2
block $case1|2
block $case0|2
local.get $0
i32.const 3
i32.and
local.set $5
local.get $5
i32.const 1
i32.eq
br_if $case0|2
local.get $5
i32.const 2
i32.eq
br_if $case1|2
local.get $5
i32.const 3
i32.eq
br_if $case2|2
br $break|2
end
local.get $1
i32.load
local.set $3
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 3
i32.sub
local.set $2
block $break|3
loop $continue|3
local.get $2
i32.const 17
i32.ge_u
i32.eqz
br_if $break|3
local.get $1
i32.const 1
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 24
i32.shr_u
local.get $4
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 5
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 24
i32.shr_u
local.get $3
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 9
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 24
i32.shr_u
local.get $4
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 13
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 24
i32.shr_u
local.get $3
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
br $continue|3
end
unreachable
end
br $break|2
end
local.get $1
i32.load
local.set $3
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 2
i32.sub
local.set $2
block $break|4
loop $continue|4
local.get $2
i32.const 18
i32.ge_u
i32.eqz
br_if $break|4
local.get $1
i32.const 2
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 16
i32.shr_u
local.get $4
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 6
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 16
i32.shr_u
local.get $3
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 10
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 16
i32.shr_u
local.get $4
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 14
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 16
i32.shr_u
local.get $3
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
br $continue|4
end
unreachable
end
br $break|2
end
local.get $1
i32.load
local.set $3
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
block $break|5
loop $continue|5
local.get $2
i32.const 19
i32.ge_u
i32.eqz
br_if $break|5
local.get $1
i32.const 3
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 8
i32.shr_u
local.get $4
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 7
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 8
i32.shr_u
local.get $3
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 11
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 8
i32.shr_u
local.get $4
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 15
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 8
i32.shr_u
local.get $3
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
br $continue|5
end
unreachable
end
br $break|2
end
end
local.get $2
i32.const 16
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
local.get $2
i32.const 8
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
local.get $2
i32.const 4
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
local.get $2
i32.const 2
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
local.get $2
i32.const 1
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
)
(func $~lib/memory/memory.copy (; 29 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
block $~lib/util/memory/memmove|inlined.0
local.get $0
local.set $5
local.get $1
local.set $4
local.get $2
local.set $3
local.get $5
local.get $4
i32.eq
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $4
local.get $3
i32.add
local.get $5
i32.le_u
if (result i32)
i32.const 1
else
local.get $5
local.get $3
i32.add
local.get $4
i32.le_u
end
if
local.get $5
local.get $4
local.get $3
call $~lib/util/memory/memcpy
br $~lib/util/memory/memmove|inlined.0
end
local.get $5
local.get $4
i32.lt_u
if
local.get $4
i32.const 7
i32.and
local.get $5
i32.const 7
i32.and
i32.eq
if
block $break|0
loop $continue|0
local.get $5
i32.const 7
i32.and
i32.eqz
br_if $break|0
local.get $3
i32.eqz
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $3
i32.const 1
i32.sub
local.set $3
local.get $5
local.tee $6
i32.const 1
i32.add
local.set $5
local.get $6
local.get $4
local.tee $6
i32.const 1
i32.add
local.set $4
local.get $6
i32.load8_u
i32.store8
br $continue|0
end
unreachable
end
block $break|1
loop $continue|1
local.get $3
i32.const 8
i32.ge_u
i32.eqz
br_if $break|1
local.get $5
local.get $4
i64.load
i64.store
local.get $3
i32.const 8
i32.sub
local.set $3
local.get $5
i32.const 8
i32.add
local.set $5
local.get $4
i32.const 8
i32.add
local.set $4
br $continue|1
end
unreachable
end
end
block $break|2
loop $continue|2
local.get $3
i32.eqz
br_if $break|2
local.get $5
local.tee $6
i32.const 1
i32.add
local.set $5
local.get $6
local.get $4
local.tee $6
i32.const 1
i32.add
local.set $4
local.get $6
i32.load8_u
i32.store8
local.get $3
i32.const 1
i32.sub
local.set $3
br $continue|2
end
unreachable
end
else
local.get $4
i32.const 7
i32.and
local.get $5
i32.const 7
i32.and
i32.eq
if
block $break|3
loop $continue|3
local.get $5
local.get $3
i32.add
i32.const 7
i32.and
i32.eqz
br_if $break|3
local.get $3
i32.eqz
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $5
local.get $3
i32.const 1
i32.sub
local.tee $3
i32.add
local.get $4
local.get $3
i32.add
i32.load8_u
i32.store8
br $continue|3
end
unreachable
end
block $break|4
loop $continue|4
local.get $3
i32.const 8
i32.ge_u
i32.eqz
br_if $break|4
local.get $3
i32.const 8
i32.sub
local.set $3
local.get $5
local.get $3
i32.add
local.get $4
local.get $3
i32.add
i64.load
i64.store
br $continue|4
end
unreachable
end
end
block $break|5
loop $continue|5
local.get $3
i32.eqz
br_if $break|5
local.get $5
local.get $3
i32.const 1
i32.sub
local.tee $3
i32.add
local.get $4
local.get $3
i32.add
i32.load8_u
i32.store8
br $continue|5
end
unreachable
end
end
end
)
(func $~lib/string/String#concat (; 30 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
local.get $1
call $~lib/rt/stub/__retain
drop
local.get $1
i32.const 0
i32.eq
if
i32.const 656
local.tee $2
local.get $1
local.tee $3
i32.ne
if
local.get $2
call $~lib/rt/stub/__retain
drop
local.get $3
call $~lib/rt/stub/__release
end
local.get $2
local.set $1
end
local.get $0
call $~lib/string/String#get:length
i32.const 1
i32.shl
local.set $4
local.get $1
call $~lib/string/String#get:length
i32.const 1
i32.shl
local.set $5
local.get $4
local.get $5
i32.add
local.set $6
local.get $6
i32.const 0
i32.eq
if
i32.const 200
call $~lib/rt/stub/__retain
local.set $2
local.get $1
call $~lib/rt/stub/__release
local.get $2
return
end
local.get $6
i32.const 1
call $~lib/rt/stub/__alloc
call $~lib/rt/stub/__retain
local.set $7
local.get $7
local.get $0
local.get $4
call $~lib/memory/memory.copy
local.get $7
local.get $4
i32.add
local.get $1
local.get $5
call $~lib/memory/memory.copy
local.get $7
local.set $2
local.get $1
call $~lib/rt/stub/__release
local.get $2
)
(func $~lib/string/String.__concat (; 31 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
call $~lib/rt/stub/__retain
drop
local.get $1
call $~lib/rt/stub/__retain
drop
local.get $0
i32.const 656
local.get $0
i32.const 0
i32.ne
select
local.get $1
call $~lib/string/String#concat
local.set $2
local.get $0
call $~lib/rt/stub/__release
local.get $1
call $~lib/rt/stub/__release
local.get $2
)
(func $~lib/symbol/_Symbol#toString (; 32 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.set $1
i32.const 200
call $~lib/rt/stub/__retain
local.set $2
block $break|0
block $case11|0
block $case10|0
block $case9|0
block $case8|0
block $case7|0
block $case6|0
block $case5|0
block $case4|0
block $case3|0
block $case2|0
block $case1|0
block $case0|0
local.get $1
local.set $3
local.get $3
i32.const 1
i32.eq
br_if $case0|0
local.get $3
i32.const 2
i32.eq
br_if $case1|0
local.get $3
i32.const 3
i32.eq
br_if $case2|0
local.get $3
i32.const 4
i32.eq
br_if $case3|0
local.get $3
i32.const 5
i32.eq
br_if $case4|0
local.get $3
i32.const 6
i32.eq
br_if $case5|0
local.get $3
i32.const 7
i32.eq
br_if $case6|0
local.get $3
i32.const 8
i32.eq
br_if $case7|0
local.get $3
i32.const 9
i32.eq
br_if $case8|0
local.get $3
i32.const 10
i32.eq
br_if $case9|0
local.get $3
i32.const 11
i32.eq
br_if $case10|0
br $case11|0
end
i32.const 216
local.tee $3
local.get $2
local.tee $4
i32.ne
if
local.get $3
call $~lib/rt/stub/__retain
drop
local.get $4
call $~lib/rt/stub/__release
end
local.get $3
local.set $2
br $break|0
end
i32.const 256
local.tee $4
local.get $2
local.tee $3
i32.ne
if
local.get $4
call $~lib/rt/stub/__retain
drop
local.get $3
call $~lib/rt/stub/__release
end
local.get $4
local.set $2
br $break|0
end
i32.const 312
local.tee $3
local.get $2
local.tee $4
i32.ne
if
local.get $3
call $~lib/rt/stub/__retain
drop
local.get $4
call $~lib/rt/stub/__release
end
local.get $3
local.set $2
br $break|0
end
i32.const 344
local.tee $4
local.get $2
local.tee $3
i32.ne
if
local.get $4
call $~lib/rt/stub/__retain
drop
local.get $3
call $~lib/rt/stub/__release
end
local.get $4
local.set $2
br $break|0
end
i32.const 376
local.tee $3
local.get $2
local.tee $4
i32.ne
if
local.get $3
call $~lib/rt/stub/__retain
drop
local.get $4
call $~lib/rt/stub/__release
end
local.get $3
local.set $2
br $break|0
end
i32.const 408
local.tee $4
local.get $2
local.tee $3
i32.ne
if
local.get $4
call $~lib/rt/stub/__retain
drop
local.get $3
call $~lib/rt/stub/__release
end
local.get $4
local.set $2
br $break|0
end
i32.const 440
local.tee $3
local.get $2
local.tee $4
i32.ne
if
local.get $3
call $~lib/rt/stub/__retain
drop
local.get $4
call $~lib/rt/stub/__release
end
local.get $3
local.set $2
br $break|0
end
i32.const 472
local.tee $4
local.get $2
local.tee $3
i32.ne
if
local.get $4
call $~lib/rt/stub/__retain
drop
local.get $3
call $~lib/rt/stub/__release
end
local.get $4
local.set $2
br $break|0
end
i32.const 504
local.tee $3
local.get $2
local.tee $4
i32.ne
if
local.get $3
call $~lib/rt/stub/__retain
drop
local.get $4
call $~lib/rt/stub/__release
end
local.get $3
local.set $2
br $break|0
end
i32.const 544
local.tee $4
local.get $2
local.tee $3
i32.ne
if
local.get $4
call $~lib/rt/stub/__retain
drop
local.get $3
call $~lib/rt/stub/__release
end
local.get $4
local.set $2
br $break|0
end
i32.const 584
local.tee $3
local.get $2
local.tee $4
i32.ne
if
local.get $3
call $~lib/rt/stub/__retain
drop
local.get $4
call $~lib/rt/stub/__release
end
local.get $3
local.set $2
br $break|0
end
global.get $~lib/symbol/idToString
i32.const 0
i32.ne
if (result i32)
global.get $~lib/symbol/idToString
local.get $1
call $~lib/map/Map<usize,~lib/string/String>#has
else
i32.const 0
end
if
global.get $~lib/symbol/idToString
local.get $1
call $~lib/map/Map<usize,~lib/string/String>#get
local.set $4
local.get $2
call $~lib/rt/stub/__release
local.get $4
local.set $2
end
br $break|0
end
i32.const 624
local.get $2
call $~lib/string/String.__concat
local.tee $4
i32.const 680
call $~lib/string/String.__concat
local.tee $3
call $~lib/rt/stub/__retain
local.set $5
local.get $4
call $~lib/rt/stub/__release
local.get $3
call $~lib/rt/stub/__release
local.get $2
call $~lib/rt/stub/__release
local.get $5
)
(func $start:std/symbol (; 33 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
i32.const 24
call $~lib/symbol/Symbol
global.set $std/symbol/sym1
i32.const 24
call $~lib/symbol/Symbol
global.set $std/symbol/sym2
global.get $std/symbol/sym1
global.get $std/symbol/sym2
i32.ne
i32.eqz
if
i32.const 0
i32.const 48
i32.const 4
i32.const 0
call $~lib/builtins/abort
unreachable
end
global.get $~lib/heap/__heap_base
i32.const 15
i32.add
i32.const 15
i32.const -1
i32.xor
i32.and
global.set $~lib/rt/stub/startOffset
global.get $~lib/rt/stub/startOffset
global.set $~lib/rt/stub/offset
i32.const 24
call $~lib/symbol/_Symbol.for
global.set $std/symbol/sym3
i32.const 24
call $~lib/symbol/_Symbol.for
global.set $std/symbol/sym4
global.get $std/symbol/sym3
global.get $std/symbol/sym4
i32.eq
i32.eqz
if
i32.const 0
i32.const 48
i32.const 9
i32.const 0
call $~lib/builtins/abort
unreachable
end
global.get $std/symbol/sym1
call $~lib/symbol/_Symbol.keyFor
global.set $std/symbol/key1
global.get $std/symbol/sym2
call $~lib/symbol/_Symbol.keyFor
global.set $std/symbol/key2
global.get $std/symbol/key1
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 48
i32.const 14
i32.const 0
call $~lib/builtins/abort
unreachable
end
global.get $std/symbol/key2
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 48
i32.const 15
i32.const 0
call $~lib/builtins/abort
unreachable
end
global.get $std/symbol/sym3
call $~lib/symbol/_Symbol.keyFor
local.tee $0
if (result i32)
local.get $0
else
unreachable
end
call $~lib/rt/stub/__retain
global.set $std/symbol/key3
global.get $std/symbol/sym4
call $~lib/symbol/_Symbol.keyFor
local.tee $0
if (result i32)
local.get $0
else
unreachable
end
call $~lib/rt/stub/__retain
global.set $std/symbol/key4
global.get $std/symbol/key3
i32.const 24
call $~lib/string/String.__eq
i32.eqz
if
i32.const 0
i32.const 48
i32.const 20
i32.const 0
call $~lib/builtins/abort
unreachable
end
global.get $std/symbol/key3
global.get $std/symbol/key4
call $~lib/string/String.__eq
i32.eqz
if
i32.const 0
i32.const 48
i32.const 21
i32.const 0
call $~lib/builtins/abort
unreachable
end
i32.const 0
call $~lib/symbol/Symbol
call $~lib/symbol/_Symbol#toString
local.tee $0
i32.const 704
call $~lib/string/String.__eq
i32.eqz
if
i32.const 0
i32.const 48
i32.const 23
i32.const 0
call $~lib/builtins/abort
unreachable
end
global.get $std/symbol/sym3
call $~lib/symbol/_Symbol#toString
local.tee $1
i32.const 736
call $~lib/string/String.__eq
i32.eqz
if
i32.const 0
i32.const 48
i32.const 24
i32.const 0
call $~lib/builtins/abort
unreachable
end
global.get $~lib/symbol/_Symbol.hasInstance
global.set $std/symbol/hasInstance
global.get $~lib/symbol/_Symbol.isConcatSpreadable
global.set $std/symbol/isConcatSpreadable
global.get $std/symbol/hasInstance
call $~lib/symbol/_Symbol#toString
local.tee $2
i32.const 776
call $~lib/string/String.__eq
i32.eqz
if
i32.const 0
i32.const 48
i32.const 28
i32.const 0
call $~lib/builtins/abort
unreachable
end
global.get $std/symbol/isConcatSpreadable
call $~lib/symbol/_Symbol#toString
local.tee $3
i32.const 832
call $~lib/string/String.__eq
i32.eqz
if
i32.const 0
i32.const 48
i32.const 29
i32.const 0
call $~lib/builtins/abort
unreachable
end
global.get $~lib/symbol/_Symbol.hasInstance
drop
global.get $~lib/symbol/_Symbol.isConcatSpreadable
drop
local.get $0
call $~lib/rt/stub/__release
local.get $1
call $~lib/rt/stub/__release
local.get $2
call $~lib/rt/stub/__release
local.get $3
call $~lib/rt/stub/__release
)
(func $start (; 34 ;) (type $FUNCSIG$v)
call $start:std/symbol
)
(func $null (; 35 ;) (type $FUNCSIG$v)
)
)