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

3446 lines
64 KiB
Plaintext
Raw Normal View History

(module
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
2019-03-16 11:24:13 +01:00
(type $FUNCSIG$vi (func (param i32)))
2019-03-14 07:45:59 +01:00
(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)))
2019-03-14 07:45:59 +01:00
(type $FUNCSIG$v (func))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
2019-03-14 07:45:59 +01:00
(data (i32.const 8) "\01\00\00\00\06\00\00\001\002\003\00")
(data (i32.const 24) "\01\00\00\00\1a\00\00\00s\00t\00d\00/\00s\00y\00m\00b\00o\00l\00.\00t\00s\00")
2019-03-16 11:24:13 +01:00
(data (i32.const 64) "\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s\00")
(data (i32.const 104) "\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")
2019-03-14 07:45:59 +01:00
(data (i32.const 152) "\01\00\00\00\00\00\00\00")
(data (i32.const 160) "\01\00\00\00\16\00\00\00h\00a\00s\00I\00n\00s\00t\00a\00n\00c\00e\00")
(data (i32.const 192) "\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 240) "\01\00\00\00\10\00\00\00i\00s\00R\00e\00g\00E\00x\00p\00")
(data (i32.const 264) "\01\00\00\00\n\00\00\00m\00a\00t\00c\00h\00")
(data (i32.const 288) "\01\00\00\00\0e\00\00\00r\00e\00p\00l\00a\00c\00e\00")
(data (i32.const 312) "\01\00\00\00\0c\00\00\00s\00e\00a\00r\00c\00h\00")
(data (i32.const 336) "\01\00\00\00\0e\00\00\00s\00p\00e\00c\00i\00e\00s\00")
(data (i32.const 360) "\01\00\00\00\n\00\00\00s\00p\00l\00i\00t\00")
(data (i32.const 384) "\01\00\00\00\16\00\00\00t\00o\00P\00r\00i\00m\00i\00t\00i\00v\00e\00")
(data (i32.const 416) "\01\00\00\00\16\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00T\00a\00g\00")
(data (i32.const 448) "\01\00\00\00\16\00\00\00u\00n\00s\00c\00o\00p\00a\00b\00l\00e\00s\00")
(data (i32.const 480) "\01\00\00\00\0e\00\00\00S\00y\00m\00b\00o\00l\00(\00")
(data (i32.const 504) "\01\00\00\00\08\00\00\00n\00u\00l\00l\00")
(data (i32.const 520) "\01\00\00\00\1c\00\00\00~\00l\00i\00b\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s\00")
(data (i32.const 560) "\01\00\00\00\02\00\00\00)\00")
(data (i32.const 576) "\01\00\00\00\10\00\00\00S\00y\00m\00b\00o\00l\00(\00)\00")
(data (i32.const 600) "\01\00\00\00\16\00\00\00S\00y\00m\00b\00o\00l\00(\001\002\003\00)\00")
(data (i32.const 632) "\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 680) "\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)
2019-03-16 11:24:13 +01:00
(global $~lib/runtime/GC_IMPLEMENTED i32 (i32.const 0))
(global $~lib/runtime/HEADER_SIZE i32 (i32.const 8))
(global $~lib/runtime/HEADER_MAGIC i32 (i32.const -1520547049))
(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))
2019-03-14 07:45:59 +01:00
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
2019-03-16 11:24:13 +01:00
(global $~lib/ASC_NO_ASSERT i32 (i32.const 0))
(global $~lib/runtime/MAX_BYTELENGTH i32 (i32.const 1073741816))
(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))
2019-03-14 07:45:59 +01:00
(global $~lib/symbol/_Symbol.hasInstance i32 (i32.const 1))
(global $std/symbol/hasInstance (mut i32) (i32.const 0))
2019-03-14 07:45:59 +01:00
(global $~lib/symbol/_Symbol.isConcatSpreadable i32 (i32.const 2))
(global $std/symbol/isConcatSpreadable (mut i32) (i32.const 0))
2019-03-14 07:45:59 +01:00
(global $~lib/memory/HEAP_BASE i32 (i32.const 740))
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
2019-03-14 07:45:59 +01:00
(func $~lib/symbol/Symbol (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
block (result i32)
global.get $~lib/symbol/nextId
local.tee $1
i32.const 1
i32.add
global.set $~lib/symbol/nextId
local.get $1
end
local.set $2
local.get $2
i32.eqz
if
unreachable
end
local.get $2
)
2019-03-17 01:35:44 +01:00
(func $~lib/runtime/ADJUSTOBLOCK (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-03-16 11:24:13 +01:00
i32.const 1
i32.const 32
local.get $0
global.get $~lib/runtime/HEADER_SIZE
i32.add
i32.const 1
i32.sub
i32.clz
i32.sub
i32.shl
)
(func $~lib/memory/memory.allocate (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
2019-03-16 11:24:13 +01:00
(local $7 i32)
block $~lib/allocator/arena/__memory_allocate|inlined.0 (result i32)
local.get $0
local.set $1
local.get $1
2019-03-16 11:24:13 +01:00
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.set $2
local.get $2
2019-03-16 11:24:13 +01:00
local.get $1
local.tee $3
i32.const 1
local.tee $4
local.get $3
2019-03-16 11:24:13 +01:00
local.get $4
i32.gt_u
select
2019-03-16 11:24:13 +01:00
i32.add
i32.const 7
i32.add
i32.const 7
i32.const -1
i32.xor
i32.and
local.set $3
2019-03-16 11:24:13 +01:00
current_memory
local.set $4
local.get $3
2019-03-16 11:24:13 +01:00
local.get $4
i32.const 16
i32.shl
i32.gt_u
if
2019-03-16 11:24:13 +01:00
local.get $3
local.get $2
2019-03-16 11:24:13 +01:00
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 $5
local.get $4
local.tee $6
local.get $5
local.tee $7
local.get $6
local.get $7
i32.gt_s
select
local.set $6
local.get $6
grow_memory
i32.const 0
i32.lt_s
if
2019-03-16 11:24:13 +01:00
local.get $5
grow_memory
i32.const 0
i32.lt_s
if
unreachable
end
end
end
2019-03-16 11:24:13 +01:00
local.get $3
global.set $~lib/allocator/arena/offset
local.get $2
end
return
)
2019-03-16 11:24:13 +01:00
(func $~lib/runtime/doAllocate (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
local.get $0
2019-03-17 01:35:44 +01:00
call $~lib/runtime/ADJUSTOBLOCK
2019-03-14 07:45:59 +01:00
call $~lib/memory/memory.allocate
local.set $1
local.get $1
2019-03-16 11:24:13 +01:00
global.get $~lib/runtime/HEADER_MAGIC
i32.store
local.get $1
2019-03-14 07:45:59 +01:00
local.get $0
i32.store offset=4
local.get $1
2019-03-16 11:24:13 +01:00
global.get $~lib/runtime/HEADER_SIZE
2019-03-14 07:45:59 +01:00
i32.add
)
2019-03-16 11:24:13 +01:00
(func $~lib/runtime/ALLOCATE (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
2019-03-16 11:24:13 +01:00
call $~lib/runtime/doAllocate
)
(func $~lib/runtime/assertUnregistered (; 6 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
2019-03-16 11:24:13 +01:00
global.get $~lib/memory/HEAP_BASE
i32.gt_u
i32.eqz
if
2019-03-16 11:24:13 +01:00
i32.const 0
i32.const 72
2019-03-17 12:25:54 +01:00
i32.const 191
2019-03-16 11:24:13 +01:00
i32.const 2
call $~lib/env/abort
unreachable
end
local.get $0
2019-03-16 11:24:13 +01:00
global.get $~lib/runtime/HEADER_SIZE
i32.sub
2019-03-16 11:24:13 +01:00
i32.load
global.get $~lib/runtime/HEADER_MAGIC
i32.eq
i32.eqz
if
2019-03-16 11:24:13 +01:00
i32.const 0
i32.const 72
2019-03-17 12:25:54 +01:00
i32.const 192
2019-03-16 11:24:13 +01:00
i32.const 2
call $~lib/env/abort
unreachable
end
2019-03-16 11:24:13 +01:00
)
(func $~lib/runtime/doRegister (; 7 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
2019-03-16 11:24:13 +01:00
call $~lib/runtime/assertUnregistered
local.get $0
2019-03-16 11:24:13 +01:00
global.get $~lib/runtime/HEADER_SIZE
i32.sub
local.get $1
i32.store
local.get $0
)
2019-03-16 11:24:13 +01:00
(func $~lib/memory/memory.fill (; 8 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
2019-03-17 01:35:44 +01:00
(local $5 i64)
2019-03-16 11:24:13 +01:00
block $~lib/util/memory/memset|inlined.0
local.get $2
i32.eqz
if
br $~lib/util/memory/memset|inlined.0
end
2019-03-17 01:35:44 +01:00
local.get $0
local.get $1
2019-03-16 11:24:13 +01:00
i32.store8
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.const 1
i32.sub
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.store8
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 2
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 1
i32.add
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.store8
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 2
i32.add
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.store8
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.const 2
i32.sub
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.store8
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.const 3
i32.sub
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.store8
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 6
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 3
i32.add
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.store8
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
2019-03-14 07:45:59 +01:00
i32.const 4
2019-03-16 11:24:13 +01:00
i32.sub
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.store8
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 8
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
i32.const 0
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.sub
i32.const 3
i32.and
2019-03-17 01:35:44 +01:00
local.set $3
local.get $0
2019-03-16 11:24:13 +01:00
local.get $3
i32.add
2019-03-17 01:35:44 +01:00
local.set $0
local.get $2
local.get $3
2019-03-16 11:24:13 +01:00
i32.sub
2019-03-17 01:35:44 +01:00
local.set $2
local.get $2
2019-03-16 11:24:13 +01:00
i32.const -4
i32.and
2019-03-17 01:35:44 +01:00
local.set $2
2019-03-16 11:24:13 +01:00
i32.const -1
i32.const 255
i32.div_u
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.const 255
i32.and
i32.mul
2019-03-17 01:35:44 +01:00
local.set $4
local.get $0
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
2019-03-14 07:45:59 +01:00
i32.const 4
2019-03-16 11:24:13 +01:00
i32.sub
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 8
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 4
i32.add
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 8
i32.add
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.const 12
i32.sub
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.const 8
i32.sub
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 24
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 12
i32.add
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 16
i32.add
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 20
i32.add
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 24
i32.add
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.const 28
i32.sub
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.const 24
i32.sub
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.const 20
i32.sub
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.const 16
i32.sub
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i32.store
i32.const 24
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 4
i32.and
i32.add
2019-03-17 01:35:44 +01:00
local.set $3
local.get $0
2019-03-16 11:24:13 +01:00
local.get $3
i32.add
2019-03-17 01:35:44 +01:00
local.set $0
local.get $2
local.get $3
2019-03-16 11:24:13 +01:00
i32.sub
2019-03-17 01:35:44 +01:00
local.set $2
local.get $4
2019-03-16 11:24:13 +01:00
i64.extend_i32_u
2019-03-17 01:35:44 +01:00
local.get $4
2019-03-16 11:24:13 +01:00
i64.extend_i32_u
i64.const 32
i64.shl
i64.or
2019-03-17 01:35:44 +01:00
local.set $5
2019-03-16 11:24:13 +01:00
block $break|0
loop $continue|0
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 32
i32.ge_u
if
block
2019-03-17 01:35:44 +01:00
local.get $0
local.get $5
2019-03-16 11:24:13 +01:00
i64.store
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 8
i32.add
2019-03-17 01:35:44 +01:00
local.get $5
2019-03-16 11:24:13 +01:00
i64.store
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 16
i32.add
2019-03-17 01:35:44 +01:00
local.get $5
2019-03-16 11:24:13 +01:00
i64.store
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 24
i32.add
local.get $5
2019-03-17 01:35:44 +01:00
i64.store
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 32
i32.sub
2019-03-17 01:35:44 +01:00
local.set $2
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 32
i32.add
2019-03-17 01:35:44 +01:00
local.set $0
2019-03-16 11:24:13 +01:00
end
br $continue|0
end
end
end
2019-03-14 07:45:59 +01:00
end
)
2019-03-16 11:24:13 +01:00
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-03-14 07:45:59 +01:00
(local $2 i32)
2019-03-16 11:24:13 +01:00
(local $3 i32)
2019-03-14 07:45:59 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
global.get $~lib/runtime/MAX_BYTELENGTH
2019-03-14 07:45:59 +01:00
i32.gt_u
if
i32.const 0
2019-03-16 11:24:13 +01:00
i32.const 112
2019-03-14 07:45:59 +01:00
i32.const 24
2019-03-16 11:24:13 +01:00
i32.const 43
2019-03-14 07:45:59 +01:00
call $~lib/env/abort
unreachable
end
2019-03-16 11:24:13 +01:00
block $~lib/runtime/ALLOCATE|inlined.0 (result i32)
2019-02-06 23:42:43 +01:00
local.get $1
2019-03-14 07:45:59 +01:00
local.set $2
local.get $2
2019-03-16 11:24:13 +01:00
call $~lib/runtime/doAllocate
end
local.set $3
local.get $3
i32.const 0
local.get $1
call $~lib/memory/memory.fill
block $~lib/runtime/REGISTER<ArrayBuffer>|inlined.0 (result i32)
local.get $3
local.set $2
2019-03-14 07:45:59 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 3
call $~lib/runtime/doRegister
end
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<String,usize>#clear (; 10 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
i32.const 0
i32.const 48
call $~lib/arraybuffer/ArrayBuffer#constructor
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<String,usize>#constructor (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
2019-02-02 16:03:21 +01:00
block (result i32)
local.get $0
2019-02-02 16:03:21 +01:00
i32.eqz
if
2019-03-16 11:24:13 +01:00
block $~lib/runtime/REGISTER<Map<String,usize>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
local.set $1
local.get $1
i32.const 2
call $~lib/runtime/doRegister
end
local.set $0
end
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store offset=4
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store offset=8
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store offset=12
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store offset=16
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store offset=20
local.get $0
end
call $~lib/map/Map<String,usize>#clear
local.get $0
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<usize,String>#clear (; 12 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
i32.const 0
i32.const 48
call $~lib/arraybuffer/ArrayBuffer#constructor
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<usize,String>#constructor (; 13 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
2019-02-02 16:03:21 +01:00
block (result i32)
local.get $0
2019-02-02 16:03:21 +01:00
i32.eqz
if
2019-03-16 11:24:13 +01:00
block $~lib/runtime/REGISTER<Map<usize,String>>|inlined.0 (result i32)
i32.const 24
call $~lib/runtime/ALLOCATE
local.set $1
local.get $1
i32.const 4
call $~lib/runtime/doRegister
end
local.set $0
end
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store offset=4
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store offset=8
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store offset=12
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store offset=16
local.get $0
2019-02-02 16:03:21 +01:00
i32.const 0
i32.store offset=20
local.get $0
end
call $~lib/map/Map<usize,String>#clear
local.get $0
)
2019-03-16 11:24:13 +01:00
(func $~lib/string/String#get:length (; 14 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-03-14 07:45:59 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
global.get $~lib/runtime/HEADER_SIZE
2019-03-14 07:45:59 +01:00
i32.sub
i32.load offset=4
i32.const 1
i32.shr_u
)
2019-03-16 11:24:13 +01:00
(func $~lib/util/hash/hashStr (; 15 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
i32.const -2128831035
local.set $1
2019-03-17 01:35:44 +01:00
local.get $0
i32.const 0
i32.ne
if
block $break|0
block
i32.const 0
local.set $2
local.get $0
call $~lib/string/String#get:length
i32.const 1
i32.shl
local.set $3
end
loop $repeat|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 $repeat|0
unreachable
end
unreachable
end
end
local.get $1
)
2019-03-16 11:24:13 +01:00
(func $~lib/util/string/compareImpl (; 16 ;) (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)
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
2019-03-14 07:45:59 +01:00
i32.load16_u
local.get $7
2019-03-14 07:45:59 +01:00
i32.load16_u
i32.sub
local.tee $5
i32.eqz
else
local.get $4
end
if
block
local.get $4
i32.const 1
i32.sub
local.set $4
local.get $6
2018-11-19 13:23:45 +02:00
i32.const 2
i32.add
local.set $6
local.get $7
2018-11-19 13:23:45 +02:00
i32.const 2
i32.add
local.set $7
end
br $continue|0
end
end
end
local.get $5
)
2019-03-16 11:24:13 +01:00
(func $~lib/string/String.eq (; 17 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
local.get $1
i32.eq
if
i32.const 1
return
end
local.get $0
i32.const 0
i32.eq
local.tee $2
if (result i32)
local.get $2
else
local.get $1
i32.const 0
i32.eq
end
if
i32.const 0
return
end
local.get $0
2019-03-14 07:45:59 +01:00
call $~lib/string/String#get:length
local.set $3
local.get $3
local.get $1
2019-03-14 07:45:59 +01:00
call $~lib/string/String#get:length
i32.ne
if
i32.const 0
return
end
local.get $0
i32.const 0
local.get $1
i32.const 0
local.get $3
2019-03-14 07:45:59 +01:00
call $~lib/util/string/compareImpl
i32.eqz
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<String,usize>#find (; 18 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 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
2019-03-14 07:45:59 +01:00
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
if
block
local.get $3
i32.load offset=8
i32.const 1
i32.and
i32.eqz
local.tee $4
if (result i32)
local.get $3
i32.load
local.get $1
2019-03-14 07:45:59 +01:00
call $~lib/string/String.eq
else
local.get $4
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
end
br $continue|0
end
end
end
i32.const 0
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<String,usize>#has (; 19 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-02-06 23:42:43 +01:00
(local $2 i32)
local.get $0
local.get $1
2019-03-14 07:45:59 +01:00
block $~lib/util/hash/HASH<String>|inlined.0 (result i32)
local.get $1
2019-02-06 23:42:43 +01:00
local.set $2
local.get $2
2019-03-14 07:45:59 +01:00
call $~lib/util/hash/hashStr
br $~lib/util/hash/HASH<String>|inlined.0
end
call $~lib/map/Map<String,usize>#find
i32.const 0
i32.ne
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<String,usize>#get (; 20 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
2019-02-06 23:42:43 +01:00
(local $3 i32)
local.get $0
local.get $1
2019-03-14 07:45:59 +01:00
block $~lib/util/hash/HASH<String>|inlined.1 (result i32)
local.get $1
2019-02-06 23:42:43 +01:00
local.set $2
local.get $2
2019-03-14 07:45:59 +01:00
call $~lib/util/hash/hashStr
br $~lib/util/hash/HASH<String>|inlined.1
end
call $~lib/map/Map<String,usize>#find
2019-02-06 23:42:43 +01:00
local.set $3
local.get $3
if (result i32)
2019-02-06 23:42:43 +01:00
local.get $3
i32.load offset=4
else
unreachable
end
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<String,usize>#rehash (; 21 ;) (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
block $~lib/map/ENTRY_SIZE<String,usize>|inlined.1 (result i32)
i32.const 12
end
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
block $~lib/map/ENTRY_SIZE<String,usize>|inlined.2 (result i32)
i32.const 12
end
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
if
block
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
2019-03-14 07:45:59 +01:00
block $~lib/util/hash/HASH<String>|inlined.3 (result i32)
local.get $9
i32.load
local.set $11
local.get $11
2019-03-14 07:45:59 +01:00
call $~lib/util/hash/hashStr
br $~lib/util/hash/HASH<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
2019-03-14 07:45:59 +01:00
i32.load
i32.store offset=8
local.get $12
local.get $8
2019-03-14 07:45:59 +01:00
i32.store
local.get $8
block $~lib/map/ENTRY_SIZE<String,usize>|inlined.3 (result i32)
i32.const 12
end
i32.add
local.set $8
end
local.get $6
block $~lib/map/ENTRY_SIZE<String,usize>|inlined.4 (result i32)
i32.const 12
end
i32.add
local.set $6
end
br $continue|0
end
end
end
local.get $0
local.get $3
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.get $5
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
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<String,usize>#set (; 22 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
2019-03-14 07:45:59 +01:00
block $~lib/util/hash/HASH<String>|inlined.2 (result i32)
local.get $1
2019-02-06 23:42:43 +01:00
local.set $3
local.get $3
2019-03-14 07:45:59 +01:00
call $~lib/util/hash/hashStr
br $~lib/util/hash/HASH<String>|inlined.2
end
2019-02-06 23:42:43 +01:00
local.set $4
local.get $0
local.get $1
local.get $4
2019-02-06 23:42:43 +01:00
call $~lib/map/Map<String,usize>#find
local.set $5
local.get $5
if
2019-02-06 23:42:43 +01:00
local.get $5
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<String,usize>#rehash
end
local.get $0
i32.load offset=8
2019-02-06 23:42:43 +01:00
local.set $3
local.get $3
block (result i32)
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
end
block $~lib/map/ENTRY_SIZE<String,usize>|inlined.5 (result i32)
i32.const 12
end
i32.mul
i32.add
2019-02-06 23:42:43 +01:00
local.set $5
local.get $5
local.get $1
i32.store
2019-02-06 23:42:43 +01:00
local.get $5
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
2019-02-06 23:42:43 +01:00
local.get $4
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $6
2019-02-06 23:42:43 +01:00
local.get $5
local.get $6
2019-03-14 07:45:59 +01:00
i32.load
i32.store offset=8
local.get $6
2019-02-06 23:42:43 +01:00
local.get $5
2019-03-14 07:45:59 +01:00
i32.store
end
)
2019-03-16 11:24:13 +01:00
(func $~lib/util/hash/hash32 (; 23 ;) (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
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<usize,String>#find (; 24 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 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
2019-03-14 07:45:59 +01:00
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
if
block
local.get $3
i32.load offset=8
i32.const 1
i32.and
i32.eqz
local.tee $4
if (result i32)
local.get $3
i32.load
local.get $1
i32.eq
else
local.get $4
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
end
br $continue|0
end
end
end
i32.const 0
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<usize,String>#rehash (; 25 ;) (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
block $~lib/map/ENTRY_SIZE<usize,String>|inlined.1 (result i32)
i32.const 12
end
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
block $~lib/map/ENTRY_SIZE<usize,String>|inlined.2 (result i32)
i32.const 12
end
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
if
block
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
2019-03-14 07:45:59 +01:00
block $~lib/util/hash/HASH<usize>|inlined.1 (result i32)
local.get $9
i32.load
local.set $11
local.get $11
2019-03-14 07:45:59 +01:00
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
2019-03-14 07:45:59 +01:00
i32.load
i32.store offset=8
local.get $12
local.get $8
2019-03-14 07:45:59 +01:00
i32.store
local.get $8
block $~lib/map/ENTRY_SIZE<usize,String>|inlined.3 (result i32)
i32.const 12
end
i32.add
local.set $8
end
local.get $6
block $~lib/map/ENTRY_SIZE<usize,String>|inlined.4 (result i32)
i32.const 12
end
i32.add
local.set $6
end
br $continue|0
end
end
end
local.get $0
local.get $3
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.get $5
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
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<usize,String>#set (; 26 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
2019-03-14 07:45:59 +01:00
block $~lib/util/hash/HASH<usize>|inlined.0 (result i32)
local.get $1
2019-02-06 23:42:43 +01:00
local.set $3
local.get $3
2019-03-14 07:45:59 +01:00
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<usize>|inlined.0
end
2019-02-06 23:42:43 +01:00
local.set $4
local.get $0
local.get $1
local.get $4
2019-02-06 23:42:43 +01:00
call $~lib/map/Map<usize,String>#find
local.set $5
local.get $5
if
2019-02-06 23:42:43 +01:00
local.get $5
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<usize,String>#rehash
end
local.get $0
i32.load offset=8
2019-02-06 23:42:43 +01:00
local.set $3
local.get $3
block (result i32)
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
end
block $~lib/map/ENTRY_SIZE<usize,String>|inlined.5 (result i32)
i32.const 12
end
i32.mul
i32.add
2019-02-06 23:42:43 +01:00
local.set $5
local.get $5
local.get $1
i32.store
2019-02-06 23:42:43 +01:00
local.get $5
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
2019-02-06 23:42:43 +01:00
local.get $4
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $6
2019-02-06 23:42:43 +01:00
local.get $5
local.get $6
2019-03-14 07:45:59 +01:00
i32.load
i32.store offset=8
local.get $6
2019-02-06 23:42:43 +01:00
local.get $5
2019-03-14 07:45:59 +01:00
i32.store
end
)
2019-03-16 11:24:13 +01:00
(func $~lib/symbol/_Symbol.for (; 27 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
global.get $~lib/symbol/stringToId
i32.eqz
if
i32.const 0
call $~lib/map/Map<String,usize>#constructor
global.set $~lib/symbol/stringToId
i32.const 0
call $~lib/map/Map<usize,String>#constructor
global.set $~lib/symbol/idToString
else
global.get $~lib/symbol/stringToId
local.get $0
call $~lib/map/Map<String,usize>#has
if
global.get $~lib/symbol/stringToId
local.get $0
call $~lib/map/Map<String,usize>#get
return
end
end
block (result i32)
global.get $~lib/symbol/nextId
local.tee $1
i32.const 1
i32.add
global.set $~lib/symbol/nextId
local.get $1
end
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<String,usize>#set
global.get $~lib/symbol/idToString
local.get $2
local.get $0
call $~lib/map/Map<usize,String>#set
local.get $2
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<usize,String>#has (; 28 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-02-06 23:42:43 +01:00
(local $2 i32)
local.get $0
local.get $1
2019-03-14 07:45:59 +01:00
block $~lib/util/hash/HASH<usize>|inlined.2 (result i32)
local.get $1
2019-02-06 23:42:43 +01:00
local.set $2
local.get $2
2019-03-14 07:45:59 +01:00
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<usize>|inlined.2
end
call $~lib/map/Map<usize,String>#find
i32.const 0
i32.ne
)
2019-03-16 11:24:13 +01:00
(func $~lib/map/Map<usize,String>#get (; 29 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
2019-02-06 23:42:43 +01:00
(local $3 i32)
local.get $0
local.get $1
2019-03-14 07:45:59 +01:00
block $~lib/util/hash/HASH<usize>|inlined.3 (result i32)
local.get $1
2019-02-06 23:42:43 +01:00
local.set $2
local.get $2
2019-03-14 07:45:59 +01:00
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<usize>|inlined.3
end
call $~lib/map/Map<usize,String>#find
2019-02-06 23:42:43 +01:00
local.set $3
local.get $3
if (result i32)
2019-02-06 23:42:43 +01:00
local.get $3
i32.load offset=4
else
unreachable
end
)
2019-03-16 11:24:13 +01:00
(func $~lib/symbol/_Symbol.keyFor (; 30 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
global.get $~lib/symbol/idToString
i32.const 0
i32.ne
local.tee $1
if (result i32)
global.get $~lib/symbol/idToString
local.get $0
call $~lib/map/Map<usize,String>#has
else
local.get $1
end
if (result i32)
global.get $~lib/symbol/idToString
local.get $0
call $~lib/map/Map<usize,String>#get
else
i32.const 0
end
)
2019-03-16 11:24:13 +01:00
(func $~lib/util/memory/memcpy (; 31 ;) (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
local.get $2
end
if
block
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
end
br $continue|0
end
end
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
if
block
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
end
br $continue|1
end
end
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
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
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
block
local.get $1
i32.load
local.set $3
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
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
if
block
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
end
br $continue|3
end
end
end
br $break|2
unreachable
end
unreachable
end
block
local.get $1
i32.load
local.set $3
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
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
if
block
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
end
br $continue|4
end
end
end
br $break|2
unreachable
end
unreachable
end
block
local.get $1
i32.load
local.set $3
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
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
if
block
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
end
br $continue|5
end
end
end
br $break|2
unreachable
end
unreachable
end
end
local.get $2
i32.const 16
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
local.get $2
i32.const 8
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
local.get $2
i32.const 4
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
local.get $2
i32.const 2
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
local.get $2
i32.const 1
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
)
2019-03-16 11:24:13 +01:00
(func $~lib/memory/memory.copy (; 32 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
2019-03-16 11:24:13 +01:00
block $~lib/util/memory/memmove|inlined.0
local.get $0
2019-03-16 11:24:13 +01:00
local.get $1
i32.eq
if
2019-03-16 11:24:13 +01:00
br $~lib/util/memory/memmove|inlined.0
end
2019-03-17 01:35:44 +01:00
local.get $1
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.le_u
2019-03-17 01:35:44 +01:00
local.tee $3
2019-03-16 11:24:13 +01:00
if (result i32)
local.get $3
2019-03-17 01:35:44 +01:00
else
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.le_u
end
if
2019-03-17 01:35:44 +01:00
local.get $0
local.get $1
local.get $2
2019-03-16 11:24:13 +01:00
call $~lib/util/memory/memcpy
br $~lib/util/memory/memmove|inlined.0
end
2019-03-17 01:35:44 +01:00
local.get $0
local.get $1
2019-03-16 11:24:13 +01:00
i32.lt_u
if
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.const 7
i32.and
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 7
i32.and
i32.eq
if
block $break|0
loop $continue|0
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 7
i32.and
if
block
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.eqz
if
br $~lib/util/memory/memmove|inlined.0
end
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 1
i32.sub
2019-03-17 01:35:44 +01:00
local.set $2
2019-03-16 11:24:13 +01:00
block (result i32)
2019-03-17 01:35:44 +01:00
local.get $0
local.tee $3
2019-03-16 11:24:13 +01:00
i32.const 1
i32.add
2019-03-17 01:35:44 +01:00
local.set $0
local.get $3
2019-03-16 11:24:13 +01:00
end
block (result i32)
2019-03-17 01:35:44 +01:00
local.get $1
local.tee $3
2019-03-16 11:24:13 +01:00
i32.const 1
i32.add
2019-03-17 01:35:44 +01:00
local.set $1
local.get $3
2019-03-16 11:24:13 +01:00
end
i32.load8_u
i32.store8
end
br $continue|0
end
end
end
block $break|1
loop $continue|1
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 8
i32.ge_u
if
block
2019-03-17 01:35:44 +01:00
local.get $0
local.get $1
2019-03-16 11:24:13 +01:00
i64.load
i64.store
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 8
i32.sub
2019-03-17 01:35:44 +01:00
local.set $2
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 8
i32.add
2019-03-17 01:35:44 +01:00
local.set $0
local.get $1
2019-03-16 11:24:13 +01:00
i32.const 8
i32.add
2019-03-17 01:35:44 +01:00
local.set $1
2019-03-16 11:24:13 +01:00
end
br $continue|1
end
end
end
end
block $break|2
loop $continue|2
2019-03-17 01:35:44 +01:00
local.get $2
if
block
block (result i32)
2019-03-17 01:35:44 +01:00
local.get $0
local.tee $3
i32.const 1
i32.add
2019-03-17 01:35:44 +01:00
local.set $0
local.get $3
end
block (result i32)
2019-03-17 01:35:44 +01:00
local.get $1
local.tee $3
i32.const 1
i32.add
2019-03-17 01:35:44 +01:00
local.set $1
local.get $3
end
i32.load8_u
i32.store8
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 1
i32.sub
2019-03-17 01:35:44 +01:00
local.set $2
end
2019-03-16 11:24:13 +01:00
br $continue|2
end
end
end
2019-03-16 11:24:13 +01:00
else
2019-03-17 01:35:44 +01:00
local.get $1
2019-03-16 11:24:13 +01:00
i32.const 7
i32.and
2019-03-17 01:35:44 +01:00
local.get $0
2019-03-16 11:24:13 +01:00
i32.const 7
i32.and
i32.eq
if
block $break|3
loop $continue|3
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.const 7
i32.and
if
block
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.eqz
if
br $~lib/util/memory/memmove|inlined.0
end
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 1
i32.sub
2019-03-17 01:35:44 +01:00
local.tee $2
2019-03-16 11:24:13 +01:00
i32.add
2019-03-17 01:35:44 +01:00
local.get $1
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.load8_u
i32.store8
end
br $continue|3
end
end
end
2019-03-16 11:24:13 +01:00
block $break|4
loop $continue|4
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 8
i32.ge_u
if
block
2019-03-17 01:35:44 +01:00
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 8
i32.sub
2019-03-17 01:35:44 +01:00
local.set $2
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
2019-03-17 01:35:44 +01:00
local.get $1
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i64.load
i64.store
end
2019-03-16 11:24:13 +01:00
br $continue|4
end
end
end
end
2019-03-16 11:24:13 +01:00
block $break|5
loop $continue|5
2019-03-17 01:35:44 +01:00
local.get $2
if
2019-03-17 01:35:44 +01:00
local.get $0
local.get $2
2019-03-16 11:24:13 +01:00
i32.const 1
i32.sub
2019-03-17 01:35:44 +01:00
local.tee $2
2019-03-16 11:24:13 +01:00
i32.add
2019-03-17 01:35:44 +01:00
local.get $1
local.get $2
2019-03-16 11:24:13 +01:00
i32.add
i32.load8_u
i32.store8
br $continue|5
end
end
end
end
end
)
2019-03-16 11:24:13 +01:00
(func $~lib/string/String#concat (; 33 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
2019-03-14 07:45:59 +01:00
(local $6 i32)
local.get $0
i32.const 0
i32.ne
i32.eqz
if
i32.const 0
2019-03-14 07:45:59 +01:00
i32.const 528
2019-03-16 11:24:13 +01:00
i32.const 65
i32.const 4
call $~lib/env/abort
unreachable
end
local.get $1
i32.const 0
i32.eq
if
2019-03-14 07:45:59 +01:00
i32.const 512
local.set $1
end
local.get $0
2019-03-14 07:45:59 +01:00
call $~lib/string/String#get:length
i32.const 1
i32.shl
local.set $2
local.get $1
2019-03-14 07:45:59 +01:00
call $~lib/string/String#get:length
i32.const 1
i32.shl
local.set $3
local.get $2
local.get $3
i32.add
local.set $4
local.get $4
i32.const 0
i32.eq
if
2019-03-14 07:45:59 +01:00
i32.const 160
return
end
2019-03-16 11:24:13 +01:00
block $~lib/runtime/ALLOCATE|inlined.1 (result i32)
local.get $4
local.set $5
local.get $5
call $~lib/runtime/doAllocate
end
local.set $6
local.get $6
local.get $0
local.get $2
2019-03-14 07:45:59 +01:00
call $~lib/memory/memory.copy
2019-03-16 11:24:13 +01:00
local.get $6
local.get $2
2019-03-14 07:45:59 +01:00
i32.add
local.get $1
local.get $3
2019-03-14 07:45:59 +01:00
call $~lib/memory/memory.copy
2019-03-16 11:24:13 +01:00
block $~lib/runtime/REGISTER<String>|inlined.0 (result i32)
2019-03-14 07:45:59 +01:00
local.get $6
2019-03-16 11:24:13 +01:00
local.set $5
local.get $5
2019-03-14 07:45:59 +01:00
i32.const 1
2019-03-16 11:24:13 +01:00
call $~lib/runtime/doRegister
2019-03-14 07:45:59 +01:00
end
)
2019-03-16 11:24:13 +01:00
(func $~lib/string/String.concat (; 34 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
i32.eqz
if
2019-03-14 07:45:59 +01:00
i32.const 512
local.set $0
end
local.get $0
local.get $1
call $~lib/string/String#concat
)
2019-03-16 11:24:13 +01:00
(func $~lib/symbol/_Symbol#toString (; 35 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
local.set $1
2019-03-14 07:45:59 +01:00
i32.const 160
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
block
2019-03-14 07:45:59 +01:00
i32.const 168
local.set $2
br $break|0
unreachable
end
unreachable
end
block
2019-03-14 07:45:59 +01:00
i32.const 200
local.set $2
br $break|0
unreachable
end
unreachable
end
block
i32.const 248
local.set $2
br $break|0
unreachable
end
unreachable
end
block
i32.const 272
local.set $2
br $break|0
unreachable
end
unreachable
end
block
2019-03-14 07:45:59 +01:00
i32.const 296
local.set $2
br $break|0
unreachable
end
unreachable
end
block
2019-03-14 07:45:59 +01:00
i32.const 320
local.set $2
br $break|0
unreachable
end
unreachable
end
block
2019-03-14 07:45:59 +01:00
i32.const 344
local.set $2
br $break|0
unreachable
end
unreachable
end
block
2019-03-14 07:45:59 +01:00
i32.const 368
local.set $2
br $break|0
unreachable
end
unreachable
end
block
2019-03-14 07:45:59 +01:00
i32.const 392
local.set $2
br $break|0
unreachable
end
unreachable
end
block
2019-03-14 07:45:59 +01:00
i32.const 424
local.set $2
br $break|0
unreachable
end
unreachable
end
block
2019-03-14 07:45:59 +01:00
i32.const 456
local.set $2
br $break|0
unreachable
end
unreachable
end
block
global.get $~lib/symbol/idToString
i32.const 0
i32.ne
local.tee $3
if (result i32)
global.get $~lib/symbol/idToString
local.get $1
call $~lib/map/Map<usize,String>#has
else
local.get $3
end
if
global.get $~lib/symbol/idToString
local.get $1
call $~lib/map/Map<usize,String>#get
local.set $2
end
br $break|0
unreachable
end
unreachable
end
2019-03-14 07:45:59 +01:00
i32.const 488
local.get $2
2019-03-14 07:45:59 +01:00
call $~lib/string/String.concat
i32.const 568
call $~lib/string/String.concat
)
2019-03-16 11:24:13 +01:00
(func $start:std/symbol (; 36 ;) (type $FUNCSIG$v)
2019-03-14 07:45:59 +01:00
i32.const 16
call $~lib/symbol/Symbol
global.set $std/symbol/sym1
2019-03-14 07:45:59 +01:00
i32.const 16
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
2019-03-14 07:45:59 +01:00
i32.const 32
i32.const 6
i32.const 0
call $~lib/env/abort
unreachable
end
2019-03-14 07:45:59 +01:00
global.get $~lib/memory/HEAP_BASE
i32.const 7
i32.add
i32.const 7
i32.const -1
i32.xor
i32.and
global.set $~lib/allocator/arena/startOffset
global.get $~lib/allocator/arena/startOffset
global.set $~lib/allocator/arena/offset
i32.const 16
call $~lib/symbol/_Symbol.for
global.set $std/symbol/sym3
2019-03-14 07:45:59 +01:00
i32.const 16
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
2019-03-14 07:45:59 +01:00
i32.const 32
i32.const 11
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/symbol/sym1
2019-03-14 07:45:59 +01:00
call $~lib/symbol/_Symbol.keyFor
global.set $std/symbol/key1
global.get $std/symbol/sym2
2019-03-14 07:45:59 +01:00
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
2019-03-14 07:45:59 +01:00
i32.const 32
i32.const 16
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/symbol/key2
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
2019-03-14 07:45:59 +01:00
i32.const 32
i32.const 17
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/symbol/sym3
2019-03-14 07:45:59 +01:00
call $~lib/symbol/_Symbol.keyFor
global.set $std/symbol/key3
global.get $std/symbol/sym4
2019-03-14 07:45:59 +01:00
call $~lib/symbol/_Symbol.keyFor
global.set $std/symbol/key4
global.get $std/symbol/key3
2019-03-14 07:45:59 +01:00
i32.const 16
call $~lib/string/String.eq
i32.eqz
if
i32.const 0
2019-03-14 07:45:59 +01:00
i32.const 32
i32.const 22
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/symbol/key3
global.get $std/symbol/key4
2019-03-14 07:45:59 +01:00
call $~lib/string/String.eq
i32.eqz
if
i32.const 0
2019-03-14 07:45:59 +01:00
i32.const 32
i32.const 23
i32.const 0
call $~lib/env/abort
unreachable
end
i32.const 0
call $~lib/symbol/Symbol
2019-03-14 07:45:59 +01:00
call $~lib/symbol/_Symbol#toString
i32.const 584
call $~lib/string/String.eq
i32.eqz
if
i32.const 0
2019-03-14 07:45:59 +01:00
i32.const 32
i32.const 25
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/symbol/sym3
2019-03-14 07:45:59 +01:00
call $~lib/symbol/_Symbol#toString
i32.const 608
call $~lib/string/String.eq
i32.eqz
if
i32.const 0
2019-03-14 07:45:59 +01:00
i32.const 32
i32.const 26
i32.const 0
call $~lib/env/abort
unreachable
end
2019-03-14 07:45:59 +01:00
global.get $~lib/symbol/_Symbol.hasInstance
global.set $std/symbol/hasInstance
2019-03-14 07:45:59 +01:00
global.get $~lib/symbol/_Symbol.isConcatSpreadable
global.set $std/symbol/isConcatSpreadable
global.get $std/symbol/hasInstance
2019-03-14 07:45:59 +01:00
call $~lib/symbol/_Symbol#toString
i32.const 640
call $~lib/string/String.eq
i32.eqz
if
i32.const 0
2019-03-14 07:45:59 +01:00
i32.const 32
i32.const 30
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/symbol/isConcatSpreadable
2019-03-14 07:45:59 +01:00
call $~lib/symbol/_Symbol#toString
i32.const 688
call $~lib/string/String.eq
i32.eqz
if
i32.const 0
2019-03-14 07:45:59 +01:00
i32.const 32
i32.const 31
i32.const 0
call $~lib/env/abort
unreachable
end
2019-03-14 07:45:59 +01:00
global.get $~lib/symbol/_Symbol.hasInstance
drop
2019-03-14 07:45:59 +01:00
global.get $~lib/symbol/_Symbol.isConcatSpreadable
drop
)
2019-03-16 11:24:13 +01:00
(func $start (; 37 ;) (type $FUNCSIG$v)
call $start:std/symbol
)
2019-03-16 11:24:13 +01:00
(func $null (; 38 ;) (type $FUNCSIG$v)
)
)