mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 23:12:19 +00:00
1848 lines
32 KiB
Plaintext
1848 lines
32 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 $v (func))
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
|
(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/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))
|
|
(memory $0 1)
|
|
(data (i32.const 8) "\03\00\00\001\002\003")
|
|
(data (i32.const 24) "\0d\00\00\00s\00t\00d\00/\00s\00y\00m\00b\00o\00l\00.\00t\00s")
|
|
(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")
|
|
(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")
|
|
(export "memory" (memory $0))
|
|
(start $start)
|
|
(func $~lib/symbol/Symbol (; 1 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(set_global $~lib/symbol/nextId
|
|
(i32.add
|
|
(tee_local $0
|
|
(get_global $~lib/symbol/nextId)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/allocator/arena/__memory_allocate (; 2 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 1073741824)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(if
|
|
(i32.gt_u
|
|
(tee_local $2
|
|
(i32.and
|
|
(i32.add
|
|
(i32.add
|
|
(tee_local $1
|
|
(get_global $~lib/allocator/arena/offset)
|
|
)
|
|
(select
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 7)
|
|
)
|
|
(i32.const -8)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(tee_local $3
|
|
(current_memory)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(grow_memory
|
|
(select
|
|
(get_local $3)
|
|
(tee_local $0
|
|
(i32.shr_u
|
|
(i32.and
|
|
(i32.add
|
|
(i32.sub
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const -65536)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $3)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(grow_memory
|
|
(get_local $0)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/allocator/arena/offset
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/memory/memory.allocate (; 3 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/internal/arraybuffer/computeSize (; 4 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.sub
|
|
(i32.const 32)
|
|
(i32.clz
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 7)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/arraybuffer/allocateUnsafe (; 5 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 1073741816)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 104)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $1
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/internal/memory/memset (; 6 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i64)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 3)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 6)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(return)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(tee_local $3
|
|
(i32.and
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(tee_local $1
|
|
(i32.mul
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const 16843009)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(tee_local $2
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const -4)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 24)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 20)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 28)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 24)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 20)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 16)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i64.or
|
|
(tee_local $4
|
|
(i64.extend_u/i32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i64.shl
|
|
(get_local $4)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 32)
|
|
)
|
|
(block
|
|
(i64.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 32)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 32)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 7 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $1)
|
|
(i32.const 1073741816)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 56)
|
|
(i32.const 13)
|
|
(i32.const 40)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.const 0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $~lib/map/Map<String,usize>#clear (; 8 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
|
(i32.store
|
|
(get_local $0)
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.const 0)
|
|
(i32.const 16)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.const 0)
|
|
(i32.const 48)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<String,usize>#constructor (; 9 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(tee_local $0
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<String,usize>#clear
|
|
(get_local $0)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/internal/hash/hashStr (; 10 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(set_local $2
|
|
(i32.const -2128831035)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.shl
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.mul
|
|
(i32.xor
|
|
(get_local $2)
|
|
(i32.load8_u offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/internal/string/compareUnsafe (; 11 ;) (; has Stack IR ;) (type $iiiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
|
|
(local $5 i32)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(get_local $4)
|
|
(i32.eqz
|
|
(tee_local $5
|
|
(i32.sub
|
|
(i32.load16_u offset=4
|
|
(get_local $1)
|
|
)
|
|
(i32.load16_u offset=4
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(func $~lib/string/String.__eq (; 12 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $2
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $2)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(tee_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.eqz
|
|
(call $~lib/internal/string/compareUnsafe
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<String,usize>#find (; 13 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(if
|
|
(tee_local $0
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(call $~lib/string/String.__eq
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $~lib/map/Map<String,usize>#has (; 14 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.ne
|
|
(call $~lib/map/Map<String,usize>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hashStr
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<String,usize>#get (; 15 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $0
|
|
(call $~lib/map/Map<String,usize>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hashStr
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<String,usize>#rehash (; 16 ;) (; has Stack IR ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(set_local $4
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.const 0)
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.const 0)
|
|
(i32.mul
|
|
(tee_local $7
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(get_local $2)
|
|
)
|
|
(f64.const 2.6666666666666665)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.mul
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(get_local $2)
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(i32.and
|
|
(tee_local $6
|
|
(call $~lib/internal/hash/hashStr
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<String,usize>#set (; 17 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(tee_local $3
|
|
(call $~lib/map/Map<String,usize>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(tee_local $5
|
|
(call $~lib/internal/hash/hashStr
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<String,usize>#rehash
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.or
|
|
(i32.shl
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.mul
|
|
(get_local $4)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(i32.load offset=8
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/hash/hash32 (; 18 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.mul
|
|
(i32.xor
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const -2128831035)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
(i32.shr_u
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
(i32.const 16777619)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<usize,String>#find (; 19 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(if
|
|
(tee_local $0
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.eq
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $~lib/map/Map<usize,String>#rehash (; 20 ;) (; has Stack IR ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(set_local $4
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.const 0)
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
(i32.const 0)
|
|
(i32.mul
|
|
(tee_local $7
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(get_local $2)
|
|
)
|
|
(f64.const 2.6666666666666665)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.mul
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(i32.load offset=8
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(get_local $2)
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $2)
|
|
(i32.load offset=4
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(i32.and
|
|
(tee_local $6
|
|
(call $~lib/internal/hash/hash32
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i32.store offset=12
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<usize,String>#set (; 21 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(tee_local $3
|
|
(call $~lib/map/Map<usize,String>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(tee_local $5
|
|
(call $~lib/internal/hash/hash32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/map/Map<usize,String>#rehash
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.load offset=12
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.const 0.75)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.or
|
|
(i32.shl
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=16
|
|
(get_local $0)
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=16
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.mul
|
|
(get_local $4)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=20
|
|
(get_local $0)
|
|
(i32.add
|
|
(i32.load offset=20
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $3)
|
|
(i32.load offset=8
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/symbol/Symbol.for (; 22 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(if
|
|
(get_global $~lib/symbol/stringToId)
|
|
(if
|
|
(call $~lib/map/Map<String,usize>#has
|
|
(get_global $~lib/symbol/stringToId)
|
|
(get_local $0)
|
|
)
|
|
(return
|
|
(call $~lib/map/Map<String,usize>#get
|
|
(get_global $~lib/symbol/stringToId)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_global $~lib/symbol/stringToId
|
|
(call $~lib/map/Map<String,usize>#constructor
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_global $~lib/symbol/idToString
|
|
(call $~lib/map/Map<String,usize>#constructor
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/symbol/nextId
|
|
(i32.add
|
|
(tee_local $1
|
|
(get_global $~lib/symbol/nextId)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(call $~lib/map/Map<String,usize>#set
|
|
(get_global $~lib/symbol/stringToId)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/map/Map<usize,String>#set
|
|
(get_global $~lib/symbol/idToString)
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/map/Map<usize,String>#has (; 23 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.ne
|
|
(call $~lib/map/Map<usize,String>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/map/Map<usize,String>#get (; 24 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $0
|
|
(call $~lib/map/Map<usize,String>#find
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(call $~lib/internal/hash/hash32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/symbol/Symbol.keyFor (; 25 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(if
|
|
(tee_local $1
|
|
(i32.ne
|
|
(get_global $~lib/symbol/idToString)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/map/Map<usize,String>#has
|
|
(get_global $~lib/symbol/idToString)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(get_local $1)
|
|
(call $~lib/map/Map<usize,String>#get
|
|
(get_global $~lib/symbol/idToString)
|
|
(get_local $0)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(func $start (; 26 ;) (; has Stack IR ;) (type $v)
|
|
(set_global $~lib/allocator/arena/startOffset
|
|
(i32.const 168)
|
|
)
|
|
(set_global $~lib/allocator/arena/offset
|
|
(get_global $~lib/allocator/arena/startOffset)
|
|
)
|
|
(set_global $std/symbol/sym1
|
|
(call $~lib/symbol/Symbol
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(set_global $std/symbol/sym2
|
|
(call $~lib/symbol/Symbol
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_global $std/symbol/sym1)
|
|
(get_global $std/symbol/sym2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 24)
|
|
(i32.const 6)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/symbol/sym3
|
|
(call $~lib/symbol/Symbol.for
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(set_global $std/symbol/sym4
|
|
(call $~lib/symbol/Symbol.for
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/symbol/sym3)
|
|
(get_global $std/symbol/sym4)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 24)
|
|
(i32.const 11)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/symbol/key1
|
|
(call $~lib/symbol/Symbol.keyFor
|
|
(get_global $std/symbol/sym1)
|
|
)
|
|
)
|
|
(set_global $std/symbol/key2
|
|
(call $~lib/symbol/Symbol.keyFor
|
|
(get_global $std/symbol/sym2)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/symbol/key1)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 24)
|
|
(i32.const 16)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/symbol/key2)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 24)
|
|
(i32.const 17)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/symbol/key3
|
|
(call $~lib/symbol/Symbol.keyFor
|
|
(get_global $std/symbol/sym3)
|
|
)
|
|
)
|
|
(set_global $std/symbol/key4
|
|
(call $~lib/symbol/Symbol.keyFor
|
|
(get_global $std/symbol/sym4)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(get_global $std/symbol/key3)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 24)
|
|
(i32.const 22)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(get_global $std/symbol/key3)
|
|
(get_global $std/symbol/key4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 24)
|
|
(i32.const 23)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
)
|