mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
1875 lines
31 KiB
Plaintext
1875 lines
31 KiB
Plaintext
(module
|
|
(type $FUNCSIG$v (func))
|
|
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
|
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
|
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
|
(type $FUNCSIG$viii (func (param i32 i32 i32)))
|
|
(type $FUNCSIG$vii (func (param i32 i32)))
|
|
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
(memory $0 1)
|
|
(data (i32.const 8) "\13\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
|
(data (i32.const 56) "\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")
|
|
(data (i32.const 120) "\12\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
|
(data (i32.const 160) "\1b\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00t\00y\00p\00e\00d\00a\00r\00r\00a\00y\00.\00t\00s")
|
|
(data (i32.const 224) "\08\00\00\00\00\00\00\00\01\00\00\00\02")
|
|
(data (i32.const 240) "\e0\00\00\00\02")
|
|
(data (i32.const 248) "\10\00\00\00~\00l\00i\00b\00/\00d\00a\00t\00a\00v\00i\00e\00w\00.\00t\00s")
|
|
(table $0 1 funcref)
|
|
(elem (i32.const 0) $null)
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
|
(global $std/arraybuffer/buffer (mut i32) (i32.const 0))
|
|
(global $~lib/argc (mut i32) (i32.const 0))
|
|
(global $std/arraybuffer/sliced (mut i32) (i32.const 0))
|
|
(global $std/arraybuffer/arr8 (mut i32) (i32.const 0))
|
|
(export "memory" (memory $0))
|
|
(export "table" (table $0))
|
|
(start $start)
|
|
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
local.get $0
|
|
i32.const 1073741824
|
|
i32.gt_u
|
|
if
|
|
unreachable
|
|
end
|
|
global.get $~lib/allocator/arena/offset
|
|
local.tee $1
|
|
local.get $0
|
|
i32.const 1
|
|
local.get $0
|
|
i32.const 1
|
|
i32.gt_u
|
|
select
|
|
i32.add
|
|
i32.const 7
|
|
i32.add
|
|
i32.const -8
|
|
i32.and
|
|
local.tee $0
|
|
current_memory
|
|
local.tee $2
|
|
i32.const 16
|
|
i32.shl
|
|
i32.gt_u
|
|
if
|
|
local.get $2
|
|
local.get $0
|
|
local.get $1
|
|
i32.sub
|
|
i32.const 65535
|
|
i32.add
|
|
i32.const -65536
|
|
i32.and
|
|
i32.const 16
|
|
i32.shr_u
|
|
local.tee $3
|
|
local.get $2
|
|
local.get $3
|
|
i32.gt_s
|
|
select
|
|
grow_memory
|
|
i32.const 0
|
|
i32.lt_s
|
|
if
|
|
local.get $3
|
|
grow_memory
|
|
i32.const 0
|
|
i32.lt_s
|
|
if
|
|
unreachable
|
|
end
|
|
end
|
|
end
|
|
local.get $0
|
|
global.set $~lib/allocator/arena/offset
|
|
local.get $1
|
|
)
|
|
(func $~lib/internal/arraybuffer/allocateUnsafe (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
local.get $0
|
|
i32.const 1073741816
|
|
i32.gt_u
|
|
if
|
|
i32.const 0
|
|
i32.const 56
|
|
i32.const 26
|
|
i32.const 2
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
i32.const 1
|
|
i32.const 32
|
|
local.get $0
|
|
i32.const 7
|
|
i32.add
|
|
i32.clz
|
|
i32.sub
|
|
i32.shl
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
local.tee $1
|
|
local.get $0
|
|
i32.store
|
|
local.get $1
|
|
)
|
|
(func $~lib/internal/memory/memset (; 3 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
local.get $1
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
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
|
|
if
|
|
return
|
|
end
|
|
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
|
|
if
|
|
return
|
|
end
|
|
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
|
|
if
|
|
return
|
|
end
|
|
i32.const 0
|
|
local.get $0
|
|
i32.sub
|
|
i32.const 3
|
|
i32.and
|
|
local.tee $2
|
|
local.get $0
|
|
i32.add
|
|
local.tee $0
|
|
i32.const 0
|
|
i32.store
|
|
local.get $1
|
|
local.get $2
|
|
i32.sub
|
|
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
|
|
if
|
|
return
|
|
end
|
|
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
|
|
if
|
|
return
|
|
end
|
|
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
|
|
)
|
|
(func $~lib/internal/memory/memcpy (; 4 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
loop $continue|0
|
|
local.get $1
|
|
i32.const 3
|
|
i32.and
|
|
local.get $2
|
|
local.get $2
|
|
select
|
|
if
|
|
local.get $0
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $3
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $2
|
|
i32.const 1
|
|
i32.sub
|
|
local.set $2
|
|
br $continue|0
|
|
end
|
|
end
|
|
local.get $0
|
|
i32.const 3
|
|
i32.and
|
|
i32.eqz
|
|
if
|
|
loop $continue|1
|
|
local.get $2
|
|
i32.const 16
|
|
i32.ge_u
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.load
|
|
i32.store
|
|
local.get $0
|
|
i32.const 4
|
|
i32.add
|
|
local.get $1
|
|
i32.const 4
|
|
i32.add
|
|
i32.load
|
|
i32.store
|
|
local.get $0
|
|
i32.const 8
|
|
i32.add
|
|
local.get $1
|
|
i32.const 8
|
|
i32.add
|
|
i32.load
|
|
i32.store
|
|
local.get $0
|
|
i32.const 12
|
|
i32.add
|
|
local.get $1
|
|
i32.const 12
|
|
i32.add
|
|
i32.load
|
|
i32.store
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
local.set $1
|
|
local.get $0
|
|
i32.const 16
|
|
i32.add
|
|
local.set $0
|
|
local.get $2
|
|
i32.const 16
|
|
i32.sub
|
|
local.set $2
|
|
br $continue|1
|
|
end
|
|
end
|
|
local.get $2
|
|
i32.const 8
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.load
|
|
i32.store
|
|
local.get $0
|
|
i32.const 4
|
|
i32.add
|
|
local.get $1
|
|
i32.const 4
|
|
i32.add
|
|
i32.load
|
|
i32.store
|
|
local.get $1
|
|
i32.const 8
|
|
i32.add
|
|
local.set $1
|
|
local.get $0
|
|
i32.const 8
|
|
i32.add
|
|
local.set $0
|
|
end
|
|
local.get $2
|
|
i32.const 4
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.load
|
|
i32.store
|
|
local.get $1
|
|
i32.const 4
|
|
i32.add
|
|
local.set $1
|
|
local.get $0
|
|
i32.const 4
|
|
i32.add
|
|
local.set $0
|
|
end
|
|
local.get $2
|
|
i32.const 2
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.load16_u
|
|
i32.store16
|
|
local.get $1
|
|
i32.const 2
|
|
i32.add
|
|
local.set $1
|
|
local.get $0
|
|
i32.const 2
|
|
i32.add
|
|
local.set $0
|
|
end
|
|
local.get $2
|
|
i32.const 1
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
return
|
|
end
|
|
local.get $2
|
|
i32.const 32
|
|
i32.ge_u
|
|
if
|
|
block $break|2
|
|
block $case2|2
|
|
block $case1|2
|
|
local.get $0
|
|
i32.const 3
|
|
i32.and
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.ne
|
|
if
|
|
local.get $3
|
|
i32.const 2
|
|
i32.eq
|
|
br_if $case1|2
|
|
local.get $3
|
|
i32.const 3
|
|
i32.eq
|
|
br_if $case2|2
|
|
br $break|2
|
|
end
|
|
local.get $1
|
|
i32.load
|
|
local.set $5
|
|
local.get $0
|
|
local.get $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $3
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $2
|
|
i32.const 3
|
|
i32.sub
|
|
local.set $2
|
|
loop $continue|3
|
|
local.get $2
|
|
i32.const 17
|
|
i32.ge_u
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 8
|
|
i32.shl
|
|
local.get $5
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
i32.const 4
|
|
i32.add
|
|
local.get $3
|
|
i32.const 24
|
|
i32.shr_u
|
|
local.get $1
|
|
i32.const 5
|
|
i32.add
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 8
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
i32.const 8
|
|
i32.add
|
|
local.get $3
|
|
i32.const 24
|
|
i32.shr_u
|
|
local.get $1
|
|
i32.const 9
|
|
i32.add
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 8
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
i32.const 12
|
|
i32.add
|
|
local.get $1
|
|
i32.const 13
|
|
i32.add
|
|
i32.load
|
|
local.tee $5
|
|
i32.const 8
|
|
i32.shl
|
|
local.get $3
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.or
|
|
i32.store
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
local.set $1
|
|
local.get $0
|
|
i32.const 16
|
|
i32.add
|
|
local.set $0
|
|
local.get $2
|
|
i32.const 16
|
|
i32.sub
|
|
local.set $2
|
|
br $continue|3
|
|
end
|
|
end
|
|
br $break|2
|
|
end
|
|
local.get $1
|
|
i32.load
|
|
local.set $5
|
|
local.get $0
|
|
local.get $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $3
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $2
|
|
i32.const 2
|
|
i32.sub
|
|
local.set $2
|
|
loop $continue|4
|
|
local.get $2
|
|
i32.const 18
|
|
i32.ge_u
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.const 2
|
|
i32.add
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 16
|
|
i32.shl
|
|
local.get $5
|
|
i32.const 16
|
|
i32.shr_u
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
i32.const 4
|
|
i32.add
|
|
local.get $3
|
|
i32.const 16
|
|
i32.shr_u
|
|
local.get $1
|
|
i32.const 6
|
|
i32.add
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 16
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
i32.const 8
|
|
i32.add
|
|
local.get $3
|
|
i32.const 16
|
|
i32.shr_u
|
|
local.get $1
|
|
i32.const 10
|
|
i32.add
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 16
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
i32.const 12
|
|
i32.add
|
|
local.get $1
|
|
i32.const 14
|
|
i32.add
|
|
i32.load
|
|
local.tee $5
|
|
i32.const 16
|
|
i32.shl
|
|
local.get $3
|
|
i32.const 16
|
|
i32.shr_u
|
|
i32.or
|
|
i32.store
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
local.set $1
|
|
local.get $0
|
|
i32.const 16
|
|
i32.add
|
|
local.set $0
|
|
local.get $2
|
|
i32.const 16
|
|
i32.sub
|
|
local.set $2
|
|
br $continue|4
|
|
end
|
|
end
|
|
br $break|2
|
|
end
|
|
local.get $1
|
|
i32.load
|
|
local.set $5
|
|
local.get $0
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $3
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $2
|
|
i32.const 1
|
|
i32.sub
|
|
local.set $2
|
|
loop $continue|5
|
|
local.get $2
|
|
i32.const 19
|
|
i32.ge_u
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.const 3
|
|
i32.add
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 24
|
|
i32.shl
|
|
local.get $5
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
i32.const 4
|
|
i32.add
|
|
local.get $3
|
|
i32.const 8
|
|
i32.shr_u
|
|
local.get $1
|
|
i32.const 7
|
|
i32.add
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 24
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
i32.const 8
|
|
i32.add
|
|
local.get $3
|
|
i32.const 8
|
|
i32.shr_u
|
|
local.get $1
|
|
i32.const 11
|
|
i32.add
|
|
i32.load
|
|
local.tee $3
|
|
i32.const 24
|
|
i32.shl
|
|
i32.or
|
|
i32.store
|
|
local.get $0
|
|
i32.const 12
|
|
i32.add
|
|
local.get $1
|
|
i32.const 15
|
|
i32.add
|
|
i32.load
|
|
local.tee $5
|
|
i32.const 24
|
|
i32.shl
|
|
local.get $3
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.or
|
|
i32.store
|
|
local.get $1
|
|
i32.const 16
|
|
i32.add
|
|
local.set $1
|
|
local.get $0
|
|
i32.const 16
|
|
i32.add
|
|
local.set $0
|
|
local.get $2
|
|
i32.const 16
|
|
i32.sub
|
|
local.set $2
|
|
br $continue|5
|
|
end
|
|
end
|
|
end
|
|
end
|
|
local.get $2
|
|
i32.const 16
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $3
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
local.get $2
|
|
i32.const 8
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $3
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
local.get $2
|
|
i32.const 4
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $3
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
local.get $2
|
|
i32.const 2
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $0
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
i32.const 1
|
|
i32.add
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $3
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
local.get $2
|
|
i32.const 1
|
|
i32.and
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
i32.load8_u
|
|
i32.store8
|
|
end
|
|
)
|
|
(func $~lib/internal/memory/memmove (; 5 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
local.get $0
|
|
local.get $1
|
|
i32.eq
|
|
if
|
|
return
|
|
end
|
|
local.get $1
|
|
local.get $2
|
|
i32.add
|
|
local.get $0
|
|
i32.le_u
|
|
local.tee $3
|
|
i32.eqz
|
|
if
|
|
local.get $0
|
|
local.get $2
|
|
i32.add
|
|
local.get $1
|
|
i32.le_u
|
|
local.set $3
|
|
end
|
|
local.get $3
|
|
if
|
|
local.get $0
|
|
local.get $1
|
|
local.get $2
|
|
call $~lib/internal/memory/memcpy
|
|
return
|
|
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
|
|
loop $continue|0
|
|
local.get $0
|
|
i32.const 7
|
|
i32.and
|
|
if
|
|
local.get $2
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $2
|
|
i32.const 1
|
|
i32.sub
|
|
local.set $2
|
|
local.get $0
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $3
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
br $continue|0
|
|
end
|
|
end
|
|
loop $continue|1
|
|
local.get $2
|
|
i32.const 8
|
|
i32.ge_u
|
|
if
|
|
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
|
|
br $continue|1
|
|
end
|
|
end
|
|
end
|
|
loop $continue|2
|
|
local.get $2
|
|
if
|
|
local.get $0
|
|
local.tee $3
|
|
i32.const 1
|
|
i32.add
|
|
local.set $0
|
|
local.get $1
|
|
local.tee $4
|
|
i32.const 1
|
|
i32.add
|
|
local.set $1
|
|
local.get $3
|
|
local.get $4
|
|
i32.load8_u
|
|
i32.store8
|
|
local.get $2
|
|
i32.const 1
|
|
i32.sub
|
|
local.set $2
|
|
br $continue|2
|
|
end
|
|
end
|
|
else
|
|
local.get $1
|
|
i32.const 7
|
|
i32.and
|
|
local.get $0
|
|
i32.const 7
|
|
i32.and
|
|
i32.eq
|
|
if
|
|
loop $continue|3
|
|
local.get $0
|
|
local.get $2
|
|
i32.add
|
|
i32.const 7
|
|
i32.and
|
|
if
|
|
local.get $2
|
|
i32.eqz
|
|
if
|
|
return
|
|
end
|
|
local.get $2
|
|
i32.const 1
|
|
i32.sub
|
|
local.tee $2
|
|
local.get $0
|
|
i32.add
|
|
local.get $1
|
|
local.get $2
|
|
i32.add
|
|
i32.load8_u
|
|
i32.store8
|
|
br $continue|3
|
|
end
|
|
end
|
|
loop $continue|4
|
|
local.get $2
|
|
i32.const 8
|
|
i32.ge_u
|
|
if
|
|
local.get $2
|
|
i32.const 8
|
|
i32.sub
|
|
local.tee $2
|
|
local.get $0
|
|
i32.add
|
|
local.get $1
|
|
local.get $2
|
|
i32.add
|
|
i64.load
|
|
i64.store
|
|
br $continue|4
|
|
end
|
|
end
|
|
end
|
|
loop $continue|5
|
|
local.get $2
|
|
if
|
|
local.get $2
|
|
i32.const 1
|
|
i32.sub
|
|
local.tee $2
|
|
local.get $0
|
|
i32.add
|
|
local.get $1
|
|
local.get $2
|
|
i32.add
|
|
i32.load8_u
|
|
i32.store8
|
|
br $continue|5
|
|
end
|
|
end
|
|
end
|
|
)
|
|
(func $~lib/arraybuffer/ArrayBuffer#slice (; 6 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
local.get $0
|
|
i32.load
|
|
local.set $3
|
|
local.get $1
|
|
i32.const 0
|
|
i32.lt_s
|
|
if (result i32)
|
|
local.get $1
|
|
local.get $3
|
|
i32.add
|
|
local.tee $1
|
|
i32.const 0
|
|
local.get $1
|
|
i32.const 0
|
|
i32.gt_s
|
|
select
|
|
else
|
|
local.get $1
|
|
local.get $3
|
|
local.get $1
|
|
local.get $3
|
|
i32.lt_s
|
|
select
|
|
end
|
|
local.set $1
|
|
local.get $2
|
|
i32.const 0
|
|
i32.lt_s
|
|
if (result i32)
|
|
local.get $2
|
|
local.get $3
|
|
i32.add
|
|
local.tee $2
|
|
i32.const 0
|
|
local.get $2
|
|
i32.const 0
|
|
i32.gt_s
|
|
select
|
|
else
|
|
local.get $2
|
|
local.get $3
|
|
local.get $2
|
|
local.get $3
|
|
i32.lt_s
|
|
select
|
|
end
|
|
local.get $1
|
|
i32.sub
|
|
local.tee $2
|
|
i32.const 0
|
|
local.get $2
|
|
i32.const 0
|
|
i32.gt_s
|
|
select
|
|
local.tee $2
|
|
call $~lib/internal/arraybuffer/allocateUnsafe
|
|
local.tee $3
|
|
i32.const 8
|
|
i32.add
|
|
local.get $0
|
|
i32.const 8
|
|
i32.add
|
|
local.get $1
|
|
i32.add
|
|
local.get $2
|
|
call $~lib/internal/memory/memmove
|
|
local.get $3
|
|
)
|
|
(func $~lib/arraybuffer/ArrayBuffer#slice|trampoline (; 7 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
block $2of2
|
|
block $1of2
|
|
block $0of2
|
|
block $outOfRange
|
|
global.get $~lib/argc
|
|
br_table $0of2 $1of2 $2of2 $outOfRange
|
|
end
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
local.set $1
|
|
end
|
|
i32.const 1073741816
|
|
local.set $2
|
|
end
|
|
local.get $0
|
|
local.get $1
|
|
local.get $2
|
|
call $~lib/arraybuffer/ArrayBuffer#slice
|
|
)
|
|
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
i32.const 1
|
|
call $~lib/internal/arraybuffer/allocateUnsafe
|
|
local.tee $1
|
|
i32.const 8
|
|
i32.add
|
|
i32.const 1
|
|
call $~lib/internal/memory/memset
|
|
local.get $0
|
|
i32.eqz
|
|
if
|
|
i32.const 12
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
local.set $0
|
|
end
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $1
|
|
i32.store
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.const 1
|
|
i32.store offset=8
|
|
local.get $0
|
|
)
|
|
(func $~lib/internal/typedarray/TypedArray<i32>#constructor (; 9 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
i32.const 4
|
|
call $~lib/internal/arraybuffer/allocateUnsafe
|
|
local.tee $1
|
|
i32.const 8
|
|
i32.add
|
|
i32.const 4
|
|
call $~lib/internal/memory/memset
|
|
local.get $0
|
|
i32.eqz
|
|
if
|
|
i32.const 12
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
local.set $0
|
|
end
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=8
|
|
local.get $0
|
|
local.get $1
|
|
i32.store
|
|
local.get $0
|
|
i32.const 0
|
|
i32.store offset=4
|
|
local.get $0
|
|
i32.const 4
|
|
i32.store offset=8
|
|
local.get $0
|
|
)
|
|
(func $~lib/dataview/DataView#constructor (; 10 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
block (result i32)
|
|
local.get $1
|
|
i32.const -2147483648
|
|
i32.eq
|
|
if
|
|
local.get $0
|
|
i32.load
|
|
local.set $1
|
|
end
|
|
local.get $1
|
|
i32.const 1073741816
|
|
i32.gt_u
|
|
end
|
|
if
|
|
i32.const 0
|
|
i32.const 248
|
|
i32.const 15
|
|
i32.const 44
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
local.get $1
|
|
local.get $0
|
|
i32.load
|
|
i32.gt_s
|
|
if
|
|
i32.const 0
|
|
i32.const 248
|
|
i32.const 16
|
|
i32.const 53
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
i32.const 12
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
local.tee $2
|
|
local.get $0
|
|
i32.store
|
|
local.get $2
|
|
i32.const 0
|
|
i32.store offset=4
|
|
local.get $2
|
|
local.get $1
|
|
i32.store offset=8
|
|
local.get $2
|
|
)
|
|
(func $start:std/arraybuffer (; 11 ;) (type $FUNCSIG$v)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
i32.const 288
|
|
global.set $~lib/allocator/arena/startOffset
|
|
global.get $~lib/allocator/arena/startOffset
|
|
global.set $~lib/allocator/arena/offset
|
|
i32.const 8
|
|
call $~lib/internal/arraybuffer/allocateUnsafe
|
|
local.tee $0
|
|
i32.const 8
|
|
i32.add
|
|
i32.const 8
|
|
call $~lib/internal/memory/memset
|
|
local.get $0
|
|
global.set $std/arraybuffer/buffer
|
|
global.get $std/arraybuffer/buffer
|
|
i32.load
|
|
i32.const 8
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 5
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
i32.const 0
|
|
global.set $~lib/argc
|
|
global.get $std/arraybuffer/buffer
|
|
i32.const 0
|
|
call $~lib/arraybuffer/ArrayBuffer#slice|trampoline
|
|
global.set $std/arraybuffer/sliced
|
|
global.get $std/arraybuffer/sliced
|
|
i32.load
|
|
i32.const 8
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 9
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
global.get $std/arraybuffer/sliced
|
|
global.get $std/arraybuffer/buffer
|
|
i32.eq
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 10
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
global.get $std/arraybuffer/sliced
|
|
global.get $std/arraybuffer/buffer
|
|
i32.eq
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 11
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
i32.const 1
|
|
global.set $~lib/argc
|
|
global.get $std/arraybuffer/buffer
|
|
i32.const 1
|
|
call $~lib/arraybuffer/ArrayBuffer#slice|trampoline
|
|
global.set $std/arraybuffer/sliced
|
|
global.get $std/arraybuffer/sliced
|
|
i32.load
|
|
i32.const 7
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 15
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
i32.const 1
|
|
global.set $~lib/argc
|
|
global.get $std/arraybuffer/buffer
|
|
i32.const -1
|
|
call $~lib/arraybuffer/ArrayBuffer#slice|trampoline
|
|
global.set $std/arraybuffer/sliced
|
|
global.get $std/arraybuffer/sliced
|
|
i32.load
|
|
i32.const 1
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 19
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
global.get $std/arraybuffer/buffer
|
|
i32.const 1
|
|
i32.const 3
|
|
call $~lib/arraybuffer/ArrayBuffer#slice
|
|
global.set $std/arraybuffer/sliced
|
|
global.get $std/arraybuffer/sliced
|
|
i32.load
|
|
i32.const 2
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 23
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
global.get $std/arraybuffer/buffer
|
|
i32.const 1
|
|
i32.const -1
|
|
call $~lib/arraybuffer/ArrayBuffer#slice
|
|
global.set $std/arraybuffer/sliced
|
|
global.get $std/arraybuffer/sliced
|
|
i32.load
|
|
i32.const 6
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 27
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
global.get $std/arraybuffer/buffer
|
|
i32.const -3
|
|
i32.const -1
|
|
call $~lib/arraybuffer/ArrayBuffer#slice
|
|
global.set $std/arraybuffer/sliced
|
|
global.get $std/arraybuffer/sliced
|
|
i32.load
|
|
i32.const 2
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 31
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
global.get $std/arraybuffer/buffer
|
|
i32.const -4
|
|
i32.const 42
|
|
call $~lib/arraybuffer/ArrayBuffer#slice
|
|
global.set $std/arraybuffer/sliced
|
|
global.get $std/arraybuffer/sliced
|
|
i32.load
|
|
i32.const 4
|
|
i32.ne
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 35
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
i32.const 1
|
|
global.set $~lib/argc
|
|
global.get $std/arraybuffer/buffer
|
|
i32.const 42
|
|
call $~lib/arraybuffer/ArrayBuffer#slice|trampoline
|
|
global.set $std/arraybuffer/sliced
|
|
global.get $std/arraybuffer/sliced
|
|
i32.load
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 39
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
global.get $std/arraybuffer/sliced
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 40
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
i32.const 12
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
call $~lib/internal/typedarray/TypedArray<u8>#constructor
|
|
global.set $std/arraybuffer/arr8
|
|
i32.const 1
|
|
i32.const 0
|
|
global.get $std/arraybuffer/arr8
|
|
select
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 50
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
block $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<~lib/typedarray/Uint8Array>5 (result i32)
|
|
i32.const 0
|
|
i32.const 12
|
|
call $~lib/allocator/arena/__memory_allocate
|
|
call $~lib/internal/typedarray/TypedArray<i32>#constructor
|
|
i32.eqz
|
|
br_if $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<~lib/typedarray/Uint8Array>5
|
|
drop
|
|
i32.const 1
|
|
end
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 51
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
i32.const 1
|
|
global.set $~lib/argc
|
|
block $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<~lib/typedarray/Uint8Array>6 (result i32)
|
|
global.get $std/arraybuffer/arr8
|
|
i32.load
|
|
local.set $1
|
|
i32.const 0
|
|
local.set $0
|
|
block $2of2
|
|
block $1of2
|
|
block $outOfRange
|
|
global.get $~lib/argc
|
|
i32.const 1
|
|
i32.sub
|
|
br_table $1of2 $1of2 $2of2 $outOfRange
|
|
end
|
|
unreachable
|
|
end
|
|
i32.const -2147483648
|
|
local.set $0
|
|
end
|
|
i32.const 0
|
|
local.get $1
|
|
local.get $0
|
|
call $~lib/dataview/DataView#constructor
|
|
i32.eqz
|
|
br_if $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<~lib/typedarray/Uint8Array>6
|
|
drop
|
|
i32.const 1
|
|
end
|
|
i32.eqz
|
|
if
|
|
i32.const 0
|
|
i32.const 120
|
|
i32.const 52
|
|
i32.const 0
|
|
call $~lib/env/abort
|
|
unreachable
|
|
end
|
|
)
|
|
(func $start (; 12 ;) (type $FUNCSIG$v)
|
|
call $start:std/arraybuffer
|
|
)
|
|
(func $null (; 13 ;) (type $FUNCSIG$v)
|
|
nop
|
|
)
|
|
)
|