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