2018-04-23 22:49:04 +02:00
|
|
|
(module
|
2019-02-21 00:11:22 +01:00
|
|
|
(type $_ (func))
|
2019-02-07 15:26:26 +01:00
|
|
|
(type $iiii_ (func (param i32 i32 i32 i32)))
|
2018-04-23 22:49:04 +02:00
|
|
|
(type $iii (func (param i32 i32) (result i32)))
|
2018-08-04 16:30:03 +03:00
|
|
|
(type $ii (func (param i32) (result i32)))
|
2019-02-07 15:26:26 +01:00
|
|
|
(type $iii_ (func (param i32 i32 i32)))
|
2018-11-08 08:04:24 +01:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 1)
|
|
|
|
(data (i32.const 8) "\03\00\00\00\00\00\00\00\00\01\02\00\00\00\00\00")
|
|
|
|
(data (i32.const 24) "\08\00\00\00\03\00\00\00")
|
|
|
|
(data (i32.const 32) "\14\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00-\00l\00i\00t\00e\00r\00a\00l\00.\00t\00s\00")
|
|
|
|
(data (i32.const 80) "\0c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
|
|
(data (i32.const 112) "P\00\00\00\03\00\00\00")
|
|
|
|
(data (i32.const 120) "\00\00\00\00\00\00\00\00")
|
|
|
|
(data (i32.const 128) "x\00\00\00\00\00\00\00")
|
|
|
|
(data (i32.const 136) "\0d\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
|
|
|
(data (i32.const 168) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")
|
2019-02-05 17:12:10 +01:00
|
|
|
(table $0 1 funcref)
|
2018-10-11 08:49:08 +02:00
|
|
|
(elem (i32.const 0) $null)
|
2018-04-23 22:49:04 +02:00
|
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
2018-08-04 00:36:59 +02:00
|
|
|
(global $std/array-literal/staticArrayI8 i32 (i32.const 24))
|
|
|
|
(global $std/array-literal/staticArrayI32 i32 (i32.const 112))
|
|
|
|
(global $std/array-literal/emptyArrayI32 (mut i32) (i32.const 128))
|
2018-04-23 22:49:04 +02:00
|
|
|
(global $std/array-literal/i (mut i32) (i32.const 0))
|
2018-08-02 18:23:02 +02:00
|
|
|
(global $std/array-literal/dynamicArrayI8 (mut i32) (i32.const 0))
|
|
|
|
(global $std/array-literal/dynamicArrayI32 (mut i32) (i32.const 0))
|
2018-10-03 01:32:28 +02:00
|
|
|
(global $std/array-literal/dynamicArrayRef (mut i32) (i32.const 0))
|
|
|
|
(global $std/array-literal/dynamicArrayRefWithCtor (mut i32) (i32.const 0))
|
2019-02-21 00:11:22 +01:00
|
|
|
(global $~lib/memory/HEAP_BASE i32 (i32.const 228))
|
2018-04-23 22:49:04 +02:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-04-23 22:49:04 +02:00
|
|
|
(start $start)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $start:~lib/allocator/arena (; 1 ;) (type $_)
|
|
|
|
global.get $~lib/memory/HEAP_BASE
|
|
|
|
i32.const 7
|
|
|
|
i32.add
|
|
|
|
i32.const 7
|
|
|
|
i32.const -1
|
|
|
|
i32.xor
|
|
|
|
i32.and
|
|
|
|
global.set $~lib/allocator/arena/startOffset
|
|
|
|
global.get $~lib/allocator/arena/startOffset
|
|
|
|
global.set $~lib/allocator/arena/offset
|
|
|
|
)
|
|
|
|
(func $~lib/array/Array<i8>#__get (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-08-02 18:23:02 +02:00
|
|
|
(local $2 i32)
|
2018-12-07 14:33:32 +01:00
|
|
|
(local $3 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $4 i32)
|
|
|
|
(local $5 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.set $2
|
|
|
|
local.get $1
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load
|
|
|
|
i32.const 0
|
|
|
|
i32.shr_u
|
|
|
|
i32.lt_u
|
|
|
|
if (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $3
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $4
|
|
|
|
i32.const 0
|
|
|
|
local.set $5
|
|
|
|
local.get $3
|
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $5
|
2018-12-07 14:33:32 +01:00
|
|
|
i32.add
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load8_s offset=8
|
|
|
|
else
|
|
|
|
unreachable
|
|
|
|
end
|
2018-08-02 18:23:02 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/array/Array<i32>#__get (; 3 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-23 22:49:04 +02:00
|
|
|
(local $2 i32)
|
2018-12-07 14:33:32 +01:00
|
|
|
(local $3 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $4 i32)
|
|
|
|
(local $5 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.set $2
|
|
|
|
local.get $1
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load
|
|
|
|
i32.const 2
|
|
|
|
i32.shr_u
|
|
|
|
i32.lt_u
|
|
|
|
if (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $3
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $4
|
|
|
|
i32.const 0
|
|
|
|
local.set $5
|
|
|
|
local.get $3
|
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $5
|
2018-12-07 14:33:32 +01:00
|
|
|
i32.add
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load offset=8
|
|
|
|
else
|
|
|
|
unreachable
|
|
|
|
end
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/internal/arraybuffer/computeSize (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.const 32
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-21 00:11:22 +01:00
|
|
|
i32.const 8
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
|
|
|
i32.clz
|
|
|
|
i32.sub
|
|
|
|
i32.shl
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/allocator/arena/__memory_allocate (; 5 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-23 22:49:04 +02:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-21 00:11:22 +01:00
|
|
|
i32.const 1073741824
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.gt_u
|
|
|
|
if
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $~lib/allocator/arena/offset
|
|
|
|
local.set $1
|
|
|
|
local.get $1
|
|
|
|
local.get $0
|
|
|
|
local.tee $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.get $2
|
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.gt_u
|
|
|
|
select
|
|
|
|
i32.add
|
2019-02-21 00:11:22 +01:00
|
|
|
i32.const 7
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
2019-02-21 00:11:22 +01:00
|
|
|
i32.const 7
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const -1
|
|
|
|
i32.xor
|
|
|
|
i32.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
2018-11-08 08:04:24 +01:00
|
|
|
current_memory
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $5
|
|
|
|
local.get $4
|
|
|
|
local.get $5
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.shl
|
|
|
|
i32.gt_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.sub
|
|
|
|
i32.const 65535
|
|
|
|
i32.add
|
|
|
|
i32.const 65535
|
|
|
|
i32.const -1
|
|
|
|
i32.xor
|
|
|
|
i32.and
|
|
|
|
i32.const 16
|
|
|
|
i32.shr_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $5
|
|
|
|
local.tee $3
|
|
|
|
local.get $2
|
|
|
|
local.tee $6
|
|
|
|
local.get $3
|
|
|
|
local.get $6
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.gt_s
|
|
|
|
select
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
grow_memory
|
|
|
|
i32.const 0
|
|
|
|
i32.lt_s
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
grow_memory
|
|
|
|
i32.const 0
|
|
|
|
i32.lt_s
|
|
|
|
if
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
|
|
|
global.set $~lib/allocator/arena/offset
|
|
|
|
local.get $1
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/internal/arraybuffer/allocateUnsafe (; 6 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-23 22:49:04 +02:00
|
|
|
(local $1 i32)
|
2018-08-02 18:23:02 +02:00
|
|
|
(local $2 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-21 00:11:22 +01:00
|
|
|
i32.const 1073741816
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.le_u
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 168
|
2018-12-08 23:38:49 +01:00
|
|
|
i32.const 26
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
block $~lib/memory/memory.allocate|inlined.0 (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/internal/arraybuffer/computeSize
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
|
|
br $~lib/memory/memory.allocate|inlined.0
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $1
|
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/memory/memory.allocate (; 7 ;) (type $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
|
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
|
|
return
|
2018-08-02 18:23:02 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/internal/memory/memset (; 8 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-04-23 22:49:04 +02:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i64)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.le_u
|
|
|
|
if
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 2
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 3
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 6
|
|
|
|
i32.le_u
|
|
|
|
if
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 3
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 4
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.le_u
|
|
|
|
if
|
|
|
|
return
|
|
|
|
end
|
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.sub
|
|
|
|
i32.const 3
|
|
|
|
i32.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
|
|
|
local.get $0
|
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $2
|
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const -4
|
|
|
|
i32.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const -1
|
|
|
|
i32.const 255
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 255
|
|
|
|
i32.and
|
|
|
|
i32.mul
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $0
|
|
|
|
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 $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 4
|
|
|
|
i32.sub
|
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 $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.le_u
|
|
|
|
if
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
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
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
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 $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 12
|
|
|
|
i32.sub
|
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 $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 8
|
|
|
|
i32.sub
|
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 $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.le_u
|
|
|
|
if
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 12
|
|
|
|
i32.add
|
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
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.add
|
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
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 20
|
|
|
|
i32.add
|
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
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.add
|
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 $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 28
|
|
|
|
i32.sub
|
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 $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 24
|
|
|
|
i32.sub
|
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 $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 20
|
|
|
|
i32.sub
|
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 $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 16
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store
|
|
|
|
i32.const 24
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.and
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
|
|
|
local.get $0
|
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $2
|
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $4
|
|
|
|
i64.extend_i32_u
|
|
|
|
local.get $4
|
|
|
|
i64.extend_i32_u
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shl
|
|
|
|
i64.or
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $5
|
2018-11-08 08:04:24 +01:00
|
|
|
block $break|0
|
|
|
|
loop $continue|0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 32
|
|
|
|
i32.ge_u
|
|
|
|
if
|
|
|
|
block
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $5
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 32
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 32
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
|
|
|
br $continue|0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/array/Array<i8>#constructor (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-08-02 18:23:02 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $6 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1073741816
|
|
|
|
i32.gt_u
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 136
|
2018-12-08 23:38:49 +01:00
|
|
|
i32.const 45
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 39
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/internal/arraybuffer/allocateUnsafe
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
2019-02-02 16:03:21 +01:00
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 8
|
|
|
|
call $~lib/memory/memory.allocate
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +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
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
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-21 00:11:22 +01:00
|
|
|
block $~lib/memory/memory.fill|inlined.0
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-02-21 00:11:22 +01:00
|
|
|
i32.const 8
|
2019-02-06 23:42:43 +01:00
|
|
|
i32.add
|
|
|
|
local.set $4
|
|
|
|
i32.const 0
|
|
|
|
local.set $5
|
|
|
|
local.get $2
|
|
|
|
local.set $6
|
|
|
|
local.get $4
|
|
|
|
local.get $5
|
|
|
|
local.get $6
|
|
|
|
call $~lib/internal/memory/memset
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-08-02 18:23:02 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/array/Array<i8>#__unchecked_set (; 10 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-08-02 18:23:02 +02:00
|
|
|
(local $3 i32)
|
2018-12-07 14:33:32 +01:00
|
|
|
(local $4 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $5 i32)
|
|
|
|
(local $6 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.set $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $2
|
|
|
|
local.set $5
|
|
|
|
i32.const 0
|
|
|
|
local.set $6
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $6
|
2018-12-07 14:33:32 +01:00
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $5
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store8 offset=8
|
2018-07-18 23:49:32 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/array/Array<i32>#constructor (; 11 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-25 05:04:35 +02:00
|
|
|
(local $2 i32)
|
2018-04-23 22:49:04 +02:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-08-02 18:23:02 +02:00
|
|
|
(local $5 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $6 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 268435454
|
|
|
|
i32.gt_u
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 136
|
2018-12-08 23:38:49 +01:00
|
|
|
i32.const 45
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 39
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/internal/arraybuffer/allocateUnsafe
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
2019-02-02 16:03:21 +01:00
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 8
|
|
|
|
call $~lib/memory/memory.allocate
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +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
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
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-21 00:11:22 +01:00
|
|
|
block $~lib/memory/memory.fill|inlined.1
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-02-21 00:11:22 +01:00
|
|
|
i32.const 8
|
2019-02-06 23:42:43 +01:00
|
|
|
i32.add
|
|
|
|
local.set $4
|
|
|
|
i32.const 0
|
|
|
|
local.set $5
|
|
|
|
local.get $2
|
|
|
|
local.set $6
|
|
|
|
local.get $4
|
|
|
|
local.get $5
|
|
|
|
local.get $6
|
|
|
|
call $~lib/internal/memory/memset
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-04-25 05:04:35 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/array/Array<i32>#__unchecked_set (; 12 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-04-25 05:04:35 +02:00
|
|
|
(local $3 i32)
|
2018-12-07 14:33:32 +01:00
|
|
|
(local $4 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $5 i32)
|
|
|
|
(local $6 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.set $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $2
|
|
|
|
local.set $5
|
|
|
|
i32.const 0
|
|
|
|
local.set $6
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $6
|
2018-12-07 14:33:32 +01:00
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $5
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store offset=8
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $std/array-literal/Ref#constructor (; 13 ;) (type $ii) (param $0 i32) (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/memory/memory.allocate
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2019-02-02 16:03:21 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/array/Array<Ref>#constructor (; 14 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-10-03 01:32:28 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $6 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 268435454
|
|
|
|
i32.gt_u
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 136
|
2018-12-08 23:38:49 +01:00
|
|
|
i32.const 45
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 39
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/internal/arraybuffer/allocateUnsafe
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
2019-02-02 16:03:21 +01:00
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 8
|
|
|
|
call $~lib/memory/memory.allocate
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +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
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
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-21 00:11:22 +01:00
|
|
|
block $~lib/memory/memory.fill|inlined.2
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-02-21 00:11:22 +01:00
|
|
|
i32.const 8
|
2019-02-06 23:42:43 +01:00
|
|
|
i32.add
|
|
|
|
local.set $4
|
|
|
|
i32.const 0
|
|
|
|
local.set $5
|
|
|
|
local.get $2
|
|
|
|
local.set $6
|
|
|
|
local.get $4
|
|
|
|
local.get $5
|
|
|
|
local.get $6
|
|
|
|
call $~lib/internal/memory/memset
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-10-03 01:32:28 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/array/Array<Ref>#__unchecked_set (; 15 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-10-03 01:32:28 +02:00
|
|
|
(local $3 i32)
|
2018-12-07 14:33:32 +01:00
|
|
|
(local $4 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $5 i32)
|
|
|
|
(local $6 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.set $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $2
|
|
|
|
local.set $5
|
|
|
|
i32.const 0
|
|
|
|
local.set $6
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $6
|
2018-12-07 14:33:32 +01:00
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $5
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store offset=8
|
2018-10-03 01:32:28 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $std/array-literal/RefWithCtor#constructor (; 16 ;) (type $ii) (param $0 i32) (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/memory/memory.allocate
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-10-03 01:32:28 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/array/Array<RefWithCtor>#constructor (; 17 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-10-03 01:32:28 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $6 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 268435454
|
|
|
|
i32.gt_u
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 136
|
2018-12-08 23:38:49 +01:00
|
|
|
i32.const 45
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 39
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/internal/arraybuffer/allocateUnsafe
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
2019-02-02 16:03:21 +01:00
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 8
|
|
|
|
call $~lib/memory/memory.allocate
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-02 16:03:21 +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
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
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-21 00:11:22 +01:00
|
|
|
block $~lib/memory/memory.fill|inlined.3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-02-21 00:11:22 +01:00
|
|
|
i32.const 8
|
2019-02-06 23:42:43 +01:00
|
|
|
i32.add
|
|
|
|
local.set $4
|
|
|
|
i32.const 0
|
|
|
|
local.set $5
|
|
|
|
local.get $2
|
|
|
|
local.set $6
|
|
|
|
local.get $4
|
|
|
|
local.get $5
|
|
|
|
local.get $6
|
|
|
|
call $~lib/internal/memory/memset
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-10-03 01:32:28 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $~lib/array/Array<RefWithCtor>#__unchecked_set (; 18 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-10-03 01:32:28 +02:00
|
|
|
(local $3 i32)
|
2018-12-07 14:33:32 +01:00
|
|
|
(local $4 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $5 i32)
|
|
|
|
(local $6 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.set $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $2
|
|
|
|
local.set $5
|
|
|
|
i32.const 0
|
|
|
|
local.set $6
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $6
|
2018-12-07 14:33:32 +01:00
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $5
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.store offset=8
|
2018-10-03 01:32:28 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $start:std/array-literal (; 19 ;) (type $_)
|
2018-04-23 22:49:04 +02:00
|
|
|
(local $0 i32)
|
2018-10-03 01:32:28 +02:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2019-02-21 00:11:22 +01:00
|
|
|
call $start:~lib/allocator/arena
|
2018-11-08 08:04:24 +01:00
|
|
|
block $~lib/array/Array<i8>#get:length|inlined.0 (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/staticArrayI8
|
|
|
|
local.set $0
|
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load offset=4
|
|
|
|
end
|
|
|
|
i32.const 3
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 4
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/staticArrayI8
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
|
|
|
call $~lib/array/Array<i8>#__get
|
|
|
|
i32.const 24
|
|
|
|
i32.shl
|
|
|
|
i32.const 24
|
|
|
|
i32.shr_s
|
|
|
|
i32.const 0
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 5
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/staticArrayI8
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
call $~lib/array/Array<i8>#__get
|
|
|
|
i32.const 24
|
|
|
|
i32.shl
|
|
|
|
i32.const 24
|
|
|
|
i32.shr_s
|
|
|
|
i32.const 1
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 6
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/staticArrayI8
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
call $~lib/array/Array<i8>#__get
|
|
|
|
i32.const 24
|
|
|
|
i32.shl
|
|
|
|
i32.const 24
|
|
|
|
i32.shr_s
|
|
|
|
i32.const 2
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 7
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
block $~lib/array/Array<i32>#get:length|inlined.0 (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/staticArrayI32
|
|
|
|
local.set $0
|
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load offset=4
|
|
|
|
end
|
|
|
|
i32.const 3
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 10
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/staticArrayI32
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
|
|
|
call $~lib/array/Array<i32>#__get
|
|
|
|
i32.const 0
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 11
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/staticArrayI32
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
call $~lib/array/Array<i32>#__get
|
|
|
|
i32.const 1
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 12
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/staticArrayI32
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
call $~lib/array/Array<i32>#__get
|
|
|
|
i32.const 2
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 13
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
block $~lib/array/Array<i32>#get:length|inlined.1 (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/emptyArrayI32
|
|
|
|
local.set $0
|
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load offset=4
|
|
|
|
end
|
|
|
|
i32.const 0
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 16
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
block (result i32)
|
|
|
|
i32.const 0
|
|
|
|
i32.const 3
|
|
|
|
call $~lib/array/Array<i8>#constructor
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/array/Array<i8>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $std/array-literal/i
|
|
|
|
global.get $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
|
|
|
call $~lib/array/Array<i8>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $std/array-literal/i
|
|
|
|
global.get $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
|
|
|
call $~lib/array/Array<i8>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $std/array-literal/dynamicArrayI8
|
2018-11-08 08:04:24 +01:00
|
|
|
block $~lib/array/Array<i8>#get:length|inlined.1 (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/dynamicArrayI8
|
|
|
|
local.set $1
|
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load offset=4
|
|
|
|
end
|
|
|
|
i32.const 3
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 21
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/dynamicArrayI8
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
|
|
|
call $~lib/array/Array<i8>#__get
|
|
|
|
i32.const 24
|
|
|
|
i32.shl
|
|
|
|
i32.const 24
|
|
|
|
i32.shr_s
|
|
|
|
i32.const 0
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 22
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/dynamicArrayI8
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
call $~lib/array/Array<i8>#__get
|
|
|
|
i32.const 24
|
|
|
|
i32.shl
|
|
|
|
i32.const 24
|
|
|
|
i32.shr_s
|
|
|
|
i32.const 1
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 23
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/dynamicArrayI8
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
call $~lib/array/Array<i8>#__get
|
|
|
|
i32.const 24
|
|
|
|
i32.shl
|
|
|
|
i32.const 24
|
|
|
|
i32.shr_s
|
|
|
|
i32.const 2
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 24
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result i32)
|
|
|
|
i32.const 0
|
|
|
|
i32.const 3
|
|
|
|
call $~lib/array/Array<i32>#constructor
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/array/Array<i32>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $std/array-literal/i
|
|
|
|
global.get $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
|
|
|
call $~lib/array/Array<i32>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $std/array-literal/i
|
|
|
|
global.get $std/array-literal/i
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
|
|
|
call $~lib/array/Array<i32>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $std/array-literal/dynamicArrayI32
|
2018-11-08 08:04:24 +01:00
|
|
|
block $~lib/array/Array<i32>#get:length|inlined.2 (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/dynamicArrayI32
|
|
|
|
local.set $2
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load offset=4
|
|
|
|
end
|
|
|
|
i32.const 3
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 29
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/dynamicArrayI32
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
|
|
|
call $~lib/array/Array<i32>#__get
|
|
|
|
i32.const 0
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 30
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/dynamicArrayI32
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
call $~lib/array/Array<i32>#__get
|
|
|
|
i32.const 1
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 31
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/dynamicArrayI32
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
call $~lib/array/Array<i32>#__get
|
|
|
|
i32.const 2
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 32
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
block (result i32)
|
|
|
|
i32.const 0
|
|
|
|
i32.const 3
|
|
|
|
call $~lib/array/Array<Ref>#constructor
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.const 0
|
|
|
|
call $std/array-literal/Ref#constructor
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/array/Array<Ref>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.const 0
|
|
|
|
call $std/array-literal/Ref#constructor
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/array/Array<Ref>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
2019-02-02 16:03:21 +01:00
|
|
|
i32.const 0
|
|
|
|
call $std/array-literal/Ref#constructor
|
2018-11-08 08:04:24 +01:00
|
|
|
call $~lib/array/Array<Ref>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $std/array-literal/dynamicArrayRef
|
2018-11-08 08:04:24 +01:00
|
|
|
block $~lib/array/Array<Ref>#get:length|inlined.0 (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/dynamicArrayRef
|
|
|
|
local.set $3
|
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load offset=4
|
|
|
|
end
|
|
|
|
i32.const 3
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 36
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
block (result i32)
|
|
|
|
i32.const 0
|
|
|
|
i32.const 3
|
|
|
|
call $~lib/array/Array<RefWithCtor>#constructor
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.const 0
|
|
|
|
call $std/array-literal/RefWithCtor#constructor
|
|
|
|
call $~lib/array/Array<RefWithCtor>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.const 0
|
|
|
|
call $std/array-literal/RefWithCtor#constructor
|
|
|
|
call $~lib/array/Array<RefWithCtor>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.const 0
|
|
|
|
call $std/array-literal/RefWithCtor#constructor
|
|
|
|
call $~lib/array/Array<RefWithCtor>#__unchecked_set
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $std/array-literal/dynamicArrayRefWithCtor
|
2018-11-08 08:04:24 +01:00
|
|
|
block $~lib/array/Array<RefWithCtor>#get:length|inlined.0 (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $std/array-literal/dynamicArrayRefWithCtor
|
|
|
|
local.set $4
|
|
|
|
local.get $4
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.load offset=4
|
|
|
|
end
|
|
|
|
i32.const 3
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 32
|
|
|
|
i32.const 40
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $start (; 20 ;) (type $_)
|
|
|
|
call $start:std/array-literal
|
|
|
|
)
|
|
|
|
(func $null (; 21 ;) (type $_)
|
2018-09-17 01:48:35 +02:00
|
|
|
)
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|