mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
3464 lines
65 KiB
Plaintext
3464 lines
65 KiB
Plaintext
(module
|
|
(type $ii (func (param i32) (result i32)))
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
(type $iv (func (param i32)))
|
|
(type $iiii (func (param i32 i32 i32) (result i32)))
|
|
(type $iiiv (func (param i32 i32 i32)))
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
(type $iiiiii (func (param i32 i32 i32 i32 i32) (result i32)))
|
|
(type $iiv (func (param i32 i32)))
|
|
(type $iiiiiv (func (param i32 i32 i32 i32 i32)))
|
|
(type $v (func))
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
(memory $0 1)
|
|
(data (i32.const 8) "\03\00\00\001\002\003\00")
|
|
(data (i32.const 24) "\0d\00\00\00s\00t\00d\00/\00s\00y\00m\00b\00o\00l\00.\00t\00s\00")
|
|
(data (i32.const 56) "\13\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 104) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")
|
|
(data (i32.const 168) "\00\00\00\00")
|
|
(data (i32.const 176) "\0b\00\00\00h\00a\00s\00I\00n\00s\00t\00a\00n\00c\00e\00")
|
|
(data (i32.const 208) "\12\00\00\00i\00s\00C\00o\00n\00c\00a\00t\00S\00p\00r\00e\00a\00d\00a\00b\00l\00e\00")
|
|
(data (i32.const 248) "\08\00\00\00i\00s\00R\00e\00g\00E\00x\00p\00")
|
|
(data (i32.const 272) "\05\00\00\00m\00a\00t\00c\00h\00")
|
|
(data (i32.const 288) "\07\00\00\00r\00e\00p\00l\00a\00c\00e\00")
|
|
(data (i32.const 312) "\06\00\00\00s\00e\00a\00r\00c\00h\00")
|
|
(data (i32.const 328) "\07\00\00\00s\00p\00e\00c\00i\00e\00s\00")
|
|
(data (i32.const 352) "\05\00\00\00s\00p\00l\00i\00t\00")
|
|
(data (i32.const 368) "\0b\00\00\00t\00o\00P\00r\00i\00m\00i\00t\00i\00v\00e\00")
|
|
(data (i32.const 400) "\0b\00\00\00t\00o\00S\00t\00r\00i\00n\00g\00T\00a\00g\00")
|
|
(data (i32.const 432) "\0b\00\00\00u\00n\00s\00c\00o\00p\00a\00b\00l\00e\00s\00")
|
|
(data (i32.const 464) "\07\00\00\00S\00y\00m\00b\00o\00l\00(\00")
|
|
(data (i32.const 488) "\04\00\00\00n\00u\00l\00l\00")
|
|
(data (i32.const 504) "\0e\00\00\00~\00l\00i\00b\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s\00")
|
|
(data (i32.const 536) "\17\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s\00")
|
|
(data (i32.const 592) "\01\00\00\00)\00")
|
|
(data (i32.const 600) "\08\00\00\00S\00y\00m\00b\00o\00l\00(\00)\00")
|
|
(data (i32.const 624) "\0b\00\00\00S\00y\00m\00b\00o\00l\00(\001\002\003\00)\00")
|
|
(data (i32.const 656) "\13\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 704) "\1a\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 anyfunc)
|
|
(elem (i32.const 0) $null)
|
|
(global $~lib/internal/allocator/AL_BITS i32 (i32.const 3))
|
|
(global $~lib/internal/allocator/AL_SIZE i32 (i32.const 8))
|
|
(global $~lib/internal/allocator/AL_MASK i32 (i32.const 7))
|
|
(global $~lib/internal/allocator/MAX_SIZE_32 i32 (i32.const 1073741824))
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
|
(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/map/INITIAL_CAPACITY i32 (i32.const 4))
|
|
(global $~lib/map/BUCKET_SIZE i32 (i32.const 4))
|
|
(global $~lib/internal/arraybuffer/HEADER_SIZE i32 (i32.const 8))
|
|
(global $~lib/internal/arraybuffer/MAX_BLENGTH i32 (i32.const 1073741816))
|
|
(global $~lib/symbol/idToString (mut i32) (i32.const 0))
|
|
(global $~lib/internal/hash/FNV_OFFSET i32 (i32.const -2128831035))
|
|
(global $~lib/internal/string/HEADER_SIZE i32 (i32.const 4))
|
|
(global $~lib/internal/hash/FNV_PRIME i32 (i32.const 16777619))
|
|
(global $~lib/map/EMPTY i32 (i32.const 1))
|
|
(global $~lib/map/FREE_FACTOR f64 (f64.const 0.75))
|
|
(global $~lib/map/FILL_FACTOR f64 (f64.const 2.6666666666666665))
|
|
(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/internal/string/MAX_LENGTH i32 (i32.const 536870910))
|
|
(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 $HEAP_BASE i32 (i32.const 760))
|
|
(export "memory" (memory $0))
|
|
(export "table" (table $0))
|
|
(start $start)
|
|
(func $~lib/symbol/Symbol (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
block (result i32)
|
|
get_global $~lib/symbol/nextId
|
|
tee_local $1
|
|
i32.const 1
|
|
i32.add
|
|
set_global $~lib/symbol/nextId
|
|
get_local $1
|
|
end
|
|
set_local $2
|
|
get_local $2
|
|
i32.eqz
|
|
if
|
|
unreachable
|
|
end
|
|
get_local $2
|
|
)
|
|
(func $~lib/allocator/arena/__memory_allocate (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
get_local $0
|
|
get_global $~lib/internal/allocator/MAX_SIZE_32
|
|
i32.gt_u
|
|
if
|
|
unreachable
|
|
end
|
|
get_global $~lib/allocator/arena/offset
|
|
set_local $1
|
|
get_local $1
|
|
get_local $0
|
|
tee_local $2
|
|
i32.const 1
|
|
tee_local $3
|
|
get_local $2
|
|
get_local $3
|
|
i32.gt_u
|
|
select
|
|
i32.add
|
|
get_global $~lib/internal/allocator/AL_MASK
|
|
i32.add
|
|
get_global $~lib/internal/allocator/AL_MASK
|
|
i32.const -1
|
|
i32.xor
|
|
i32.and
|
|
set_local $4
|
|
current_memory
|
|
set_local $5
|
|
get_local $4
|
|
get_local $5
|
|
i32.const 16
|
|
i32.shl
|
|
i32.gt_u
|
|
if
|
|
get_local $4
|
|
get_local $1
|
|
i32.sub
|
|
i32.const 65535
|
|
i32.add
|
|
i32.const 65535
|
|
i32.const -1
|
|
i32.xor
|
|
i32.and
|
|
i32.const 16
|
|
i32.shr_u
|
|
set_local $2
|
|
get_local $5
|
|
tee_local $3
|
|
get_local $2
|
|
tee_local $6
|
|
get_local $3
|
|
get_local $6
|
|
i32.gt_s
|
|
select
|
|
set_local $3
|
|
get_local $3
|
|
grow_memory
|
|
i32.const 0
|
|
i32.lt_s
|
|
if
|
|
get_local $2
|
|
grow_memory
|
|
i32.const 0
|
|
i32.lt_s
|
|
if
|
|
unreachable
|
|
end
|
|
end
|
|
end
|
|
get_local $4
|
|
set_global $~lib/allocator/arena/offset
|
|
get_local $1
|
|
)
|
|
(func $~lib/memory/memory.allocate (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
|
get_local $0
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
return
|
|
)
|
|
(func $~lib/internal/arraybuffer/computeSize (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
|
i32.const 1
|
|
i32.const 32
|
|
get_local $0
|
|
get_global $~lib/internal/arraybuffer/HEADER_SIZE
|
|
i32.add
|
|
i32.const 1
|
|
i32.sub
|
|
i32.clz
|
|
i32.sub
|
|
i32.shl
|
|
)
|
|
(func $~lib/internal/arraybuffer/allocateUnsafe (; 5 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
get_local $0
|
|
get_global $~lib/internal/arraybuffer/MAX_BLENGTH
|
|
i32.le_u
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 104
|
|
i32.const 23
|
|
i32.const 2
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
block $~lib/memory/memory.allocate|inlined.0 (result i32)
|
|
get_local $0
|
|
call $~lib/internal/arraybuffer/computeSize
|
|
set_local $2
|
|
get_local $2
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
br $~lib/memory/memory.allocate|inlined.0
|
|
end
|
|
set_local $1
|
|
get_local $1
|
|
get_local $0
|
|
i32.store
|
|
get_local $1
|
|
)
|
|
(func $~lib/internal/memory/memset (; 6 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i64)
|
|
get_local $2
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
get_local $0
|
|
get_local $1
|
|
i32.store8
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 1
|
|
i32.sub
|
|
get_local $1
|
|
i32.store8
|
|
get_local $2
|
|
i32.const 2
|
|
i32.le_u
|
|
if
|
|
return
|
|
end
|
|
get_local $0
|
|
i32.const 1
|
|
i32.add
|
|
get_local $1
|
|
i32.store8
|
|
get_local $0
|
|
i32.const 2
|
|
i32.add
|
|
get_local $1
|
|
i32.store8
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 2
|
|
i32.sub
|
|
get_local $1
|
|
i32.store8
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 3
|
|
i32.sub
|
|
get_local $1
|
|
i32.store8
|
|
get_local $2
|
|
i32.const 6
|
|
i32.le_u
|
|
if
|
|
return
|
|
end
|
|
get_local $0
|
|
i32.const 3
|
|
i32.add
|
|
get_local $1
|
|
i32.store8
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 4
|
|
i32.sub
|
|
get_local $1
|
|
i32.store8
|
|
get_local $2
|
|
i32.const 8
|
|
i32.le_u
|
|
if
|
|
return
|
|
end
|
|
i32.const 0
|
|
get_local $0
|
|
i32.sub
|
|
i32.const 3
|
|
i32.and
|
|
set_local $3
|
|
get_local $0
|
|
get_local $3
|
|
i32.add
|
|
set_local $0
|
|
get_local $2
|
|
get_local $3
|
|
i32.sub
|
|
set_local $2
|
|
get_local $2
|
|
i32.const -4
|
|
i32.and
|
|
set_local $2
|
|
i32.const -1
|
|
i32.const 255
|
|
i32.div_u
|
|
get_local $1
|
|
i32.const 255
|
|
i32.and
|
|
i32.mul
|
|
set_local $4
|
|
get_local $0
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 4
|
|
i32.sub
|
|
get_local $4
|
|
i32.store
|
|
get_local $2
|
|
i32.const 8
|
|
i32.le_u
|
|
if
|
|
return
|
|
end
|
|
get_local $0
|
|
i32.const 4
|
|
i32.add
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
i32.const 8
|
|
i32.add
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 12
|
|
i32.sub
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 8
|
|
i32.sub
|
|
get_local $4
|
|
i32.store
|
|
get_local $2
|
|
i32.const 24
|
|
i32.le_u
|
|
if
|
|
return
|
|
end
|
|
get_local $0
|
|
i32.const 12
|
|
i32.add
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
i32.const 16
|
|
i32.add
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
i32.const 20
|
|
i32.add
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
i32.const 24
|
|
i32.add
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 28
|
|
i32.sub
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 24
|
|
i32.sub
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 20
|
|
i32.sub
|
|
get_local $4
|
|
i32.store
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 16
|
|
i32.sub
|
|
get_local $4
|
|
i32.store
|
|
i32.const 24
|
|
get_local $0
|
|
i32.const 4
|
|
i32.and
|
|
i32.add
|
|
set_local $3
|
|
get_local $0
|
|
get_local $3
|
|
i32.add
|
|
set_local $0
|
|
get_local $2
|
|
get_local $3
|
|
i32.sub
|
|
set_local $2
|
|
get_local $4
|
|
i64.extend_u/i32
|
|
get_local $4
|
|
i64.extend_u/i32
|
|
i64.const 32
|
|
i64.shl
|
|
i64.or
|
|
set_local $5
|
|
block $break|0
|
|
loop $continue|0
|
|
get_local $2
|
|
i32.const 32
|
|
i32.ge_u
|
|
if
|
|
block
|
|
get_local $0
|
|
get_local $5
|
|
i64.store
|
|
get_local $0
|
|
i32.const 8
|
|
i32.add
|
|
get_local $5
|
|
i64.store
|
|
get_local $0
|
|
i32.const 16
|
|
i32.add
|
|
get_local $5
|
|
i64.store
|
|
get_local $0
|
|
i32.const 24
|
|
i32.add
|
|
get_local $5
|
|
i64.store
|
|
get_local $2
|
|
i32.const 32
|
|
i32.sub
|
|
set_local $2
|
|
get_local $0
|
|
i32.const 32
|
|
i32.add
|
|
set_local $0
|
|
end
|
|
br $continue|0
|
|
end
|
|
end
|
|
end
|
|
)
|
|
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 7 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
get_local $1
|
|
get_global $~lib/internal/arraybuffer/MAX_BLENGTH
|
|
i32.gt_u
|
|
if
|
|
i32.const 0
|
|
i32.const 56
|
|
i32.const 16
|
|
i32.const 40
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
get_local $1
|
|
call $~lib/internal/arraybuffer/allocateUnsafe
|
|
set_local $3
|
|
get_local $2
|
|
i32.const 0
|
|
i32.ne
|
|
i32.eqz
|
|
if
|
|
get_local $3
|
|
get_global $~lib/internal/arraybuffer/HEADER_SIZE
|
|
i32.add
|
|
set_local $4
|
|
i32.const 0
|
|
set_local $5
|
|
get_local $4
|
|
get_local $5
|
|
get_local $1
|
|
call $~lib/internal/memory/memset
|
|
end
|
|
get_local $3
|
|
)
|
|
(func $~lib/map/Map<String,usize>#clear (; 8 ;) (type $iv) (param $0 i32)
|
|
get_local $0
|
|
i32.const 0
|
|
i32.const 16
|
|
i32.const 0
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
i32.store
|
|
get_local $0
|
|
get_global $~lib/map/INITIAL_CAPACITY
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=4
|
|
get_local $0
|
|
i32.const 0
|
|
i32.const 48
|
|
i32.const 1
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
i32.store offset=8
|
|
get_local $0
|
|
get_global $~lib/map/INITIAL_CAPACITY
|
|
i32.store offset=12
|
|
get_local $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
get_local $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
)
|
|
(func $~lib/map/Map<String,usize>#constructor (; 9 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
get_local $0
|
|
if (result i32)
|
|
get_local $0
|
|
else
|
|
block (result i32)
|
|
i32.const 24
|
|
call $~lib/memory/memory.allocate
|
|
set_local $1
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store offset=4
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store offset=8
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store offset=12
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store offset=16
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store offset=20
|
|
get_local $1
|
|
end
|
|
tee_local $0
|
|
end
|
|
tee_local $0
|
|
call $~lib/map/Map<String,usize>#clear
|
|
get_local $0
|
|
)
|
|
(func $~lib/map/Map<usize,String>#clear (; 10 ;) (type $iv) (param $0 i32)
|
|
get_local $0
|
|
i32.const 0
|
|
i32.const 16
|
|
i32.const 0
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
i32.store
|
|
get_local $0
|
|
get_global $~lib/map/INITIAL_CAPACITY
|
|
i32.const 1
|
|
i32.sub
|
|
i32.store offset=4
|
|
get_local $0
|
|
i32.const 0
|
|
i32.const 48
|
|
i32.const 1
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
i32.store offset=8
|
|
get_local $0
|
|
get_global $~lib/map/INITIAL_CAPACITY
|
|
i32.store offset=12
|
|
get_local $0
|
|
i32.const 0
|
|
i32.store offset=16
|
|
get_local $0
|
|
i32.const 0
|
|
i32.store offset=20
|
|
)
|
|
(func $~lib/map/Map<usize,String>#constructor (; 11 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
get_local $0
|
|
if (result i32)
|
|
get_local $0
|
|
else
|
|
block (result i32)
|
|
i32.const 24
|
|
call $~lib/memory/memory.allocate
|
|
set_local $1
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store offset=4
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store offset=8
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store offset=12
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store offset=16
|
|
get_local $1
|
|
i32.const 0
|
|
i32.store offset=20
|
|
get_local $1
|
|
end
|
|
tee_local $0
|
|
end
|
|
tee_local $0
|
|
call $~lib/map/Map<usize,String>#clear
|
|
get_local $0
|
|
)
|
|
(func $~lib/internal/hash/hashStr (; 12 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
get_global $~lib/internal/hash/FNV_OFFSET
|
|
set_local $1
|
|
block $break|0
|
|
block
|
|
i32.const 0
|
|
set_local $2
|
|
get_local $0
|
|
i32.load
|
|
i32.const 1
|
|
i32.shl
|
|
set_local $3
|
|
end
|
|
loop $repeat|0
|
|
get_local $2
|
|
get_local $3
|
|
i32.lt_u
|
|
i32.eqz
|
|
br_if $break|0
|
|
get_local $1
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.load8_u offset=4
|
|
i32.xor
|
|
get_global $~lib/internal/hash/FNV_PRIME
|
|
i32.mul
|
|
set_local $1
|
|
get_local $2
|
|
i32.const 1
|
|
i32.add
|
|
set_local $2
|
|
br $repeat|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
get_local $1
|
|
)
|
|
(func $~lib/internal/string/compareUnsafe (; 13 ;) (type $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
|
|
set_local $5
|
|
get_local $0
|
|
get_local $1
|
|
i32.const 1
|
|
i32.shl
|
|
i32.add
|
|
set_local $6
|
|
get_local $2
|
|
get_local $3
|
|
i32.const 1
|
|
i32.shl
|
|
i32.add
|
|
set_local $7
|
|
block $break|0
|
|
loop $continue|0
|
|
get_local $4
|
|
if (result i32)
|
|
get_local $6
|
|
i32.load16_u offset=4
|
|
get_local $7
|
|
i32.load16_u offset=4
|
|
i32.sub
|
|
tee_local $5
|
|
i32.eqz
|
|
else
|
|
get_local $4
|
|
end
|
|
if
|
|
block
|
|
get_local $4
|
|
i32.const 1
|
|
i32.sub
|
|
set_local $4
|
|
get_local $6
|
|
i32.const 2
|
|
i32.add
|
|
set_local $6
|
|
get_local $7
|
|
i32.const 2
|
|
i32.add
|
|
set_local $7
|
|
end
|
|
br $continue|0
|
|
end
|
|
end
|
|
end
|
|
get_local $5
|
|
)
|
|
(func $~lib/string/String.__eq (; 14 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
get_local $0
|
|
get_local $1
|
|
i32.eq
|
|
if
|
|
i32.const 1
|
|
return
|
|
end
|
|
get_local $0
|
|
i32.const 0
|
|
i32.eq
|
|
tee_local $2
|
|
if (result i32)
|
|
get_local $2
|
|
else
|
|
get_local $1
|
|
i32.const 0
|
|
i32.eq
|
|
end
|
|
if
|
|
i32.const 0
|
|
return
|
|
end
|
|
get_local $0
|
|
i32.load
|
|
set_local $3
|
|
get_local $3
|
|
get_local $1
|
|
i32.load
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
return
|
|
end
|
|
get_local $0
|
|
i32.const 0
|
|
get_local $1
|
|
i32.const 0
|
|
get_local $3
|
|
call $~lib/internal/string/compareUnsafe
|
|
i32.eqz
|
|
)
|
|
(func $~lib/map/Map<String,usize>#find (; 15 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
get_local $0
|
|
i32.load
|
|
get_local $2
|
|
get_local $0
|
|
i32.load offset=4
|
|
i32.and
|
|
get_global $~lib/map/BUCKET_SIZE
|
|
i32.mul
|
|
i32.add
|
|
i32.load offset=8
|
|
set_local $3
|
|
block $break|0
|
|
loop $continue|0
|
|
get_local $3
|
|
if
|
|
block
|
|
get_local $3
|
|
i32.load offset=8
|
|
get_global $~lib/map/EMPTY
|
|
i32.and
|
|
i32.eqz
|
|
tee_local $4
|
|
if (result i32)
|
|
get_local $3
|
|
i32.load
|
|
get_local $1
|
|
call $~lib/string/String.__eq
|
|
else
|
|
get_local $4
|
|
end
|
|
if
|
|
get_local $3
|
|
return
|
|
end
|
|
get_local $3
|
|
i32.load offset=8
|
|
get_global $~lib/map/EMPTY
|
|
i32.const -1
|
|
i32.xor
|
|
i32.and
|
|
set_local $3
|
|
end
|
|
br $continue|0
|
|
end
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/map/Map<String,usize>#has (; 16 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
get_local $0
|
|
get_local $1
|
|
block $~lib/internal/hash/hash<String>|inlined.0 (result i32)
|
|
get_local $1
|
|
call $~lib/internal/hash/hashStr
|
|
br $~lib/internal/hash/hash<String>|inlined.0
|
|
end
|
|
call $~lib/map/Map<String,usize>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/map/Map<String,usize>#get (; 17 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
get_local $0
|
|
get_local $1
|
|
block $~lib/internal/hash/hash<String>|inlined.1 (result i32)
|
|
get_local $1
|
|
call $~lib/internal/hash/hashStr
|
|
br $~lib/internal/hash/hash<String>|inlined.1
|
|
end
|
|
call $~lib/map/Map<String,usize>#find
|
|
set_local $2
|
|
get_local $2
|
|
if (result i32)
|
|
get_local $2
|
|
i32.load offset=4
|
|
else
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/map/Map<String,usize>#rehash (; 18 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(local $9 i32)
|
|
(local $10 i32)
|
|
(local $11 i32)
|
|
(local $12 i32)
|
|
get_local $1
|
|
i32.const 1
|
|
i32.add
|
|
set_local $2
|
|
i32.const 0
|
|
get_local $2
|
|
get_global $~lib/map/BUCKET_SIZE
|
|
i32.mul
|
|
i32.const 0
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
set_local $3
|
|
get_local $2
|
|
f64.convert_s/i32
|
|
get_global $~lib/map/FILL_FACTOR
|
|
f64.mul
|
|
i32.trunc_s/f64
|
|
set_local $4
|
|
i32.const 0
|
|
get_local $4
|
|
block $~lib/map/ENTRY_SIZE<String,usize>|inlined.1 (result i32)
|
|
i32.const 12
|
|
end
|
|
i32.mul
|
|
i32.const 1
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
set_local $5
|
|
get_local $0
|
|
i32.load offset=8
|
|
get_global $~lib/internal/arraybuffer/HEADER_SIZE
|
|
i32.add
|
|
set_local $6
|
|
get_local $6
|
|
get_local $0
|
|
i32.load offset=16
|
|
block $~lib/map/ENTRY_SIZE<String,usize>|inlined.2 (result i32)
|
|
i32.const 12
|
|
end
|
|
i32.mul
|
|
i32.add
|
|
set_local $7
|
|
get_local $5
|
|
get_global $~lib/internal/arraybuffer/HEADER_SIZE
|
|
i32.add
|
|
set_local $8
|
|
block $break|0
|
|
loop $continue|0
|
|
get_local $6
|
|
get_local $7
|
|
i32.ne
|
|
if
|
|
block
|
|
get_local $6
|
|
set_local $9
|
|
get_local $9
|
|
i32.load offset=8
|
|
get_global $~lib/map/EMPTY
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
get_local $8
|
|
set_local $10
|
|
get_local $10
|
|
get_local $9
|
|
i32.load
|
|
i32.store
|
|
get_local $10
|
|
get_local $9
|
|
i32.load offset=4
|
|
i32.store offset=4
|
|
block $~lib/internal/hash/hash<String>|inlined.3 (result i32)
|
|
get_local $9
|
|
i32.load
|
|
set_local $11
|
|
get_local $11
|
|
call $~lib/internal/hash/hashStr
|
|
br $~lib/internal/hash/hash<String>|inlined.3
|
|
end
|
|
get_local $1
|
|
i32.and
|
|
set_local $11
|
|
get_local $3
|
|
get_local $11
|
|
get_global $~lib/map/BUCKET_SIZE
|
|
i32.mul
|
|
i32.add
|
|
set_local $12
|
|
get_local $10
|
|
get_local $12
|
|
i32.load offset=8
|
|
i32.store offset=8
|
|
get_local $12
|
|
get_local $8
|
|
i32.store offset=8
|
|
get_local $8
|
|
block $~lib/map/ENTRY_SIZE<String,usize>|inlined.3 (result i32)
|
|
i32.const 12
|
|
end
|
|
i32.add
|
|
set_local $8
|
|
end
|
|
get_local $6
|
|
block $~lib/map/ENTRY_SIZE<String,usize>|inlined.4 (result i32)
|
|
i32.const 12
|
|
end
|
|
i32.add
|
|
set_local $6
|
|
end
|
|
br $continue|0
|
|
end
|
|
end
|
|
end
|
|
get_local $0
|
|
get_local $3
|
|
i32.store
|
|
get_local $0
|
|
get_local $1
|
|
i32.store offset=4
|
|
get_local $0
|
|
get_local $5
|
|
i32.store offset=8
|
|
get_local $0
|
|
get_local $4
|
|
i32.store offset=12
|
|
get_local $0
|
|
get_local $0
|
|
i32.load offset=20
|
|
i32.store offset=16
|
|
)
|
|
(func $~lib/map/Map<String,usize>#set (; 19 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
block $~lib/internal/hash/hash<String>|inlined.2 (result i32)
|
|
get_local $1
|
|
call $~lib/internal/hash/hashStr
|
|
br $~lib/internal/hash/hash<String>|inlined.2
|
|
end
|
|
set_local $3
|
|
get_local $0
|
|
get_local $1
|
|
get_local $3
|
|
call $~lib/map/Map<String,usize>#find
|
|
set_local $4
|
|
get_local $4
|
|
if
|
|
get_local $4
|
|
get_local $2
|
|
i32.store offset=4
|
|
else
|
|
get_local $0
|
|
i32.load offset=16
|
|
get_local $0
|
|
i32.load offset=12
|
|
i32.eq
|
|
if
|
|
get_local $0
|
|
get_local $0
|
|
i32.load offset=20
|
|
get_local $0
|
|
i32.load offset=12
|
|
f64.convert_s/i32
|
|
get_global $~lib/map/FREE_FACTOR
|
|
f64.mul
|
|
i32.trunc_s/f64
|
|
i32.lt_s
|
|
if (result i32)
|
|
get_local $0
|
|
i32.load offset=4
|
|
else
|
|
get_local $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 1
|
|
i32.or
|
|
end
|
|
call $~lib/map/Map<String,usize>#rehash
|
|
end
|
|
get_local $0
|
|
i32.load offset=8
|
|
set_local $5
|
|
get_local $5
|
|
get_global $~lib/internal/arraybuffer/HEADER_SIZE
|
|
i32.add
|
|
block (result i32)
|
|
get_local $0
|
|
get_local $0
|
|
i32.load offset=16
|
|
tee_local $6
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
get_local $6
|
|
end
|
|
block $~lib/map/ENTRY_SIZE<String,usize>|inlined.5 (result i32)
|
|
i32.const 12
|
|
end
|
|
i32.mul
|
|
i32.add
|
|
set_local $4
|
|
get_local $4
|
|
get_local $1
|
|
i32.store
|
|
get_local $4
|
|
get_local $2
|
|
i32.store offset=4
|
|
get_local $0
|
|
get_local $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
get_local $0
|
|
i32.load
|
|
get_local $3
|
|
get_local $0
|
|
i32.load offset=4
|
|
i32.and
|
|
get_global $~lib/map/BUCKET_SIZE
|
|
i32.mul
|
|
i32.add
|
|
set_local $6
|
|
get_local $4
|
|
get_local $6
|
|
i32.load offset=8
|
|
i32.store offset=8
|
|
get_local $6
|
|
get_local $4
|
|
i32.store offset=8
|
|
end
|
|
)
|
|
(func $~lib/internal/hash/hash32 (; 20 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
get_global $~lib/internal/hash/FNV_OFFSET
|
|
set_local $1
|
|
get_local $1
|
|
get_local $0
|
|
i32.const 255
|
|
i32.and
|
|
i32.xor
|
|
get_global $~lib/internal/hash/FNV_PRIME
|
|
i32.mul
|
|
set_local $1
|
|
get_local $1
|
|
get_local $0
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.const 255
|
|
i32.and
|
|
i32.xor
|
|
get_global $~lib/internal/hash/FNV_PRIME
|
|
i32.mul
|
|
set_local $1
|
|
get_local $1
|
|
get_local $0
|
|
i32.const 16
|
|
i32.shr_u
|
|
i32.const 255
|
|
i32.and
|
|
i32.xor
|
|
get_global $~lib/internal/hash/FNV_PRIME
|
|
i32.mul
|
|
set_local $1
|
|
get_local $1
|
|
get_local $0
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.xor
|
|
get_global $~lib/internal/hash/FNV_PRIME
|
|
i32.mul
|
|
set_local $1
|
|
get_local $1
|
|
)
|
|
(func $~lib/map/Map<usize,String>#find (; 21 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
get_local $0
|
|
i32.load
|
|
get_local $2
|
|
get_local $0
|
|
i32.load offset=4
|
|
i32.and
|
|
get_global $~lib/map/BUCKET_SIZE
|
|
i32.mul
|
|
i32.add
|
|
i32.load offset=8
|
|
set_local $3
|
|
block $break|0
|
|
loop $continue|0
|
|
get_local $3
|
|
if
|
|
block
|
|
get_local $3
|
|
i32.load offset=8
|
|
get_global $~lib/map/EMPTY
|
|
i32.and
|
|
i32.eqz
|
|
tee_local $4
|
|
if (result i32)
|
|
get_local $3
|
|
i32.load
|
|
get_local $1
|
|
i32.eq
|
|
else
|
|
get_local $4
|
|
end
|
|
if
|
|
get_local $3
|
|
return
|
|
end
|
|
get_local $3
|
|
i32.load offset=8
|
|
get_global $~lib/map/EMPTY
|
|
i32.const -1
|
|
i32.xor
|
|
i32.and
|
|
set_local $3
|
|
end
|
|
br $continue|0
|
|
end
|
|
end
|
|
end
|
|
i32.const 0
|
|
)
|
|
(func $~lib/map/Map<usize,String>#rehash (; 22 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(local $9 i32)
|
|
(local $10 i32)
|
|
(local $11 i32)
|
|
(local $12 i32)
|
|
get_local $1
|
|
i32.const 1
|
|
i32.add
|
|
set_local $2
|
|
i32.const 0
|
|
get_local $2
|
|
get_global $~lib/map/BUCKET_SIZE
|
|
i32.mul
|
|
i32.const 0
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
set_local $3
|
|
get_local $2
|
|
f64.convert_s/i32
|
|
get_global $~lib/map/FILL_FACTOR
|
|
f64.mul
|
|
i32.trunc_s/f64
|
|
set_local $4
|
|
i32.const 0
|
|
get_local $4
|
|
block $~lib/map/ENTRY_SIZE<usize,String>|inlined.1 (result i32)
|
|
i32.const 12
|
|
end
|
|
i32.mul
|
|
i32.const 1
|
|
call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
set_local $5
|
|
get_local $0
|
|
i32.load offset=8
|
|
get_global $~lib/internal/arraybuffer/HEADER_SIZE
|
|
i32.add
|
|
set_local $6
|
|
get_local $6
|
|
get_local $0
|
|
i32.load offset=16
|
|
block $~lib/map/ENTRY_SIZE<usize,String>|inlined.2 (result i32)
|
|
i32.const 12
|
|
end
|
|
i32.mul
|
|
i32.add
|
|
set_local $7
|
|
get_local $5
|
|
get_global $~lib/internal/arraybuffer/HEADER_SIZE
|
|
i32.add
|
|
set_local $8
|
|
block $break|0
|
|
loop $continue|0
|
|
get_local $6
|
|
get_local $7
|
|
i32.ne
|
|
if
|
|
block
|
|
get_local $6
|
|
set_local $9
|
|
get_local $9
|
|
i32.load offset=8
|
|
get_global $~lib/map/EMPTY
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
get_local $8
|
|
set_local $10
|
|
get_local $10
|
|
get_local $9
|
|
i32.load
|
|
i32.store
|
|
get_local $10
|
|
get_local $9
|
|
i32.load offset=4
|
|
i32.store offset=4
|
|
block $~lib/internal/hash/hash<usize>|inlined.1 (result i32)
|
|
get_local $9
|
|
i32.load
|
|
set_local $11
|
|
get_local $11
|
|
call $~lib/internal/hash/hash32
|
|
br $~lib/internal/hash/hash<usize>|inlined.1
|
|
end
|
|
get_local $1
|
|
i32.and
|
|
set_local $11
|
|
get_local $3
|
|
get_local $11
|
|
get_global $~lib/map/BUCKET_SIZE
|
|
i32.mul
|
|
i32.add
|
|
set_local $12
|
|
get_local $10
|
|
get_local $12
|
|
i32.load offset=8
|
|
i32.store offset=8
|
|
get_local $12
|
|
get_local $8
|
|
i32.store offset=8
|
|
get_local $8
|
|
block $~lib/map/ENTRY_SIZE<usize,String>|inlined.3 (result i32)
|
|
i32.const 12
|
|
end
|
|
i32.add
|
|
set_local $8
|
|
end
|
|
get_local $6
|
|
block $~lib/map/ENTRY_SIZE<usize,String>|inlined.4 (result i32)
|
|
i32.const 12
|
|
end
|
|
i32.add
|
|
set_local $6
|
|
end
|
|
br $continue|0
|
|
end
|
|
end
|
|
end
|
|
get_local $0
|
|
get_local $3
|
|
i32.store
|
|
get_local $0
|
|
get_local $1
|
|
i32.store offset=4
|
|
get_local $0
|
|
get_local $5
|
|
i32.store offset=8
|
|
get_local $0
|
|
get_local $4
|
|
i32.store offset=12
|
|
get_local $0
|
|
get_local $0
|
|
i32.load offset=20
|
|
i32.store offset=16
|
|
)
|
|
(func $~lib/map/Map<usize,String>#set (; 23 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
block $~lib/internal/hash/hash<usize>|inlined.0 (result i32)
|
|
get_local $1
|
|
call $~lib/internal/hash/hash32
|
|
br $~lib/internal/hash/hash<usize>|inlined.0
|
|
end
|
|
set_local $3
|
|
get_local $0
|
|
get_local $1
|
|
get_local $3
|
|
call $~lib/map/Map<usize,String>#find
|
|
set_local $4
|
|
get_local $4
|
|
if
|
|
get_local $4
|
|
get_local $2
|
|
i32.store offset=4
|
|
else
|
|
get_local $0
|
|
i32.load offset=16
|
|
get_local $0
|
|
i32.load offset=12
|
|
i32.eq
|
|
if
|
|
get_local $0
|
|
get_local $0
|
|
i32.load offset=20
|
|
get_local $0
|
|
i32.load offset=12
|
|
f64.convert_s/i32
|
|
get_global $~lib/map/FREE_FACTOR
|
|
f64.mul
|
|
i32.trunc_s/f64
|
|
i32.lt_s
|
|
if (result i32)
|
|
get_local $0
|
|
i32.load offset=4
|
|
else
|
|
get_local $0
|
|
i32.load offset=4
|
|
i32.const 1
|
|
i32.shl
|
|
i32.const 1
|
|
i32.or
|
|
end
|
|
call $~lib/map/Map<usize,String>#rehash
|
|
end
|
|
get_local $0
|
|
i32.load offset=8
|
|
set_local $5
|
|
get_local $5
|
|
get_global $~lib/internal/arraybuffer/HEADER_SIZE
|
|
i32.add
|
|
block (result i32)
|
|
get_local $0
|
|
get_local $0
|
|
i32.load offset=16
|
|
tee_local $6
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=16
|
|
get_local $6
|
|
end
|
|
block $~lib/map/ENTRY_SIZE<usize,String>|inlined.5 (result i32)
|
|
i32.const 12
|
|
end
|
|
i32.mul
|
|
i32.add
|
|
set_local $4
|
|
get_local $4
|
|
get_local $1
|
|
i32.store
|
|
get_local $4
|
|
get_local $2
|
|
i32.store offset=4
|
|
get_local $0
|
|
get_local $0
|
|
i32.load offset=20
|
|
i32.const 1
|
|
i32.add
|
|
i32.store offset=20
|
|
get_local $0
|
|
i32.load
|
|
get_local $3
|
|
get_local $0
|
|
i32.load offset=4
|
|
i32.and
|
|
get_global $~lib/map/BUCKET_SIZE
|
|
i32.mul
|
|
i32.add
|
|
set_local $6
|
|
get_local $4
|
|
get_local $6
|
|
i32.load offset=8
|
|
i32.store offset=8
|
|
get_local $6
|
|
get_local $4
|
|
i32.store offset=8
|
|
end
|
|
)
|
|
(func $~lib/symbol/Symbol.for (; 24 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
get_global $~lib/symbol/stringToId
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
call $~lib/map/Map<String,usize>#constructor
|
|
set_global $~lib/symbol/stringToId
|
|
i32.const 0
|
|
call $~lib/map/Map<usize,String>#constructor
|
|
set_global $~lib/symbol/idToString
|
|
else
|
|
get_global $~lib/symbol/stringToId
|
|
get_local $0
|
|
call $~lib/map/Map<String,usize>#has
|
|
if
|
|
get_global $~lib/symbol/stringToId
|
|
get_local $0
|
|
call $~lib/map/Map<String,usize>#get
|
|
return
|
|
end
|
|
end
|
|
block (result i32)
|
|
get_global $~lib/symbol/nextId
|
|
tee_local $1
|
|
i32.const 1
|
|
i32.add
|
|
set_global $~lib/symbol/nextId
|
|
get_local $1
|
|
end
|
|
set_local $2
|
|
get_local $2
|
|
i32.eqz
|
|
if
|
|
unreachable
|
|
end
|
|
get_global $~lib/symbol/stringToId
|
|
get_local $0
|
|
get_local $2
|
|
call $~lib/map/Map<String,usize>#set
|
|
get_global $~lib/symbol/idToString
|
|
get_local $2
|
|
get_local $0
|
|
call $~lib/map/Map<usize,String>#set
|
|
get_local $2
|
|
)
|
|
(func $~lib/map/Map<usize,String>#has (; 25 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
get_local $0
|
|
get_local $1
|
|
block $~lib/internal/hash/hash<usize>|inlined.2 (result i32)
|
|
get_local $1
|
|
call $~lib/internal/hash/hash32
|
|
br $~lib/internal/hash/hash<usize>|inlined.2
|
|
end
|
|
call $~lib/map/Map<usize,String>#find
|
|
i32.const 0
|
|
i32.ne
|
|
)
|
|
(func $~lib/map/Map<usize,String>#get (; 26 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
get_local $0
|
|
get_local $1
|
|
block $~lib/internal/hash/hash<usize>|inlined.3 (result i32)
|
|
get_local $1
|
|
call $~lib/internal/hash/hash32
|
|
br $~lib/internal/hash/hash<usize>|inlined.3
|
|
end
|
|
call $~lib/map/Map<usize,String>#find
|
|
set_local $2
|
|
get_local $2
|
|
if (result i32)
|
|
get_local $2
|
|
i32.load offset=4
|
|
else
|
|
unreachable
|
|
end
|
|
)
|
|
(func $~lib/symbol/Symbol.keyFor (; 27 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
get_global $~lib/symbol/idToString
|
|
i32.const 0
|
|
i32.ne
|
|
tee_local $1
|
|
if (result i32)
|
|
get_global $~lib/symbol/idToString
|
|
get_local $0
|
|
call $~lib/map/Map<usize,String>#has
|
|
else
|
|
get_local $1
|
|
end
|
|
if (result i32)
|
|
get_global $~lib/symbol/idToString
|
|
get_local $0
|
|
call $~lib/map/Map<usize,String>#get
|
|
else
|
|
i32.const 0
|
|
end
|
|
)
|
|
(func $~lib/internal/string/allocateUnsafe (; 28 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
get_local $0
|
|
i32.const 0
|
|
i32.gt_s
|
|
tee_local $1
|
|
if (result i32)
|
|
get_local $0
|
|
get_global $~lib/internal/string/MAX_LENGTH
|
|
i32.le_s
|
|
else
|
|
get_local $1
|
|
end
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 536
|
|
i32.const 14
|
|
i32.const 2
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
block $~lib/memory/memory.allocate|inlined.1 (result i32)
|
|
get_global $~lib/internal/string/HEADER_SIZE
|
|
get_local $0
|
|
i32.const 1
|
|
i32.shl
|
|
i32.add
|
|
set_local $1
|
|
get_local $1
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
br $~lib/memory/memory.allocate|inlined.1
|
|
end
|
|
set_local $2
|
|
get_local $2
|
|
get_local $0
|
|
i32.store
|
|
get_local $2
|
|
)
|
|
(func $~lib/internal/memory/memcpy (; 29 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
block $break|0
|
|
loop $continue|0
|
|
get_local $2
|
|
if (result i32)
|
|
get_local $1
|
|
i32.const 3
|
|
i32.and
|
|
else
|
|
get_local $2
|
|
end
|
|
if
|
|
block
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
get_local $2
|
|
i32.const 1
|
|
i32.sub
|
|
set_local $2
|
|
end
|
|
br $continue|0
|
|
end
|
|
end
|
|
end
|
|
get_local $0
|
|
i32.const 3
|
|
i32.and
|
|
i32.const 0
|
|
i32.eq
|
|
if
|
|
block $break|1
|
|
loop $continue|1
|
|
get_local $2
|
|
i32.const 16
|
|
i32.ge_u
|
|
if
|
|
block
|
|
get_local $0
|
|
get_local $1
|
|
i32.load
|
|
i32.store
|
|
get_local $0
|
|
i32.const 4
|
|
i32.add
|
|
get_local $1
|
|
i32.const 4
|
|
i32.add
|
|
i32.load
|
|
i32.store
|
|
get_local $0
|
|
i32.const 8
|
|
i32.add
|
|
get_local $1
|
|
i32.const 8
|
|
i32.add
|
|
i32.load
|
|
i32.store
|
|
get_local $0
|
|
i32.const 12
|
|
i32.add
|
|
get_local $1
|
|
i32.const 12
|
|
i32.add
|
|
i32.load
|
|
i32.store
|
|
get_local $1
|
|
i32.const 16
|
|
i32.add
|
|
set_local $1
|
|
get_local $0
|
|
i32.const 16
|
|
i32.add
|
|
set_local $0
|
|
get_local $2
|
|
i32.const 16
|
|
i32.sub
|
|
set_local $2
|
|
end
|
|
br $continue|1
|
|
end
|
|
end
|
|
end
|
|
get_local $2
|
|
i32.const 8
|
|
i32.and
|
|
if
|
|
get_local $0
|
|
get_local $1
|
|
i32.load
|
|
i32.store
|
|
get_local $0
|
|
i32.const 4
|
|
i32.add
|
|
get_local $1
|
|
i32.const 4
|
|
i32.add
|
|
i32.load
|
|
i32.store
|
|
get_local $0
|
|
i32.const 8
|
|
i32.add
|
|
set_local $0
|
|
get_local $1
|
|
i32.const 8
|
|
i32.add
|
|
set_local $1
|
|
end
|
|
get_local $2
|
|
i32.const 4
|
|
i32.and
|
|
if
|
|
get_local $0
|
|
get_local $1
|
|
i32.load
|
|
i32.store
|
|
get_local $0
|
|
i32.const 4
|
|
i32.add
|
|
set_local $0
|
|
get_local $1
|
|
i32.const 4
|
|
i32.add
|
|
set_local $1
|
|
end
|
|
get_local $2
|
|
i32.const 2
|
|
i32.and
|
|
if
|
|
get_local $0
|
|
get_local $1
|
|
i32.load16_u
|
|
i32.store16
|
|
get_local $0
|
|
i32.const 2
|
|
i32.add
|
|
set_local $0
|
|
get_local $1
|
|
i32.const 2
|
|
i32.add
|
|
set_local $1
|
|
end
|
|
get_local $2
|
|
i32.const 1
|
|
i32.and
|
|
if
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
return
|
|
end
|
|
get_local $2
|
|
i32.const 32
|
|
i32.ge_u
|
|
if
|
|
block $break|2
|
|
block $case2|2
|
|
block $case1|2
|
|
block $case0|2
|
|
get_local $0
|
|
i32.const 3
|
|
i32.and
|
|
set_local $5
|
|
get_local $5
|
|
i32.const 1
|
|
i32.eq
|
|
br_if $case0|2
|
|
get_local $5
|
|
i32.const 2
|
|
i32.eq
|
|
br_if $case1|2
|
|
get_local $5
|
|
i32.const 3
|
|
i32.eq
|
|
br_if $case2|2
|
|
br $break|2
|
|
end
|
|
block
|
|
get_local $1
|
|
i32.load
|
|
set_local $3
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
get_local $2
|
|
i32.const 3
|
|
i32.sub
|
|
set_local $2
|
|
block $break|3
|
|
loop $continue|3
|
|
get_local $2
|
|
i32.const 17
|
|
i32.ge_u
|
|
if
|
|
block
|
|
get_local $1
|
|
i32.const 1
|
|
i32.add
|
|
i32.load
|
|
set_local $4
|
|
get_local $0
|
|
get_local $3
|
|
i32.const 24
|
|
i32.shr_u
|
|
get_local $4
|
|
i32.const 8
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 5
|
|
i32.add
|
|
i32.load
|
|
set_local $3
|
|
get_local $0
|
|
i32.const 4
|
|
i32.add
|
|
get_local $4
|
|
i32.const 24
|
|
i32.shr_u
|
|
get_local $3
|
|
i32.const 8
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 9
|
|
i32.add
|
|
i32.load
|
|
set_local $4
|
|
get_local $0
|
|
i32.const 8
|
|
i32.add
|
|
get_local $3
|
|
i32.const 24
|
|
i32.shr_u
|
|
get_local $4
|
|
i32.const 8
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 13
|
|
i32.add
|
|
i32.load
|
|
set_local $3
|
|
get_local $0
|
|
i32.const 12
|
|
i32.add
|
|
get_local $4
|
|
i32.const 24
|
|
i32.shr_u
|
|
get_local $3
|
|
i32.const 8
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 16
|
|
i32.add
|
|
set_local $1
|
|
get_local $0
|
|
i32.const 16
|
|
i32.add
|
|
set_local $0
|
|
get_local $2
|
|
i32.const 16
|
|
i32.sub
|
|
set_local $2
|
|
end
|
|
br $continue|3
|
|
end
|
|
end
|
|
end
|
|
br $break|2
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
get_local $1
|
|
i32.load
|
|
set_local $3
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
get_local $2
|
|
i32.const 2
|
|
i32.sub
|
|
set_local $2
|
|
block $break|4
|
|
loop $continue|4
|
|
get_local $2
|
|
i32.const 18
|
|
i32.ge_u
|
|
if
|
|
block
|
|
get_local $1
|
|
i32.const 2
|
|
i32.add
|
|
i32.load
|
|
set_local $4
|
|
get_local $0
|
|
get_local $3
|
|
i32.const 16
|
|
i32.shr_u
|
|
get_local $4
|
|
i32.const 16
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 6
|
|
i32.add
|
|
i32.load
|
|
set_local $3
|
|
get_local $0
|
|
i32.const 4
|
|
i32.add
|
|
get_local $4
|
|
i32.const 16
|
|
i32.shr_u
|
|
get_local $3
|
|
i32.const 16
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 10
|
|
i32.add
|
|
i32.load
|
|
set_local $4
|
|
get_local $0
|
|
i32.const 8
|
|
i32.add
|
|
get_local $3
|
|
i32.const 16
|
|
i32.shr_u
|
|
get_local $4
|
|
i32.const 16
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 14
|
|
i32.add
|
|
i32.load
|
|
set_local $3
|
|
get_local $0
|
|
i32.const 12
|
|
i32.add
|
|
get_local $4
|
|
i32.const 16
|
|
i32.shr_u
|
|
get_local $3
|
|
i32.const 16
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 16
|
|
i32.add
|
|
set_local $1
|
|
get_local $0
|
|
i32.const 16
|
|
i32.add
|
|
set_local $0
|
|
get_local $2
|
|
i32.const 16
|
|
i32.sub
|
|
set_local $2
|
|
end
|
|
br $continue|4
|
|
end
|
|
end
|
|
end
|
|
br $break|2
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
get_local $1
|
|
i32.load
|
|
set_local $3
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
get_local $2
|
|
i32.const 1
|
|
i32.sub
|
|
set_local $2
|
|
block $break|5
|
|
loop $continue|5
|
|
get_local $2
|
|
i32.const 19
|
|
i32.ge_u
|
|
if
|
|
block
|
|
get_local $1
|
|
i32.const 3
|
|
i32.add
|
|
i32.load
|
|
set_local $4
|
|
get_local $0
|
|
get_local $3
|
|
i32.const 8
|
|
i32.shr_u
|
|
get_local $4
|
|
i32.const 24
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 7
|
|
i32.add
|
|
i32.load
|
|
set_local $3
|
|
get_local $0
|
|
i32.const 4
|
|
i32.add
|
|
get_local $4
|
|
i32.const 8
|
|
i32.shr_u
|
|
get_local $3
|
|
i32.const 24
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 11
|
|
i32.add
|
|
i32.load
|
|
set_local $4
|
|
get_local $0
|
|
i32.const 8
|
|
i32.add
|
|
get_local $3
|
|
i32.const 8
|
|
i32.shr_u
|
|
get_local $4
|
|
i32.const 24
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 15
|
|
i32.add
|
|
i32.load
|
|
set_local $3
|
|
get_local $0
|
|
i32.const 12
|
|
i32.add
|
|
get_local $4
|
|
i32.const 8
|
|
i32.shr_u
|
|
get_local $3
|
|
i32.const 24
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
get_local $1
|
|
i32.const 16
|
|
i32.add
|
|
set_local $1
|
|
get_local $0
|
|
i32.const 16
|
|
i32.add
|
|
set_local $0
|
|
get_local $2
|
|
i32.const 16
|
|
i32.sub
|
|
set_local $2
|
|
end
|
|
br $continue|5
|
|
end
|
|
end
|
|
end
|
|
br $break|2
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
end
|
|
get_local $2
|
|
i32.const 16
|
|
i32.and
|
|
if
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
get_local $2
|
|
i32.const 8
|
|
i32.and
|
|
if
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
get_local $2
|
|
i32.const 4
|
|
i32.and
|
|
if
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
get_local $2
|
|
i32.const 2
|
|
i32.and
|
|
if
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
get_local $2
|
|
i32.const 1
|
|
i32.and
|
|
if
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $5
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $5
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $5
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
)
|
|
(func $~lib/internal/memory/memmove (; 30 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
get_local $0
|
|
get_local $1
|
|
i32.eq
|
|
if
|
|
return
|
|
end
|
|
get_local $1
|
|
get_local $2
|
|
i32.add
|
|
get_local $0
|
|
i32.le_u
|
|
tee_local $3
|
|
if (result i32)
|
|
get_local $3
|
|
else
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
get_local $1
|
|
i32.le_u
|
|
end
|
|
if
|
|
get_local $0
|
|
get_local $1
|
|
get_local $2
|
|
call $~lib/internal/memory/memcpy
|
|
return
|
|
end
|
|
get_local $0
|
|
get_local $1
|
|
i32.lt_u
|
|
if
|
|
get_local $1
|
|
i32.const 7
|
|
i32.and
|
|
get_local $0
|
|
i32.const 7
|
|
i32.and
|
|
i32.eq
|
|
if
|
|
block $break|0
|
|
loop $continue|0
|
|
get_local $0
|
|
i32.const 7
|
|
i32.and
|
|
if
|
|
block
|
|
get_local $2
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
get_local $2
|
|
i32.const 1
|
|
i32.sub
|
|
set_local $2
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $3
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $3
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $3
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $3
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
br $continue|0
|
|
end
|
|
end
|
|
end
|
|
block $break|1
|
|
loop $continue|1
|
|
get_local $2
|
|
i32.const 8
|
|
i32.ge_u
|
|
if
|
|
block
|
|
get_local $0
|
|
get_local $1
|
|
i64.load
|
|
i64.store
|
|
get_local $2
|
|
i32.const 8
|
|
i32.sub
|
|
set_local $2
|
|
get_local $0
|
|
i32.const 8
|
|
i32.add
|
|
set_local $0
|
|
get_local $1
|
|
i32.const 8
|
|
i32.add
|
|
set_local $1
|
|
end
|
|
br $continue|1
|
|
end
|
|
end
|
|
end
|
|
end
|
|
block $break|2
|
|
loop $continue|2
|
|
get_local $2
|
|
if
|
|
block
|
|
block (result i32)
|
|
get_local $0
|
|
tee_local $3
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
get_local $3
|
|
end
|
|
block (result i32)
|
|
get_local $1
|
|
tee_local $3
|
|
i32.const 1
|
|
i32.add
|
|
set_local $1
|
|
get_local $3
|
|
end
|
|
i32.load8_u
|
|
i32.store8
|
|
get_local $2
|
|
i32.const 1
|
|
i32.sub
|
|
set_local $2
|
|
end
|
|
br $continue|2
|
|
end
|
|
end
|
|
end
|
|
else
|
|
get_local $1
|
|
i32.const 7
|
|
i32.and
|
|
get_local $0
|
|
i32.const 7
|
|
i32.and
|
|
i32.eq
|
|
if
|
|
block $break|3
|
|
loop $continue|3
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
i32.const 7
|
|
i32.and
|
|
if
|
|
block
|
|
get_local $2
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
get_local $0
|
|
get_local $2
|
|
i32.const 1
|
|
i32.sub
|
|
tee_local $2
|
|
i32.add
|
|
get_local $1
|
|
get_local $2
|
|
i32.add
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
br $continue|3
|
|
end
|
|
end
|
|
end
|
|
block $break|4
|
|
loop $continue|4
|
|
get_local $2
|
|
i32.const 8
|
|
i32.ge_u
|
|
if
|
|
block
|
|
get_local $2
|
|
i32.const 8
|
|
i32.sub
|
|
set_local $2
|
|
get_local $0
|
|
get_local $2
|
|
i32.add
|
|
get_local $1
|
|
get_local $2
|
|
i32.add
|
|
i64.load
|
|
i64.store
|
|
end
|
|
br $continue|4
|
|
end
|
|
end
|
|
end
|
|
end
|
|
block $break|5
|
|
loop $continue|5
|
|
get_local $2
|
|
if
|
|
get_local $0
|
|
get_local $2
|
|
i32.const 1
|
|
i32.sub
|
|
tee_local $2
|
|
i32.add
|
|
get_local $1
|
|
get_local $2
|
|
i32.add
|
|
i32.load8_u
|
|
i32.store8
|
|
br $continue|5
|
|
end
|
|
end
|
|
end
|
|
end
|
|
)
|
|
(func $~lib/internal/string/copyUnsafe (; 31 ;) (type $iiiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
get_local $0
|
|
get_local $1
|
|
i32.const 1
|
|
i32.shl
|
|
i32.add
|
|
get_global $~lib/internal/string/HEADER_SIZE
|
|
i32.add
|
|
set_local $5
|
|
get_local $2
|
|
get_local $3
|
|
i32.const 1
|
|
i32.shl
|
|
i32.add
|
|
get_global $~lib/internal/string/HEADER_SIZE
|
|
i32.add
|
|
set_local $6
|
|
get_local $4
|
|
i32.const 1
|
|
i32.shl
|
|
set_local $7
|
|
get_local $5
|
|
get_local $6
|
|
get_local $7
|
|
call $~lib/internal/memory/memmove
|
|
)
|
|
(func $~lib/string/String#concat (; 32 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
get_local $0
|
|
i32.const 0
|
|
i32.ne
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 504
|
|
i32.const 110
|
|
i32.const 4
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
get_local $1
|
|
i32.const 0
|
|
i32.eq
|
|
if
|
|
i32.const 488
|
|
set_local $1
|
|
end
|
|
get_local $0
|
|
i32.load
|
|
set_local $2
|
|
get_local $1
|
|
i32.load
|
|
set_local $3
|
|
get_local $2
|
|
get_local $3
|
|
i32.add
|
|
set_local $4
|
|
get_local $4
|
|
i32.const 0
|
|
i32.eq
|
|
if
|
|
i32.const 168
|
|
return
|
|
end
|
|
get_local $4
|
|
call $~lib/internal/string/allocateUnsafe
|
|
set_local $5
|
|
get_local $5
|
|
i32.const 0
|
|
get_local $0
|
|
i32.const 0
|
|
get_local $2
|
|
call $~lib/internal/string/copyUnsafe
|
|
get_local $5
|
|
get_local $2
|
|
get_local $1
|
|
i32.const 0
|
|
get_local $3
|
|
call $~lib/internal/string/copyUnsafe
|
|
get_local $5
|
|
)
|
|
(func $~lib/string/String.__concat (; 33 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
get_local $0
|
|
i32.eqz
|
|
if
|
|
i32.const 488
|
|
set_local $0
|
|
end
|
|
get_local $0
|
|
get_local $1
|
|
call $~lib/string/String#concat
|
|
)
|
|
(func $~lib/symbol/symbol#toString (; 34 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
get_local $0
|
|
set_local $1
|
|
i32.const 168
|
|
set_local $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
|
|
get_local $1
|
|
set_local $3
|
|
get_local $3
|
|
i32.const 1
|
|
i32.eq
|
|
br_if $case0|0
|
|
get_local $3
|
|
i32.const 2
|
|
i32.eq
|
|
br_if $case1|0
|
|
get_local $3
|
|
i32.const 3
|
|
i32.eq
|
|
br_if $case2|0
|
|
get_local $3
|
|
i32.const 4
|
|
i32.eq
|
|
br_if $case3|0
|
|
get_local $3
|
|
i32.const 5
|
|
i32.eq
|
|
br_if $case4|0
|
|
get_local $3
|
|
i32.const 6
|
|
i32.eq
|
|
br_if $case5|0
|
|
get_local $3
|
|
i32.const 7
|
|
i32.eq
|
|
br_if $case6|0
|
|
get_local $3
|
|
i32.const 8
|
|
i32.eq
|
|
br_if $case7|0
|
|
get_local $3
|
|
i32.const 9
|
|
i32.eq
|
|
br_if $case8|0
|
|
get_local $3
|
|
i32.const 10
|
|
i32.eq
|
|
br_if $case9|0
|
|
get_local $3
|
|
i32.const 11
|
|
i32.eq
|
|
br_if $case10|0
|
|
br $case11|0
|
|
end
|
|
block
|
|
i32.const 176
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
i32.const 208
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
i32.const 248
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
i32.const 272
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
i32.const 288
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
i32.const 312
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
i32.const 328
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
i32.const 352
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
i32.const 368
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
i32.const 400
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
i32.const 432
|
|
set_local $2
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
block
|
|
get_global $~lib/symbol/idToString
|
|
i32.const 0
|
|
i32.ne
|
|
tee_local $3
|
|
if (result i32)
|
|
get_global $~lib/symbol/idToString
|
|
get_local $1
|
|
call $~lib/map/Map<usize,String>#has
|
|
else
|
|
get_local $3
|
|
end
|
|
if
|
|
get_global $~lib/symbol/idToString
|
|
get_local $1
|
|
call $~lib/map/Map<usize,String>#get
|
|
set_local $2
|
|
end
|
|
br $break|0
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
i32.const 464
|
|
get_local $2
|
|
call $~lib/string/String.__concat
|
|
i32.const 592
|
|
call $~lib/string/String.__concat
|
|
)
|
|
(func $start (; 35 ;) (type $v)
|
|
get_global $HEAP_BASE
|
|
get_global $~lib/internal/allocator/AL_MASK
|
|
i32.add
|
|
get_global $~lib/internal/allocator/AL_MASK
|
|
i32.const -1
|
|
i32.xor
|
|
i32.and
|
|
set_global $~lib/allocator/arena/startOffset
|
|
get_global $~lib/allocator/arena/startOffset
|
|
set_global $~lib/allocator/arena/offset
|
|
i32.const 8
|
|
call $~lib/symbol/Symbol
|
|
set_global $std/symbol/sym1
|
|
i32.const 8
|
|
call $~lib/symbol/Symbol
|
|
set_global $std/symbol/sym2
|
|
get_global $std/symbol/sym1
|
|
get_global $std/symbol/sym2
|
|
i32.ne
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 6
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
i32.const 8
|
|
call $~lib/symbol/Symbol.for
|
|
set_global $std/symbol/sym3
|
|
i32.const 8
|
|
call $~lib/symbol/Symbol.for
|
|
set_global $std/symbol/sym4
|
|
get_global $std/symbol/sym3
|
|
get_global $std/symbol/sym4
|
|
i32.eq
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 11
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
get_global $std/symbol/sym1
|
|
call $~lib/symbol/Symbol.keyFor
|
|
set_global $std/symbol/key1
|
|
get_global $std/symbol/sym2
|
|
call $~lib/symbol/Symbol.keyFor
|
|
set_global $std/symbol/key2
|
|
get_global $std/symbol/key1
|
|
i32.const 0
|
|
i32.eq
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 16
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
get_global $std/symbol/key2
|
|
i32.const 0
|
|
i32.eq
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 17
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
get_global $std/symbol/sym3
|
|
call $~lib/symbol/Symbol.keyFor
|
|
set_global $std/symbol/key3
|
|
get_global $std/symbol/sym4
|
|
call $~lib/symbol/Symbol.keyFor
|
|
set_global $std/symbol/key4
|
|
get_global $std/symbol/key3
|
|
i32.const 8
|
|
call $~lib/string/String.__eq
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 22
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
get_global $std/symbol/key3
|
|
get_global $std/symbol/key4
|
|
call $~lib/string/String.__eq
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 23
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
call $~lib/symbol/Symbol
|
|
call $~lib/symbol/symbol#toString
|
|
i32.const 600
|
|
call $~lib/string/String.__eq
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 25
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
get_global $std/symbol/sym3
|
|
call $~lib/symbol/symbol#toString
|
|
i32.const 624
|
|
call $~lib/string/String.__eq
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 26
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
get_global $~lib/symbol/Symbol.hasInstance
|
|
set_global $std/symbol/hasInstance
|
|
get_global $~lib/symbol/Symbol.isConcatSpreadable
|
|
set_global $std/symbol/isConcatSpreadable
|
|
get_global $std/symbol/hasInstance
|
|
call $~lib/symbol/symbol#toString
|
|
i32.const 656
|
|
call $~lib/string/String.__eq
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 30
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
get_global $std/symbol/isConcatSpreadable
|
|
call $~lib/symbol/symbol#toString
|
|
i32.const 704
|
|
call $~lib/string/String.__eq
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 24
|
|
i32.const 31
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
get_global $~lib/symbol/Symbol.hasInstance
|
|
drop
|
|
get_global $~lib/symbol/Symbol.isConcatSpreadable
|
|
drop
|
|
)
|
|
(func $null (; 36 ;) (type $v)
|
|
)
|
|
)
|