assemblyscript/tests/compiler/std/static-array.untouched.wat

1549 lines
31 KiB
Plaintext
Raw Normal View History

(module
(type $FUNCSIG$ii (func (param i32) (result i32)))
2019-03-17 01:35:44 +01:00
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
2019-03-18 16:09:49 +01:00
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$jii (func (param i32 i32) (result i64)))
(type $FUNCSIG$viij (func (param i32 i32 i64)))
(type $FUNCSIG$fii (func (param i32 i32) (result f32)))
(type $FUNCSIG$viif (func (param i32 i32 f32)))
(type $FUNCSIG$dii (func (param i32 i32) (result f64)))
(type $FUNCSIG$viid (func (param i32 i32 f64)))
2019-03-17 01:35:44 +01:00
(type $FUNCSIG$v (func))
2019-04-06 20:17:48 +02:00
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(memory $0 1)
2019-04-06 20:17:48 +02:00
(data (i32.const 8) "\0f\00\00\00\08\00\00\00\01\00\00\00\02\00\00\00")
(data (i32.const 24) "\11\00\00\00\10\00\00\00\10\00\00\00\10\00\00\00\08\00\00\00\02\00\00\00")
(data (i32.const 48) "\0f\00\00\00\10\00\00\00\03\00\00\00\00\00\00\00\04\00\00\00\00\00\00\00")
(data (i32.const 72) "\12\00\00\00\10\00\00\008\00\00\008\00\00\00\10\00\00\00\02\00\00\00")
(data (i32.const 96) "\0f\00\00\00\08\00\00\00\00\00\c0?\00\00 @")
(data (i32.const 112) "\13\00\00\00\10\00\00\00h\00\00\00h\00\00\00\08\00\00\00\02\00\00\00")
(data (i32.const 136) "\0f\00\00\00\10\00\00\00\00\00\00\00\00\00\f4?\00\00\00\00\00\00\02@")
(data (i32.const 160) "\14\00\00\00\10\00\00\00\90\00\00\00\90\00\00\00\10\00\00\00\02\00\00\00")
(data (i32.const 184) "\10\00\00\00&\00\00\00s\00t\00d\00/\00s\00t\00a\00t\00i\00c\00-\00a\00r\00r\00a\00y\00.\00t\00s\00")
(data (i32.const 232) "\10\00\00\00\1a\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
(data (i32.const 272) "\10\00\00\00(\00\00\00~\00l\00i\00b\00/\00u\00t\00i\00l\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s\00")
(data (i32.const 320) "\10\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00u\00n\00t\00i\00m\00e\00.\00t\00s\00")
(data (i32.const 360) "\14\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00\08\00\00\00\00\00\00\00I\00\00\00\0e\00\00\00\89\00\00\00\0e\00\00\00I\00\00\00\0e\00\00\00\89\00\00\00\0e\00\00\00")
(table $0 1 funcref)
(elem (i32.const 0) $null)
2019-03-17 01:35:44 +01:00
(global $std/static-array/i i32 (i32.const 32))
(global $std/static-array/I i32 (i32.const 80))
(global $std/static-array/f i32 (i32.const 120))
(global $std/static-array/F i32 (i32.const 168))
2019-04-02 10:12:57 +02:00
(global $~lib/util/runtime/HEADER_SIZE i32 (i32.const 8))
(global $~lib/util/runtime/MAX_BYTELENGTH i32 (i32.const 1073741816))
2019-03-27 14:43:35 +01:00
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
2019-04-02 10:12:57 +02:00
(global $~lib/util/runtime/HEADER_MAGIC i32 (i32.const -1520547049))
2019-04-06 20:17:48 +02:00
(global $~lib/ASC_NO_ASSERT i32 (i32.const 0))
(global $~lib/runtime/RTTI_BASE i32 (i32.const 360))
(global $~lib/memory/HEAP_BASE i32 (i32.const 528))
(export "memory" (memory $0))
2019-04-06 20:17:48 +02:00
(export "$.instanceof" (func $~lib/runtime/runtime.instanceof))
(export "$.flags" (func $~lib/runtime/runtime.flags))
(export "$.newObject" (func $~lib/runtime/runtime.newObject))
(export "$.newString" (func $~lib/runtime/runtime.newString))
(export "$.newArrayBuffer" (func $~lib/runtime/runtime.newArrayBuffer))
(export "$.newArray" (func $~lib/runtime/runtime.newArray))
(export "$.retain" (func $~lib/runtime/runtime.retain))
(export "$.release" (func $~lib/runtime/runtime.release))
(export "$.collect" (func $~lib/runtime/runtime.collect))
(start $start)
2019-03-17 01:35:44 +01:00
(func $~lib/array/Array<i32>#get:length (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
2019-03-17 01:35:44 +01:00
i32.load offset=12
)
2019-03-26 23:35:08 +01:00
(func $~lib/array/Array<i32>#__unchecked_get (; 2 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
i32.load offset=4
local.get $1
i32.const 2
i32.shl
i32.add
i32.load
)
(func $~lib/array/Array<i32>#__get (; 3 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-03-18 16:09:49 +01:00
local.get $1
local.get $0
i32.load offset=8
i32.const 2
i32.shr_u
i32.ge_u
if
i32.const 0
i32.const 240
2019-04-04 02:25:22 +02:00
i32.const 99
2019-03-18 16:09:49 +01:00
i32.const 61
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
2019-03-18 16:09:49 +01:00
unreachable
end
local.get $0
local.get $1
2019-03-26 23:35:08 +01:00
call $~lib/array/Array<i32>#__unchecked_get
2019-03-18 16:09:49 +01:00
)
2019-04-03 21:47:38 +02:00
(func $~lib/util/runtime/adjust (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-03-18 16:09:49 +01:00
i32.const 1
i32.const 32
local.get $0
2019-04-02 10:12:57 +02:00
global.get $~lib/util/runtime/HEADER_SIZE
2019-03-18 16:09:49 +01:00
i32.add
i32.const 1
i32.sub
i32.clz
i32.sub
i32.shl
)
2019-03-27 17:21:52 +01:00
(func $~lib/allocator/arena/__mem_allocate (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-03-27 14:43:35 +01:00
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
2019-03-27 17:21:52 +01:00
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.set $1
local.get $1
local.get $0
local.tee $2
i32.const 1
local.tee $3
local.get $2
local.get $3
i32.gt_u
select
i32.add
i32.const 7
i32.add
i32.const 7
i32.const -1
i32.xor
i32.and
local.set $4
current_memory
local.set $5
local.get $4
local.get $5
i32.const 16
i32.shl
i32.gt_u
if
2019-03-27 14:43:35 +01:00
local.get $4
2019-03-27 17:21:52 +01:00
local.get $1
i32.sub
i32.const 65535
2019-03-27 14:43:35 +01:00
i32.add
2019-03-27 17:21:52 +01:00
i32.const 65535
2019-03-27 14:43:35 +01:00
i32.const -1
i32.xor
i32.and
2019-03-27 17:21:52 +01:00
i32.const 16
i32.shr_u
local.set $2
local.get $5
local.tee $3
local.get $2
local.tee $6
local.get $3
local.get $6
i32.gt_s
select
2019-03-27 14:43:35 +01:00
local.set $3
local.get $3
2019-03-27 17:21:52 +01:00
grow_memory
i32.const 0
i32.lt_s
2019-03-27 14:43:35 +01:00
if
local.get $2
grow_memory
i32.const 0
i32.lt_s
if
2019-03-27 17:21:52 +01:00
unreachable
2019-03-27 14:43:35 +01:00
end
end
end
2019-03-27 17:21:52 +01:00
local.get $4
global.set $~lib/allocator/arena/offset
local.get $1
)
(func $~lib/memory/memory.allocate (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
call $~lib/allocator/arena/__mem_allocate
2019-03-27 14:43:35 +01:00
return
2019-03-18 16:09:49 +01:00
)
2019-04-04 02:25:22 +02:00
(func $~lib/memory/memory.copy (; 7 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
2019-03-18 16:09:49 +01:00
(local $3 i32)
2019-03-20 14:16:18 +01:00
(local $4 i32)
(local $5 i32)
2019-03-18 16:09:49 +01:00
block $~lib/util/memory/memmove|inlined.0
local.get $0
local.get $1
i32.eq
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $0
local.get $1
i32.lt_u
if
local.get $1
i32.const 7
i32.and
local.get $0
i32.const 7
i32.and
i32.eq
if
block $break|0
loop $continue|0
local.get $0
i32.const 7
i32.and
if
block
local.get $2
i32.eqz
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $2
i32.const 1
i32.sub
local.set $2
block (result i32)
local.get $0
2019-03-20 14:16:18 +01:00
local.tee $5
2019-03-18 16:09:49 +01:00
i32.const 1
i32.add
local.set $0
2019-03-20 14:16:18 +01:00
local.get $5
2019-03-18 16:09:49 +01:00
end
block (result i32)
local.get $1
2019-03-20 14:16:18 +01:00
local.tee $5
2019-03-18 16:09:49 +01:00
i32.const 1
i32.add
local.set $1
2019-03-20 14:16:18 +01:00
local.get $5
2019-03-18 16:09:49 +01:00
end
i32.load8_u
i32.store8
end
br $continue|0
end
end
end
block $break|1
loop $continue|1
local.get $2
i32.const 8
i32.ge_u
if
block
local.get $0
local.get $1
i64.load
i64.store
local.get $2
i32.const 8
i32.sub
local.set $2
local.get $0
i32.const 8
i32.add
local.set $0
local.get $1
i32.const 8
i32.add
local.set $1
end
br $continue|1
end
end
end
end
block $break|2
loop $continue|2
local.get $2
if
block
block (result i32)
local.get $0
2019-03-20 14:16:18 +01:00
local.tee $5
2019-03-18 16:09:49 +01:00
i32.const 1
i32.add
local.set $0
2019-03-20 14:16:18 +01:00
local.get $5
2019-03-18 16:09:49 +01:00
end
block (result i32)
local.get $1
2019-03-20 14:16:18 +01:00
local.tee $5
2019-03-18 16:09:49 +01:00
i32.const 1
i32.add
local.set $1
2019-03-20 14:16:18 +01:00
local.get $5
2019-03-18 16:09:49 +01:00
end
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
end
br $continue|2
end
end
end
else
local.get $1
i32.const 7
i32.and
local.get $0
i32.const 7
i32.and
i32.eq
if
block $break|3
loop $continue|3
local.get $0
local.get $2
i32.add
i32.const 7
i32.and
if
block
local.get $2
i32.eqz
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $0
local.get $2
i32.const 1
i32.sub
local.tee $2
i32.add
local.get $1
local.get $2
i32.add
i32.load8_u
i32.store8
end
br $continue|3
end
end
end
block $break|4
loop $continue|4
local.get $2
i32.const 8
i32.ge_u
if
block
local.get $2
i32.const 8
i32.sub
local.set $2
local.get $0
local.get $2
i32.add
local.get $1
local.get $2
i32.add
i64.load
i64.store
end
br $continue|4
end
end
end
end
block $break|5
loop $continue|5
local.get $2
if
local.get $0
local.get $2
i32.const 1
i32.sub
local.tee $2
i32.add
local.get $1
local.get $2
i32.add
i32.load8_u
i32.store8
br $continue|5
end
end
end
end
end
)
2019-04-04 02:25:22 +02:00
(func $~lib/memory/memory.fill (; 8 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
2019-03-18 16:09:49 +01:00
(local $3 i32)
(local $4 i32)
2019-03-20 14:16:18 +01:00
(local $5 i32)
(local $6 i64)
2019-03-18 16:09:49 +01:00
block $~lib/util/memory/memset|inlined.0
local.get $2
i32.eqz
if
br $~lib/util/memory/memset|inlined.0
end
local.get $0
local.get $1
i32.store8
local.get $0
local.get $2
i32.add
i32.const 1
i32.sub
local.get $1
i32.store8
local.get $2
i32.const 2
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $0
i32.const 1
i32.add
local.get $1
i32.store8
local.get $0
i32.const 2
i32.add
local.get $1
i32.store8
local.get $0
local.get $2
i32.add
i32.const 2
i32.sub
local.get $1
i32.store8
local.get $0
local.get $2
i32.add
i32.const 3
i32.sub
local.get $1
i32.store8
local.get $2
i32.const 6
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $0
i32.const 3
i32.add
local.get $1
i32.store8
local.get $0
local.get $2
i32.add
i32.const 4
i32.sub
local.get $1
i32.store8
local.get $2
i32.const 8
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
i32.const 0
local.get $0
i32.sub
i32.const 3
i32.and
2019-03-20 14:16:18 +01:00
local.set $5
2019-03-18 16:09:49 +01:00
local.get $0
2019-03-20 14:16:18 +01:00
local.get $5
2019-03-18 16:09:49 +01:00
i32.add
local.set $0
local.get $2
2019-03-20 14:16:18 +01:00
local.get $5
2019-03-18 16:09:49 +01:00
i32.sub
local.set $2
local.get $2
i32.const -4
i32.and
local.set $2
i32.const -1
i32.const 255
i32.div_u
local.get $1
i32.const 255
i32.and
i32.mul
local.set $4
local.get $0
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 4
i32.sub
local.get $4
i32.store
local.get $2
i32.const 8
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $0
i32.const 4
i32.add
local.get $4
i32.store
local.get $0
i32.const 8
i32.add
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 12
i32.sub
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 8
i32.sub
local.get $4
i32.store
local.get $2
i32.const 24
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $0
i32.const 12
i32.add
local.get $4
i32.store
local.get $0
i32.const 16
i32.add
local.get $4
i32.store
local.get $0
i32.const 20
i32.add
local.get $4
i32.store
local.get $0
i32.const 24
i32.add
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 28
i32.sub
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 24
i32.sub
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 20
i32.sub
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 16
i32.sub
local.get $4
i32.store
i32.const 24
local.get $0
i32.const 4
i32.and
i32.add
2019-03-20 14:16:18 +01:00
local.set $5
2019-03-18 16:09:49 +01:00
local.get $0
2019-03-20 14:16:18 +01:00
local.get $5
2019-03-18 16:09:49 +01:00
i32.add
local.set $0
local.get $2
2019-03-20 14:16:18 +01:00
local.get $5
2019-03-18 16:09:49 +01:00
i32.sub
local.set $2
local.get $4
i64.extend_i32_u
local.get $4
i64.extend_i32_u
i64.const 32
i64.shl
i64.or
2019-03-20 14:16:18 +01:00
local.set $6
2019-03-18 16:09:49 +01:00
block $break|0
loop $continue|0
local.get $2
i32.const 32
i32.ge_u
if
block
local.get $0
2019-03-20 14:16:18 +01:00
local.get $6
2019-03-18 16:09:49 +01:00
i64.store
local.get $0
i32.const 8
i32.add
2019-03-20 14:16:18 +01:00
local.get $6
2019-03-18 16:09:49 +01:00
i64.store
local.get $0
i32.const 16
i32.add
2019-03-20 14:16:18 +01:00
local.get $6
2019-03-18 16:09:49 +01:00
i64.store
local.get $0
i32.const 24
i32.add
2019-03-20 14:16:18 +01:00
local.get $6
2019-03-18 16:09:49 +01:00
i64.store
local.get $2
i32.const 32
i32.sub
local.set $2
local.get $0
i32.const 32
i32.add
local.set $0
end
br $continue|0
end
end
end
end
)
2019-04-04 02:25:22 +02:00
(func $~lib/allocator/arena/__mem_free (; 9 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-03-27 17:21:52 +01:00
nop
)
2019-04-04 02:25:22 +02:00
(func $~lib/memory/memory.free (; 10 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-03-27 14:43:35 +01:00
local.get $0
2019-03-27 17:21:52 +01:00
call $~lib/allocator/arena/__mem_free
2019-03-18 16:09:49 +01:00
)
2019-04-04 02:25:22 +02:00
(func $~lib/util/runtime/reallocate (; 11 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-03-18 16:09:49 +01:00
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
local.get $0
2019-04-02 10:12:57 +02:00
global.get $~lib/util/runtime/HEADER_SIZE
2019-03-18 16:09:49 +01:00
i32.sub
local.set $2
local.get $2
i32.load offset=4
local.set $3
local.get $3
local.get $1
i32.lt_u
if
local.get $1
2019-04-03 21:47:38 +02:00
call $~lib/util/runtime/adjust
2019-03-18 16:09:49 +01:00
local.set $4
local.get $3
2019-04-03 21:47:38 +02:00
call $~lib/util/runtime/adjust
2019-03-18 16:09:49 +01:00
i32.const 0
local.get $0
global.get $~lib/memory/HEAP_BASE
i32.gt_u
select
local.get $4
i32.lt_u
if
local.get $4
call $~lib/memory/memory.allocate
local.set $5
local.get $5
local.get $2
i32.load
i32.store
local.get $5
2019-04-02 10:12:57 +02:00
global.get $~lib/util/runtime/HEADER_SIZE
2019-03-18 16:09:49 +01:00
i32.add
local.set $6
local.get $6
local.get $0
local.get $3
call $~lib/memory/memory.copy
local.get $6
local.get $3
i32.add
i32.const 0
local.get $1
local.get $3
i32.sub
call $~lib/memory/memory.fill
local.get $2
i32.load
2019-04-02 10:12:57 +02:00
global.get $~lib/util/runtime/HEADER_MAGIC
2019-03-18 16:09:49 +01:00
i32.eq
if
local.get $0
global.get $~lib/memory/HEAP_BASE
i32.gt_u
i32.eqz
if
i32.const 0
i32.const 280
2019-04-06 20:17:48 +02:00
i32.const 91
2019-04-04 02:25:22 +02:00
i32.const 8
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
2019-03-18 16:09:49 +01:00
unreachable
end
local.get $2
call $~lib/memory/memory.free
else
nop
end
local.get $5
local.set $2
local.get $6
local.set $0
else
local.get $0
local.get $3
i32.add
i32.const 0
local.get $1
local.get $3
i32.sub
call $~lib/memory/memory.fill
end
else
nop
end
local.get $2
local.get $1
i32.store offset=4
local.get $0
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/ensureCapacity (; 12 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
2019-03-18 16:09:49 +01:00
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $1
local.get $0
i32.load offset=8
local.get $2
i32.shr_u
i32.gt_u
if
local.get $1
2019-04-02 10:12:57 +02:00
global.get $~lib/util/runtime/MAX_BYTELENGTH
2019-03-18 16:09:49 +01:00
local.get $2
i32.shr_u
i32.gt_u
if
i32.const 0
i32.const 240
2019-04-04 02:25:22 +02:00
i32.const 14
2019-04-02 10:12:57 +02:00
i32.const 64
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
2019-03-18 16:09:49 +01:00
unreachable
end
local.get $0
i32.load
local.set $3
local.get $1
local.get $2
i32.shl
local.set $4
2019-04-01 22:23:11 +02:00
local.get $3
local.get $4
2019-04-04 02:25:22 +02:00
call $~lib/util/runtime/reallocate
2019-03-20 14:16:18 +01:00
local.set $5
local.get $5
2019-03-18 16:09:49 +01:00
local.get $3
i32.ne
if
local.get $0
2019-03-20 14:16:18 +01:00
local.get $5
2019-03-18 16:09:49 +01:00
i32.store
local.get $0
2019-03-20 14:16:18 +01:00
local.get $5
2019-03-18 16:09:49 +01:00
i32.store offset=4
end
local.get $0
local.get $4
i32.store offset=8
end
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<i32>#__unchecked_set (; 13 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
2019-03-26 23:35:08 +01:00
local.get $0
i32.load offset=4
local.get $1
i32.const 2
i32.shl
i32.add
local.get $2
i32.store
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<i32>#__set (; 14 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
local.get $0
i32.load offset=12
local.set $3
2019-03-18 16:09:49 +01:00
local.get $0
local.get $1
i32.const 1
i32.add
i32.const 2
call $~lib/array/ensureCapacity
local.get $0
local.get $1
local.get $2
2019-03-26 23:35:08 +01:00
call $~lib/array/Array<i32>#__unchecked_set
2019-03-18 16:09:49 +01:00
local.get $1
local.get $3
2019-03-18 16:09:49 +01:00
i32.ge_s
if
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=12
end
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<i64>#get:length (; 15 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-03-18 16:09:49 +01:00
local.get $0
i32.load offset=12
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<i64>#__unchecked_get (; 16 ;) (type $FUNCSIG$jii) (param $0 i32) (param $1 i32) (result i64)
2019-03-26 23:35:08 +01:00
local.get $0
i32.load offset=4
local.get $1
i32.const 3
i32.shl
i32.add
i64.load
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<i64>#__get (; 17 ;) (type $FUNCSIG$jii) (param $0 i32) (param $1 i32) (result i64)
2019-03-18 16:09:49 +01:00
local.get $1
local.get $0
i32.load offset=8
i32.const 3
i32.shr_u
i32.ge_u
if
i32.const 0
i32.const 240
2019-04-04 02:25:22 +02:00
i32.const 99
2019-03-18 16:09:49 +01:00
i32.const 61
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
2019-03-18 16:09:49 +01:00
unreachable
end
2019-03-26 23:35:08 +01:00
local.get $0
local.get $1
call $~lib/array/Array<i64>#__unchecked_get
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<i64>#__unchecked_set (; 18 ;) (type $FUNCSIG$viij) (param $0 i32) (param $1 i32) (param $2 i64)
2019-03-18 16:09:49 +01:00
local.get $0
i32.load offset=4
local.get $1
i32.const 3
i32.shl
i32.add
2019-03-26 23:35:08 +01:00
local.get $2
i64.store
2019-03-18 16:09:49 +01:00
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<i64>#__set (; 19 ;) (type $FUNCSIG$viij) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
local.get $0
i32.load offset=12
local.set $3
2019-03-18 16:09:49 +01:00
local.get $0
local.get $1
i32.const 1
i32.add
i32.const 3
call $~lib/array/ensureCapacity
local.get $0
local.get $1
local.get $2
2019-03-26 23:35:08 +01:00
call $~lib/array/Array<i64>#__unchecked_set
2019-03-18 16:09:49 +01:00
local.get $1
local.get $3
2019-03-18 16:09:49 +01:00
i32.ge_s
if
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=12
end
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<f32>#get:length (; 20 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-03-18 16:09:49 +01:00
local.get $0
i32.load offset=12
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<f32>#__unchecked_get (; 21 ;) (type $FUNCSIG$fii) (param $0 i32) (param $1 i32) (result f32)
2019-03-26 23:35:08 +01:00
local.get $0
i32.load offset=4
local.get $1
i32.const 2
i32.shl
i32.add
f32.load
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<f32>#__get (; 22 ;) (type $FUNCSIG$fii) (param $0 i32) (param $1 i32) (result f32)
2019-03-18 16:09:49 +01:00
local.get $1
local.get $0
i32.load offset=8
i32.const 2
i32.shr_u
i32.ge_u
if
i32.const 0
i32.const 240
2019-04-04 02:25:22 +02:00
i32.const 99
2019-03-18 16:09:49 +01:00
i32.const 61
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
2019-03-18 16:09:49 +01:00
unreachable
end
2019-03-26 23:35:08 +01:00
local.get $0
local.get $1
call $~lib/array/Array<f32>#__unchecked_get
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<f32>#__unchecked_set (; 23 ;) (type $FUNCSIG$viif) (param $0 i32) (param $1 i32) (param $2 f32)
2019-03-18 16:09:49 +01:00
local.get $0
i32.load offset=4
local.get $1
i32.const 2
i32.shl
i32.add
2019-03-26 23:35:08 +01:00
local.get $2
f32.store
2019-03-18 16:09:49 +01:00
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<f32>#__set (; 24 ;) (type $FUNCSIG$viif) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
local.get $0
i32.load offset=12
local.set $3
2019-03-18 16:09:49 +01:00
local.get $0
local.get $1
i32.const 1
i32.add
i32.const 2
call $~lib/array/ensureCapacity
local.get $0
local.get $1
local.get $2
2019-03-26 23:35:08 +01:00
call $~lib/array/Array<f32>#__unchecked_set
2019-03-18 16:09:49 +01:00
local.get $1
local.get $3
2019-03-18 16:09:49 +01:00
i32.ge_s
if
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=12
end
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<f64>#get:length (; 25 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
2019-03-17 01:35:44 +01:00
i32.load offset=12
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<f64>#__unchecked_get (; 26 ;) (type $FUNCSIG$dii) (param $0 i32) (param $1 i32) (result f64)
2019-03-26 23:35:08 +01:00
local.get $0
i32.load offset=4
local.get $1
i32.const 3
i32.shl
i32.add
f64.load
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<f64>#__get (; 27 ;) (type $FUNCSIG$dii) (param $0 i32) (param $1 i32) (result f64)
2019-03-18 16:09:49 +01:00
local.get $1
local.get $0
i32.load offset=8
i32.const 3
i32.shr_u
i32.ge_u
if
i32.const 0
i32.const 240
2019-04-04 02:25:22 +02:00
i32.const 99
2019-03-18 16:09:49 +01:00
i32.const 61
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
2019-03-18 16:09:49 +01:00
unreachable
end
2019-03-26 23:35:08 +01:00
local.get $0
local.get $1
call $~lib/array/Array<f64>#__unchecked_get
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<f64>#__unchecked_set (; 28 ;) (type $FUNCSIG$viid) (param $0 i32) (param $1 i32) (param $2 f64)
2019-03-18 16:09:49 +01:00
local.get $0
i32.load offset=4
local.get $1
i32.const 3
i32.shl
i32.add
2019-03-26 23:35:08 +01:00
local.get $2
f64.store
2019-03-18 16:09:49 +01:00
)
2019-04-04 02:25:22 +02:00
(func $~lib/array/Array<f64>#__set (; 29 ;) (type $FUNCSIG$viid) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
local.get $0
i32.load offset=12
local.set $3
2019-03-18 16:09:49 +01:00
local.get $0
local.get $1
i32.const 1
i32.add
i32.const 3
call $~lib/array/ensureCapacity
local.get $0
local.get $1
local.get $2
2019-03-26 23:35:08 +01:00
call $~lib/array/Array<f64>#__unchecked_set
2019-03-18 16:09:49 +01:00
local.get $1
local.get $3
2019-03-18 16:09:49 +01:00
i32.ge_s
if
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=12
end
)
2019-04-04 02:25:22 +02:00
(func $start:std/static-array (; 30 ;) (type $FUNCSIG$v)
2019-03-17 01:35:44 +01:00
global.get $std/static-array/i
call $~lib/array/Array<i32>#get:length
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 6
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/i
i32.const 0
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<i32>#__get
i32.const 1
i32.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 7
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/i
i32.const 1
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<i32>#__get
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 8
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
2019-03-27 14:43:35 +01:00
global.get $~lib/memory/HEAP_BASE
i32.const 7
i32.add
i32.const 7
i32.const -1
i32.xor
i32.and
global.set $~lib/allocator/arena/startOffset
global.get $~lib/allocator/arena/startOffset
global.set $~lib/allocator/arena/offset
global.get $std/static-array/i
2019-03-18 16:09:49 +01:00
i32.const 0
i32.const 2
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<i32>#__set
global.get $std/static-array/i
i32.const 0
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<i32>#__get
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 10
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
2019-03-17 01:35:44 +01:00
global.get $std/static-array/I
call $~lib/array/Array<i64>#get:length
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 12
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/I
i32.const 0
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<i64>#__get
i64.const 3
i64.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 13
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/I
i32.const 1
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<i64>#__get
i64.const 4
i64.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 14
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/I
2019-03-18 16:09:49 +01:00
i32.const 0
i64.const 4
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<i64>#__set
global.get $std/static-array/I
i32.const 0
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<i64>#__get
i64.const 4
i64.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 16
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
2019-03-17 01:35:44 +01:00
global.get $std/static-array/f
call $~lib/array/Array<f32>#get:length
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 18
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/f
i32.const 0
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<f32>#__get
f32.const 1.5
f32.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 19
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/f
i32.const 1
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<f32>#__get
f32.const 2.5
f32.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 20
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/f
2019-03-18 16:09:49 +01:00
i32.const 0
f32.const 2.5
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<f32>#__set
global.get $std/static-array/f
i32.const 0
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<f32>#__get
f32.const 2.5
f32.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 22
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
2019-03-17 01:35:44 +01:00
global.get $std/static-array/F
call $~lib/array/Array<f64>#get:length
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 24
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/F
i32.const 0
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<f64>#__get
f64.const 1.25
f64.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 25
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/F
i32.const 1
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<f64>#__get
f64.const 2.25
f64.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 26
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $std/static-array/F
2019-03-18 16:09:49 +01:00
i32.const 0
f64.const 2.25
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<f64>#__set
global.get $std/static-array/F
i32.const 0
2019-03-18 16:09:49 +01:00
call $~lib/array/Array<f64>#__get
f64.const 2.25
f64.eq
i32.eqz
if
i32.const 0
2019-03-17 01:35:44 +01:00
i32.const 192
2019-03-31 21:58:42 +02:00
i32.const 28
i32.const 0
2019-04-06 20:17:48 +02:00
call $~lib/builtins/abort
unreachable
end
)
2019-04-06 20:17:48 +02:00
(func $~lib/runtime/runtime.instanceof (; 31 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
global.get $~lib/util/runtime/HEADER_SIZE
i32.sub
i32.load
local.set $2
global.get $~lib/runtime/RTTI_BASE
local.set $3
local.get $2
if (result i32)
local.get $2
local.get $3
i32.load
i32.le_u
else
local.get $2
end
if
loop $continue|0
local.get $2
local.get $1
i32.eq
if
i32.const 1
return
end
local.get $3
local.get $2
i32.const 8
i32.mul
i32.add
i32.load offset=4
local.tee $2
br_if $continue|0
end
end
i32.const 0
)
(func $~lib/runtime/runtime.flags (; 32 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
global.get $~lib/runtime/RTTI_BASE
local.set $1
local.get $0
i32.eqz
local.tee $2
if (result i32)
local.get $2
else
local.get $0
local.get $1
i32.load
i32.gt_u
end
if (result i32)
unreachable
else
local.get $1
local.get $0
i32.const 8
i32.mul
i32.add
i32.load
end
)
(func $~lib/util/runtime/allocate (; 33 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
local.get $0
call $~lib/util/runtime/adjust
call $~lib/memory/memory.allocate
local.set $1
local.get $1
global.get $~lib/util/runtime/HEADER_MAGIC
i32.store
local.get $1
local.get $0
i32.store offset=4
local.get $1
global.get $~lib/util/runtime/HEADER_SIZE
i32.add
)
(func $~lib/util/runtime/register (; 34 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
global.get $~lib/memory/HEAP_BASE
i32.gt_u
i32.eqz
if
i32.const 0
i32.const 280
i32.const 131
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
global.get $~lib/util/runtime/HEADER_SIZE
i32.sub
local.set $2
local.get $2
i32.load
global.get $~lib/util/runtime/HEADER_MAGIC
i32.eq
i32.eqz
if
i32.const 0
i32.const 280
i32.const 133
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
local.get $1
i32.store
local.get $0
)
(func $~lib/runtime/runtime.newObject (; 35 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
call $~lib/util/runtime/allocate
local.get $1
call $~lib/util/runtime/register
)
(func $~lib/runtime/runtime.newString (; 36 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.const 1
i32.shl
i32.const 16
call $~lib/runtime/runtime.newObject
)
(func $~lib/runtime/runtime.newArrayBuffer (; 37 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.const 15
call $~lib/runtime/runtime.newObject
)
(func $~lib/arraybuffer/ArrayBuffer#get:byteLength (; 38 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
global.get $~lib/util/runtime/HEADER_SIZE
i32.sub
i32.load offset=4
)
(func $~lib/runtime/runtime.newArray (; 39 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
local.get $0
call $~lib/runtime/runtime.flags
local.set $2
local.get $2
i32.const 16
2019-04-06 20:17:48 +02:00
i32.div_u
i32.const 31
i32.and
local.set $3
local.get $1
i32.eqz
if
i32.const 0
local.tee $4
call $~lib/runtime/runtime.newArrayBuffer
local.set $1
else
local.get $1
call $~lib/arraybuffer/ArrayBuffer#get:byteLength
local.set $4
end
local.get $0
i32.const 16
call $~lib/runtime/runtime.newObject
local.set $5
local.get $5
local.get $1
i32.store
local.get $5
local.get $1
i32.store offset=4
local.get $5
local.get $4
i32.store offset=8
local.get $5
local.get $4
local.get $3
i32.shr_u
i32.store offset=12
local.get $2
i32.const 1024
2019-04-06 20:17:48 +02:00
i32.and
if
local.get $1
local.set $6
local.get $6
local.get $4
i32.add
local.set $7
block $break|0
loop $continue|0
local.get $6
local.get $7
i32.lt_u
if
block
local.get $6
i32.load
local.set $8
local.get $8
if
i32.const 0
i32.eqz
if
i32.const 0
i32.const 328
i32.const 97
i32.const 15
call $~lib/builtins/abort
unreachable
end
end
local.get $6
i32.const 4
i32.add
local.set $6
end
br $continue|0
end
end
end
end
local.get $5
)
(func $~lib/runtime/runtime.retain (; 40 ;) (type $FUNCSIG$vi) (param $0 i32)
nop
)
(func $~lib/runtime/runtime.release (; 41 ;) (type $FUNCSIG$vi) (param $0 i32)
nop
)
(func $~lib/runtime/runtime.collect (; 42 ;) (type $FUNCSIG$v)
i32.const 0
i32.const 328
i32.const 139
i32.const 9
call $~lib/builtins/abort
unreachable
)
(func $~lib/runtime/runtime#constructor (; 43 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
unreachable
)
(func $start (; 44 ;) (type $FUNCSIG$v)
call $start:std/static-array
)
2019-04-06 20:17:48 +02:00
(func $null (; 45 ;) (type $FUNCSIG$v)
)
)