assemblyscript/tests/compiler/std/dataview.untouched.wat

6882 lines
116 KiB
Plaintext
Raw Normal View History

(module
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
2019-06-05 23:15:39 +02:00
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
2019-06-13 15:33:43 +02:00
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
2019-06-05 23:15:39 +02:00
(type $FUNCSIG$v (func))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$fiii (func (param i32 i32 i32) (result f32)))
(type $FUNCSIG$diii (func (param i32 i32 i32) (result f64)))
(type $FUNCSIG$jj (func (param i64) (result i64)))
(type $FUNCSIG$jiii (func (param i32 i32 i32) (result i64)))
(type $FUNCSIG$viifi (func (param i32 i32 f32 i32)))
(type $FUNCSIG$viidi (func (param i32 i32 f64 i32)))
(type $FUNCSIG$viiji (func (param i32 i32 i64 i32)))
2019-06-05 23:15:39 +02:00
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(import "rtrace" "onincrement" (func $~lib/rt/rtrace/onincrement (param i32)))
2019-06-13 15:33:43 +02:00
(import "rtrace" "onalloc" (func $~lib/rt/rtrace/onalloc (param i32)))
2019-06-05 23:15:39 +02:00
(import "rtrace" "ondecrement" (func $~lib/rt/rtrace/ondecrement (param i32)))
(import "rtrace" "onfree" (func $~lib/rt/rtrace/onfree (param i32)))
(memory $0 1)
2019-06-13 15:33:43 +02:00
(data (i32.const 8) "\1e\00\00\00\01\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00p\00u\00r\00e\00.\00t\00s\00")
(data (i32.const 56) "\1e\00\00\00\01\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00t\00l\00s\00f\00.\00t\00s\00")
(data (i32.const 104) "(\00\00\00\01\00\00\00\01\00\00\00(\00\00\00a\00l\00l\00o\00c\00a\00t\00i\00o\00n\00 \00t\00o\00o\00 \00l\00a\00r\00g\00e\00")
(data (i32.const 160) "\n\00\00\00\01\00\00\00\01\00\00\00\n\00\00\00E\00r\00r\00o\00r\00")
(data (i32.const 192) "\00\00\00\00\01\00\00\00\01\00\00\00\00\00\00\00")
(data (i32.const 208) "$\00\00\00\01\00\00\00\01\00\00\00$\00\00\00I\00n\00d\00e\00x\00 \00o\00u\00t\00 \00o\00f\00 \00r\00a\00n\00g\00e\00")
(data (i32.const 264) "\14\00\00\00\01\00\00\00\01\00\00\00\14\00\00\00R\00a\00n\00g\00e\00E\00r\00r\00o\00r\00")
(data (i32.const 304) "\1c\00\00\00\01\00\00\00\01\00\00\00\1c\00\00\00I\00n\00v\00a\00l\00i\00d\00 \00l\00e\00n\00g\00t\00h\00")
(data (i32.const 352) "\1e\00\00\00\01\00\00\00\01\00\00\00\1e\00\00\00s\00t\00d\00/\00d\00a\00t\00a\00v\00i\00e\00w\00.\00t\00s\00")
(data (i32.const 400) "\1c\00\00\00\01\00\00\00\01\00\00\00\1c\00\00\00u\00n\00c\00a\00u\00g\00h\00t\00 \00e\00r\00r\00o\00r\00")
(data (i32.const 448) "\07\00\00\00\10\00\00\00\00\00\00\00\10\00\00\00\00\00\00\00\10\00\00\00\00\00\00\001\00\00\00\02\00\00\00\10\00\00\00\00\00\00\00\10\00\00\00\04\00\00\00\10\00\00\00\00\00\00\00")
(table $0 1 funcref)
(elem (i32.const 0) $null)
2019-06-13 15:33:43 +02:00
(global $~lib/error (mut i32) (i32.const 0))
2019-06-05 23:15:39 +02:00
(global $~lib/rt/tlsf/ROOT (mut i32) (i32.const 0))
(global $~lib/rt/pure/CUR (mut i32) (i32.const 0))
(global $~lib/rt/pure/END (mut i32) (i32.const 0))
(global $~lib/rt/pure/ROOTS (mut i32) (i32.const 0))
(global $~lib/ASC_SHRINK_LEVEL i32 (i32.const 0))
(global $~lib/argc (mut i32) (i32.const 0))
2019-06-13 15:33:43 +02:00
(global $~lib/rt/__rtti_base i32 (i32.const 448))
(global $~lib/heap/__heap_base i32 (i32.const 508))
(export "memory" (memory $0))
2018-11-12 09:15:16 +01:00
(start $start)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/pure/increment (; 5 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
local.set $1
local.get $1
i32.const 268435455
i32.const -1
i32.xor
i32.and
local.get $1
i32.const 1
i32.add
i32.const 268435455
i32.const -1
i32.xor
i32.and
i32.eq
i32.eqz
if
i32.const 0
i32.const 24
i32.const 104
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=4
local.get $0
call $~lib/rt/rtrace/onincrement
local.get $0
i32.load
i32.const 1
i32.and
i32.eqz
i32.eqz
if
i32.const 0
i32.const 24
i32.const 107
i32.const 13
call $~lib/builtins/abort
unreachable
end
)
(func $~lib/rt/pure/__retain (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
global.get $~lib/heap/__heap_base
i32.gt_u
if
local.get $0
i32.const 16
i32.sub
call $~lib/rt/pure/increment
end
local.get $0
)
(func $~lib/rt/tlsf/removeBlock (; 7 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
2019-06-05 23:15:39 +02:00
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
local.get $1
i32.load
local.set $2
local.get $2
i32.const 1
i32.and
i32.eqz
if
2019-06-05 23:15:39 +02:00
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 276
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 3
i32.const -1
i32.xor
i32.and
2019-06-05 23:15:39 +02:00
local.set $3
local.get $3
i32.const 16
2019-06-05 23:15:39 +02:00
i32.ge_u
if (result i32)
local.get $3
i32.const 1073741808
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 278
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $3
i32.const 256
i32.lt_u
if
2019-06-05 23:15:39 +02:00
i32.const 0
local.set $4
local.get $3
i32.const 4
i32.shr_u
local.set $5
else
i32.const 31
local.get $3
i32.clz
i32.sub
local.set $4
local.get $3
local.get $4
2019-06-05 23:15:39 +02:00
i32.const 4
i32.sub
i32.shr_u
2019-06-05 23:15:39 +02:00
i32.const 1
i32.const 4
i32.shl
i32.xor
local.set $5
local.get $4
i32.const 8
i32.const 1
i32.sub
i32.sub
local.set $4
end
local.get $4
i32.const 23
i32.lt_u
if (result i32)
local.get $5
2019-06-05 23:15:39 +02:00
i32.const 16
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 291
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $1
2019-06-05 23:15:39 +02:00
i32.load offset=16
local.set $6
local.get $1
i32.load offset=20
local.set $7
local.get $6
if
local.get $6
local.get $7
i32.store offset=20
end
local.get $7
if
local.get $7
local.get $6
i32.store offset=16
end
local.get $1
2019-06-11 12:52:16 +02:00
local.get $0
local.set $10
local.get $4
local.set $9
local.get $5
local.set $8
local.get $10
local.get $9
i32.const 4
i32.shl
local.get $8
i32.add
i32.const 2
i32.shl
i32.add
i32.load offset=96
i32.eq
if
2019-06-05 23:15:39 +02:00
local.get $0
2019-06-11 12:52:16 +02:00
local.set $11
2019-06-05 23:15:39 +02:00
local.get $4
2019-06-11 12:52:16 +02:00
local.set $10
2019-06-05 23:15:39 +02:00
local.get $5
2019-06-11 12:52:16 +02:00
local.set $9
local.get $7
2019-06-05 23:15:39 +02:00
local.set $8
2019-06-11 12:52:16 +02:00
local.get $11
2019-06-05 23:15:39 +02:00
local.get $10
i32.const 4
i32.shl
2019-06-11 12:52:16 +02:00
local.get $9
2019-06-05 23:15:39 +02:00
i32.add
i32.const 2
i32.shl
i32.add
2019-06-11 12:52:16 +02:00
local.get $8
i32.store offset=96
local.get $7
i32.eqz
if
2019-06-05 23:15:39 +02:00
local.get $0
local.set $9
2019-06-11 12:52:16 +02:00
local.get $4
2019-06-05 23:15:39 +02:00
local.set $8
local.get $9
2019-06-11 12:52:16 +02:00
local.get $8
2019-06-05 23:15:39 +02:00
i32.const 2
i32.shl
i32.add
2019-06-11 12:52:16 +02:00
i32.load offset=4
2019-06-05 23:15:39 +02:00
local.set $9
2019-06-11 12:52:16 +02:00
local.get $0
local.set $8
local.get $4
local.set $11
local.get $9
i32.const 1
local.get $5
i32.shl
i32.const -1
i32.xor
i32.and
local.tee $9
local.set $10
local.get $8
local.get $11
i32.const 2
i32.shl
i32.add
local.get $10
i32.store offset=4
2019-06-05 23:15:39 +02:00
local.get $9
i32.eqz
if
local.get $0
local.get $0
i32.load
i32.const 1
local.get $4
i32.shl
i32.const -1
i32.xor
i32.and
i32.store
end
end
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/tlsf/insertBlock (; 8 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
2019-06-05 23:15:39 +02:00
(local $2 i32)
(local $3 i32)
(local $4 i32)
2019-06-05 23:15:39 +02:00
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
(local $13 i32)
local.get $1
i32.eqz
if
2019-06-05 23:15:39 +02:00
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 204
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $1
2019-06-05 23:15:39 +02:00
i32.load
local.set $2
local.get $2
i32.const 1
2019-06-05 23:15:39 +02:00
i32.and
i32.eqz
if
2019-06-05 23:15:39 +02:00
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 206
i32.const 13
call $~lib/builtins/abort
unreachable
end
2019-06-11 12:52:16 +02:00
local.get $1
local.set $3
local.get $3
i32.const 16
i32.add
local.get $3
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
2019-06-05 23:15:39 +02:00
local.set $4
local.get $4
i32.load
local.set $5
local.get $5
i32.const 1
2019-06-05 23:15:39 +02:00
i32.and
if
local.get $2
i32.const 3
i32.const -1
i32.xor
i32.and
i32.const 16
i32.add
local.get $5
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
local.set $3
local.get $3
i32.const 1073741808
i32.lt_u
if
local.get $0
local.get $4
call $~lib/rt/tlsf/removeBlock
local.get $1
local.get $2
i32.const 3
i32.and
local.get $3
i32.or
local.tee $2
i32.store
2019-06-11 12:52:16 +02:00
local.get $1
local.set $6
local.get $6
i32.const 16
i32.add
local.get $6
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
2019-06-05 23:15:39 +02:00
local.set $4
local.get $4
i32.load
local.set $5
end
end
local.get $2
i32.const 2
2019-06-05 23:15:39 +02:00
i32.and
if
2019-06-11 12:52:16 +02:00
local.get $1
local.set $6
local.get $6
i32.const 4
i32.sub
i32.load
2019-06-05 23:15:39 +02:00
local.set $6
local.get $6
i32.load
local.set $3
local.get $3
i32.const 1
i32.and
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 227
i32.const 15
call $~lib/builtins/abort
unreachable
end
local.get $3
i32.const 3
i32.const -1
i32.xor
i32.and
i32.const 16
i32.add
local.get $2
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
local.set $7
local.get $7
i32.const 1073741808
i32.lt_u
if
local.get $0
local.get $6
call $~lib/rt/tlsf/removeBlock
local.get $6
local.get $3
i32.const 3
i32.and
local.get $7
i32.or
local.tee $2
i32.store
local.get $6
local.set $1
end
end
2019-06-05 23:15:39 +02:00
local.get $4
local.get $5
i32.const 2
i32.or
i32.store
local.get $2
i32.const 3
2019-06-05 23:15:39 +02:00
i32.const -1
i32.xor
i32.and
local.set $8
local.get $8
i32.const 16
i32.ge_u
if (result i32)
local.get $8
i32.const 1073741808
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 242
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $1
2019-06-05 23:15:39 +02:00
i32.const 16
i32.add
2019-06-05 23:15:39 +02:00
local.get $8
i32.add
local.get $4
i32.eq
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 243
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $4
i32.const 4
i32.sub
local.get $1
2019-06-05 23:15:39 +02:00
i32.store
local.get $8
i32.const 256
i32.lt_u
if
2019-06-05 23:15:39 +02:00
i32.const 0
local.set $9
local.get $8
i32.const 4
i32.shr_u
local.set $10
else
i32.const 31
local.get $8
i32.clz
i32.sub
local.set $9
local.get $8
local.get $9
i32.const 4
i32.sub
i32.shr_u
i32.const 1
i32.const 4
i32.shl
i32.xor
local.set $10
local.get $9
i32.const 8
i32.const 1
i32.sub
i32.sub
local.set $9
end
2019-06-05 23:15:39 +02:00
local.get $9
i32.const 23
i32.lt_u
if (result i32)
local.get $10
i32.const 16
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 259
i32.const 13
call $~lib/builtins/abort
unreachable
end
2019-06-11 12:52:16 +02:00
local.get $0
local.set $7
local.get $9
local.set $3
local.get $10
local.set $6
local.get $7
local.get $3
i32.const 4
i32.shl
local.get $6
i32.add
i32.const 2
i32.shl
i32.add
i32.load offset=96
2019-06-05 23:15:39 +02:00
local.set $11
local.get $1
i32.const 0
2019-06-05 23:15:39 +02:00
i32.store offset=16
local.get $1
2019-06-05 23:15:39 +02:00
local.get $11
i32.store offset=20
local.get $11
if
2019-06-05 23:15:39 +02:00
local.get $11
local.get $1
i32.store offset=16
end
2019-06-11 12:52:16 +02:00
local.get $0
local.set $12
local.get $9
local.set $7
local.get $10
local.set $3
local.get $1
local.set $6
local.get $12
local.get $7
i32.const 4
i32.shl
local.get $3
i32.add
i32.const 2
i32.shl
i32.add
local.get $6
i32.store offset=96
local.get $0
local.get $0
2019-06-05 23:15:39 +02:00
i32.load
i32.const 1
local.get $9
i32.shl
i32.or
i32.store
2019-06-11 12:52:16 +02:00
local.get $0
local.set $13
local.get $9
local.set $12
local.get $0
local.set $3
local.get $9
local.set $6
local.get $3
local.get $6
i32.const 2
i32.shl
i32.add
i32.load offset=4
i32.const 1
local.get $10
i32.shl
i32.or
local.set $7
local.get $13
local.get $12
i32.const 2
i32.shl
i32.add
local.get $7
i32.store offset=4
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/tlsf/addMemory (; 9 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
2019-06-11 12:52:16 +02:00
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
local.get $1
local.get $2
i32.le_u
if (result i32)
local.get $1
i32.const 15
i32.and
i32.eqz
else
i32.const 0
2019-06-05 23:15:39 +02:00
end
if (result i32)
local.get $2
i32.const 15
i32.and
i32.eqz
else
i32.const 0
end
i32.eqz
if
2019-06-05 23:15:39 +02:00
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 385
i32.const 4
call $~lib/builtins/abort
unreachable
end
2019-06-11 12:52:16 +02:00
local.get $0
local.set $3
local.get $3
i32.load offset=1568
2019-06-05 23:15:39 +02:00
local.set $4
i32.const 0
local.set $5
local.get $4
if
local.get $1
local.get $4
i32.const 16
i32.add
i32.ge_u
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 395
i32.const 15
call $~lib/builtins/abort
unreachable
end
local.get $1
i32.const 16
i32.sub
local.get $4
i32.eq
if
local.get $1
i32.const 16
i32.sub
local.set $1
local.get $4
i32.load
local.set $5
else
nop
end
else
local.get $1
local.get $0
i32.const 1572
i32.add
i32.ge_u
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 407
i32.const 4
call $~lib/builtins/abort
unreachable
end
end
local.get $2
local.get $1
i32.sub
local.set $6
local.get $6
i32.const 48
i32.lt_u
if
i32.const 0
return
end
local.get $6
i32.const 2
i32.const 16
i32.mul
i32.sub
local.set $7
local.get $1
local.set $8
local.get $8
local.get $7
i32.const 1
i32.or
local.get $5
i32.const 2
i32.and
i32.or
i32.store
local.get $8
i32.const 0
i32.store offset=16
local.get $8
i32.const 0
i32.store offset=20
local.get $1
local.get $6
i32.add
i32.const 16
i32.sub
local.set $4
local.get $4
i32.const 0
i32.const 2
i32.or
i32.store
2019-06-11 12:52:16 +02:00
local.get $0
local.set $9
local.get $4
local.set $3
local.get $9
local.get $3
i32.store offset=1568
2019-06-05 23:15:39 +02:00
local.get $0
local.get $8
call $~lib/rt/tlsf/insertBlock
i32.const 1
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/tlsf/initializeRoot (; 10 ;) (type $FUNCSIG$v)
2019-06-05 23:15:39 +02:00
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
global.get $~lib/heap/__heap_base
i32.const 15
i32.add
i32.const 15
i32.const -1
i32.xor
i32.and
local.set $0
memory.size
local.set $1
local.get $0
i32.const 1572
i32.add
i32.const 65535
i32.add
i32.const 65535
i32.const -1
i32.xor
i32.and
i32.const 16
i32.shr_u
local.set $2
local.get $2
local.get $1
i32.gt_s
if (result i32)
local.get $2
local.get $1
i32.sub
memory.grow
i32.const 0
i32.lt_s
else
i32.const 0
end
if
unreachable
end
local.get $0
local.set $3
local.get $3
i32.const 0
i32.store
2019-06-11 12:52:16 +02:00
local.get $3
local.set $5
i32.const 0
local.set $4
local.get $5
local.get $4
i32.store offset=1568
2019-06-05 23:15:39 +02:00
block $break|0
i32.const 0
local.set $5
2019-06-11 12:52:16 +02:00
loop $loop|0
2019-06-05 23:15:39 +02:00
local.get $5
i32.const 23
i32.lt_u
i32.eqz
br_if $break|0
2019-06-11 12:52:16 +02:00
local.get $3
local.set $7
local.get $5
local.set $6
i32.const 0
local.set $4
local.get $7
local.get $6
i32.const 2
i32.shl
i32.add
local.get $4
i32.store offset=4
2019-06-05 23:15:39 +02:00
block $break|1
i32.const 0
local.set $7
2019-06-11 12:52:16 +02:00
loop $loop|1
2019-06-05 23:15:39 +02:00
local.get $7
i32.const 16
i32.lt_u
i32.eqz
br_if $break|1
2019-06-11 12:52:16 +02:00
local.get $3
local.set $9
local.get $5
local.set $8
local.get $7
local.set $6
i32.const 0
local.set $4
local.get $9
local.get $8
i32.const 4
i32.shl
local.get $6
i32.add
i32.const 2
i32.shl
i32.add
local.get $4
i32.store offset=96
2019-06-05 23:15:39 +02:00
local.get $7
i32.const 1
i32.add
local.set $7
2019-06-11 12:52:16 +02:00
br $loop|1
2019-06-05 23:15:39 +02:00
end
unreachable
end
local.get $5
i32.const 1
i32.add
local.set $5
2019-06-11 12:52:16 +02:00
br $loop|0
2019-06-05 23:15:39 +02:00
end
unreachable
end
local.get $3
local.get $0
i32.const 1572
i32.add
i32.const 15
i32.add
i32.const 15
i32.const -1
i32.xor
i32.and
memory.size
i32.const 16
i32.shl
call $~lib/rt/tlsf/addMemory
drop
local.get $3
global.set $~lib/rt/tlsf/ROOT
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/tlsf/prepareSize (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-06-05 23:15:39 +02:00
(local $1 i32)
(local $2 i32)
local.get $0
i32.const 1073741808
i32.ge_u
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 120
call $~lib/error/Error#constructor
global.set $~lib/error
i32.const 0
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.const 15
i32.add
i32.const 15
i32.const -1
i32.xor
i32.and
local.tee $1
i32.const 16
local.tee $2
local.get $1
local.get $2
i32.gt_u
select
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/tlsf/searchBlock (; 12 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-06-05 23:15:39 +02:00
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
local.get $1
i32.const 256
i32.lt_u
if
i32.const 0
local.set $2
local.get $1
i32.const 4
i32.shr_u
local.set $3
else
local.get $1
i32.const 536870904
i32.lt_u
if (result i32)
local.get $1
i32.const 1
i32.const 27
local.get $1
i32.clz
i32.sub
i32.shl
i32.add
i32.const 1
i32.sub
else
local.get $1
end
local.set $4
i32.const 31
local.get $4
i32.clz
i32.sub
local.set $2
local.get $4
local.get $2
i32.const 4
i32.sub
i32.shr_u
i32.const 1
i32.const 4
i32.shl
i32.xor
local.set $3
local.get $2
i32.const 8
i32.const 1
i32.sub
i32.sub
local.set $2
end
local.get $2
i32.const 23
i32.lt_u
if (result i32)
local.get $3
i32.const 16
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 337
i32.const 13
call $~lib/builtins/abort
unreachable
end
2019-06-11 12:52:16 +02:00
local.get $0
local.set $5
local.get $2
local.set $4
local.get $5
local.get $4
i32.const 2
i32.shl
i32.add
i32.load offset=4
2019-06-05 23:15:39 +02:00
i32.const 0
i32.const -1
i32.xor
local.get $3
i32.shl
i32.and
local.set $6
i32.const 0
local.set $7
local.get $6
i32.eqz
if
local.get $0
i32.load
i32.const 0
i32.const -1
i32.xor
local.get $2
i32.const 1
i32.add
i32.shl
i32.and
local.set $5
local.get $5
i32.eqz
if
i32.const 0
local.set $7
else
local.get $5
i32.ctz
local.set $2
2019-06-11 12:52:16 +02:00
local.get $0
local.set $8
local.get $2
local.set $4
local.get $8
local.get $4
i32.const 2
i32.shl
i32.add
i32.load offset=4
2019-06-05 23:15:39 +02:00
local.set $6
local.get $6
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 350
i32.const 17
call $~lib/builtins/abort
unreachable
end
local.get $0
local.set $9
local.get $2
local.set $8
local.get $6
i32.ctz
local.set $4
local.get $9
local.get $8
i32.const 4
i32.shl
local.get $4
i32.add
i32.const 2
i32.shl
i32.add
i32.load offset=96
2019-06-11 12:52:16 +02:00
local.set $7
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
else
local.get $0
local.set $9
local.get $2
local.set $8
local.get $6
i32.ctz
local.set $4
local.get $9
local.get $8
i32.const 4
i32.shl
local.get $4
i32.add
i32.const 2
i32.shl
i32.add
i32.load offset=96
2019-06-05 23:15:39 +02:00
local.set $7
end
local.get $7
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/tlsf/growMemory (; 13 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
2019-06-05 23:15:39 +02:00
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
memory.size
local.set $2
local.get $1
i32.const 65535
i32.add
i32.const 65535
i32.const -1
i32.xor
i32.and
i32.const 16
i32.shr_u
local.set $3
local.get $2
local.tee $4
local.get $3
local.tee $5
local.get $4
local.get $5
i32.gt_s
select
local.set $6
local.get $6
memory.grow
i32.const 0
i32.lt_s
if
local.get $3
memory.grow
i32.const 0
i32.lt_s
if
unreachable
end
end
memory.size
local.set $7
local.get $0
local.get $2
i32.const 16
i32.shl
local.get $7
i32.const 16
i32.shl
call $~lib/rt/tlsf/addMemory
drop
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/tlsf/prepareBlock (; 14 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
2019-06-05 23:15:39 +02:00
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $1
i32.load
local.set $3
local.get $2
i32.const 15
i32.and
i32.eqz
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 364
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $3
i32.const 3
i32.const -1
i32.xor
i32.and
local.get $2
i32.sub
local.set $4
local.get $4
i32.const 32
i32.ge_u
if
local.get $1
local.get $2
local.get $3
i32.const 2
i32.and
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.get $2
i32.add
local.set $5
local.get $5
local.get $4
i32.const 16
i32.sub
i32.const 1
i32.or
i32.store
local.get $0
local.get $5
call $~lib/rt/tlsf/insertBlock
else
local.get $1
local.get $3
i32.const 1
i32.const -1
i32.xor
i32.and
i32.store
2019-06-11 12:52:16 +02:00
local.get $1
local.set $5
local.get $5
i32.const 16
i32.add
local.get $5
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
local.get $1
local.set $5
local.get $5
i32.const 16
i32.add
local.get $5
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
2019-06-05 23:15:39 +02:00
i32.load
i32.const 2
i32.const -1
i32.xor
i32.and
i32.store
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/tlsf/allocateBlock (; 15 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-06-05 23:15:39 +02:00
(local $2 i32)
(local $3 i32)
2019-06-13 15:33:43 +02:00
(local $4 i32)
2019-06-05 23:15:39 +02:00
local.get $1
call $~lib/rt/tlsf/prepareSize
local.set $2
2019-06-13 15:33:43 +02:00
global.get $~lib/error
if
i32.const 0
return
end
2019-06-05 23:15:39 +02:00
local.get $2
local.set $3
2019-06-13 15:33:43 +02:00
local.get $0
2019-06-05 23:15:39 +02:00
local.get $3
2019-06-13 15:33:43 +02:00
call $~lib/rt/tlsf/searchBlock
local.set $4
local.get $4
2019-06-05 23:15:39 +02:00
i32.eqz
if
local.get $0
2019-06-13 15:33:43 +02:00
local.get $3
2019-06-05 23:15:39 +02:00
call $~lib/rt/tlsf/growMemory
local.get $0
local.get $3
2019-06-13 15:33:43 +02:00
call $~lib/rt/tlsf/searchBlock
local.set $4
local.get $4
2019-06-05 23:15:39 +02:00
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 477
i32.const 15
call $~lib/builtins/abort
unreachable
end
end
2019-06-13 15:33:43 +02:00
local.get $4
2019-06-05 23:15:39 +02:00
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
2019-06-13 15:33:43 +02:00
local.get $3
2019-06-05 23:15:39 +02:00
i32.ge_u
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 479
i32.const 13
call $~lib/builtins/abort
unreachable
end
2019-06-13 15:33:43 +02:00
local.get $4
2019-06-05 23:15:39 +02:00
i32.const 0
i32.store offset=4
2019-06-13 15:33:43 +02:00
local.get $4
2019-06-05 23:15:39 +02:00
local.get $1
i32.store offset=12
local.get $0
2019-06-13 15:33:43 +02:00
local.get $4
2019-06-05 23:15:39 +02:00
call $~lib/rt/tlsf/removeBlock
local.get $0
2019-06-13 15:33:43 +02:00
local.get $4
2019-06-05 23:15:39 +02:00
local.get $3
call $~lib/rt/tlsf/prepareBlock
2019-06-13 15:33:43 +02:00
local.get $4
2019-06-05 23:15:39 +02:00
call $~lib/rt/rtrace/onalloc
2019-06-13 15:33:43 +02:00
local.get $4
2019-06-05 23:15:39 +02:00
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/tlsf/__alloc (; 16 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-06-05 23:15:39 +02:00
(local $2 i32)
(local $3 i32)
2019-06-13 15:33:43 +02:00
(local $4 i32)
2019-06-05 23:15:39 +02:00
global.get $~lib/rt/tlsf/ROOT
local.set $2
local.get $2
i32.eqz
if
call $~lib/rt/tlsf/initializeRoot
global.get $~lib/rt/tlsf/ROOT
local.set $2
end
local.get $2
local.get $0
call $~lib/rt/tlsf/allocateBlock
local.set $3
2019-06-13 15:33:43 +02:00
global.get $~lib/error
2019-06-05 23:15:39 +02:00
if
i32.const 0
2019-06-13 15:33:43 +02:00
return
2019-06-05 23:15:39 +02:00
end
2019-06-13 15:33:43 +02:00
local.get $3
local.set $4
local.get $4
2019-06-05 23:15:39 +02:00
local.get $1
2019-06-13 15:33:43 +02:00
i32.store offset=8
local.get $4
i32.const 16
2019-06-05 23:15:39 +02:00
i32.add
)
(func $~lib/rt/tlsf/freeBlock (; 17 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $1
i32.load
local.set $2
local.get $2
i32.const 1
i32.and
i32.eqz
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 531
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
i32.const 1
i32.or
i32.store
local.get $0
local.get $1
call $~lib/rt/tlsf/insertBlock
local.get $1
call $~lib/rt/rtrace/onfree
)
(func $~lib/rt/__typeinfo (; 18 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
global.get $~lib/rt/__rtti_base
local.set $1
local.get $0
local.get $1
i32.load
i32.gt_u
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/Error#constructor
global.set $~lib/error
i32.const 0
return
2019-06-05 23:15:39 +02:00
end
local.get $1
i32.const 4
i32.add
local.get $0
i32.const 8
i32.mul
i32.add
i32.load
)
(func $~lib/util/memory/memcpy (; 19 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
block $break|0
loop $continue|0
local.get $2
if (result i32)
local.get $1
i32.const 3
i32.and
else
i32.const 0
end
2019-06-11 12:52:16 +02:00
i32.eqz
br_if $break|0
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
br $continue|0
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.const 3
i32.and
i32.const 0
i32.eq
if
block $break|1
loop $continue|1
local.get $2
i32.const 16
i32.ge_u
2019-06-11 12:52:16 +02:00
i32.eqz
br_if $break|1
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
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
2019-06-05 23:15:39 +02:00
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 $0
i32.const 8
i32.add
local.set $0
local.get $1
i32.const 8
i32.add
local.set $1
end
local.get $2
i32.const 4
i32.and
if
local.get $0
local.get $1
i32.load
i32.store
local.get $0
i32.const 4
i32.add
local.set $0
local.get $1
i32.const 4
i32.add
local.set $1
end
local.get $2
i32.const 2
i32.and
if
local.get $0
local.get $1
i32.load16_u
i32.store16
local.get $0
i32.const 2
i32.add
local.set $0
local.get $1
i32.const 2
i32.add
local.set $1
end
local.get $2
i32.const 1
i32.and
if
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
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
block $case0|2
local.get $0
i32.const 3
i32.and
local.set $5
local.get $5
i32.const 1
i32.eq
br_if $case0|2
local.get $5
i32.const 2
i32.eq
br_if $case1|2
local.get $5
i32.const 3
i32.eq
br_if $case2|2
br $break|2
end
local.get $1
i32.load
local.set $3
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-11 12:52:16 +02:00
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 3
i32.sub
local.set $2
block $break|3
loop $continue|3
local.get $2
i32.const 17
i32.ge_u
i32.eqz
br_if $break|3
2019-06-05 23:15:39 +02:00
local.get $1
2019-06-11 12:52:16 +02:00
i32.const 1
2019-06-05 23:15:39 +02:00
i32.add
i32.load
local.set $4
local.get $0
local.get $3
2019-06-11 12:52:16 +02:00
i32.const 24
2019-06-05 23:15:39 +02:00
i32.shr_u
local.get $4
2019-06-11 12:52:16 +02:00
i32.const 8
2019-06-05 23:15:39 +02:00
i32.shl
i32.or
i32.store
local.get $1
2019-06-11 12:52:16 +02:00
i32.const 5
2019-06-05 23:15:39 +02:00
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
2019-06-11 12:52:16 +02:00
i32.const 24
2019-06-05 23:15:39 +02:00
i32.shr_u
local.get $3
2019-06-11 12:52:16 +02:00
i32.const 8
2019-06-05 23:15:39 +02:00
i32.shl
i32.or
i32.store
local.get $1
2019-06-11 12:52:16 +02:00
i32.const 9
2019-06-05 23:15:39 +02:00
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
2019-06-11 12:52:16 +02:00
i32.const 24
2019-06-05 23:15:39 +02:00
i32.shr_u
local.get $4
2019-06-11 12:52:16 +02:00
i32.const 8
2019-06-05 23:15:39 +02:00
i32.shl
i32.or
i32.store
local.get $1
2019-06-11 12:52:16 +02:00
i32.const 13
2019-06-05 23:15:39 +02:00
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
2019-06-11 12:52:16 +02:00
i32.const 24
2019-06-05 23:15:39 +02:00
i32.shr_u
local.get $3
2019-06-11 12:52:16 +02:00
i32.const 8
2019-06-05 23:15:39 +02:00
i32.shl
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
2019-06-11 12:52:16 +02:00
br $continue|3
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
end
br $break|2
end
local.get $1
i32.load
local.set $3
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 2
i32.sub
local.set $2
block $break|4
loop $continue|4
local.get $2
i32.const 18
i32.ge_u
i32.eqz
br_if $break|4
local.get $1
i32.const 2
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 16
i32.shr_u
local.get $4
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 6
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 16
i32.shr_u
local.get $3
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 10
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 16
i32.shr_u
local.get $4
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 14
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 16
i32.shr_u
local.get $3
i32.const 16
i32.shl
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
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
2019-06-05 23:15:39 +02:00
end
br $break|2
end
local.get $1
2019-06-11 12:52:16 +02:00
i32.load
local.set $3
2019-06-05 23:15:39 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-11 12:52:16 +02:00
i32.load8_u
i32.store8
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 1
2019-06-11 12:52:16 +02:00
i32.sub
local.set $2
block $break|5
loop $continue|5
local.get $2
i32.const 19
i32.ge_u
i32.eqz
br_if $break|5
local.get $1
i32.const 3
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 8
i32.shr_u
local.get $4
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 7
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 8
i32.shr_u
local.get $3
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 11
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 8
i32.shr_u
local.get $4
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 15
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 8
i32.shr_u
local.get $3
i32.const 24
i32.shl
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
unreachable
end
br $break|2
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
end
local.get $2
i32.const 16
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
end
2019-06-11 12:52:16 +02:00
local.get $2
i32.const 8
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
end
local.get $2
i32.const 4
i32.and
if
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
end
local.get $2
i32.const 2
i32.and
if
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
end
local.get $2
i32.const 1
i32.and
if
2019-06-11 12:52:16 +02:00
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
2019-06-05 23:15:39 +02:00
i32.load8_u
i32.store8
end
)
(func $~lib/memory/memory.copy (; 20 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
block $~lib/util/memory/memmove|inlined.0
local.get $0
local.set $5
local.get $1
local.set $4
local.get $2
local.set $3
local.get $5
local.get $4
i32.eq
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $4
local.get $3
i32.add
local.get $5
i32.le_u
if (result i32)
i32.const 1
else
local.get $5
local.get $3
i32.add
local.get $4
i32.le_u
end
if
local.get $5
local.get $4
local.get $3
call $~lib/util/memory/memcpy
br $~lib/util/memory/memmove|inlined.0
end
local.get $5
local.get $4
i32.lt_u
if
local.get $4
i32.const 7
i32.and
local.get $5
i32.const 7
i32.and
i32.eq
if
block $break|0
loop $continue|0
local.get $5
i32.const 7
i32.and
2019-06-11 12:52:16 +02:00
i32.eqz
br_if $break|0
local.get $3
i32.eqz
2019-06-05 23:15:39 +02:00
if
2019-06-11 12:52:16 +02:00
br $~lib/util/memory/memmove|inlined.0
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
local.get $3
i32.const 1
i32.sub
local.set $3
local.get $5
local.tee $6
i32.const 1
i32.add
local.set $5
local.get $6
local.get $4
local.tee $6
i32.const 1
i32.add
local.set $4
local.get $6
i32.load8_u
i32.store8
br $continue|0
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
2019-06-05 23:15:39 +02:00
end
block $break|1
loop $continue|1
local.get $3
i32.const 8
i32.ge_u
2019-06-11 12:52:16 +02:00
i32.eqz
br_if $break|1
local.get $5
local.get $4
i64.load
i64.store
local.get $3
i32.const 8
i32.sub
local.set $3
local.get $5
i32.const 8
i32.add
local.set $5
local.get $4
i32.const 8
i32.add
local.set $4
br $continue|1
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
2019-06-05 23:15:39 +02:00
end
end
block $break|2
loop $continue|2
local.get $3
2019-06-11 12:52:16 +02:00
i32.eqz
br_if $break|2
local.get $5
local.tee $6
i32.const 1
i32.add
local.set $5
local.get $6
local.get $4
local.tee $6
i32.const 1
i32.add
local.set $4
local.get $6
i32.load8_u
i32.store8
local.get $3
i32.const 1
i32.sub
local.set $3
br $continue|2
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
2019-06-05 23:15:39 +02:00
end
else
local.get $4
i32.const 7
i32.and
local.get $5
i32.const 7
i32.and
i32.eq
if
block $break|3
loop $continue|3
local.get $5
local.get $3
i32.add
i32.const 7
i32.and
2019-06-11 12:52:16 +02:00
i32.eqz
br_if $break|3
local.get $3
i32.eqz
2019-06-05 23:15:39 +02:00
if
2019-06-11 12:52:16 +02:00
br $~lib/util/memory/memmove|inlined.0
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
local.get $5
local.get $3
i32.const 1
i32.sub
local.tee $3
i32.add
local.get $4
local.get $3
i32.add
i32.load8_u
i32.store8
br $continue|3
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
2019-06-05 23:15:39 +02:00
end
block $break|4
loop $continue|4
local.get $3
i32.const 8
i32.ge_u
2019-06-11 12:52:16 +02:00
i32.eqz
br_if $break|4
2019-06-05 23:15:39 +02:00
local.get $3
2019-06-11 12:52:16 +02:00
i32.const 8
2019-06-05 23:15:39 +02:00
i32.sub
2019-06-11 12:52:16 +02:00
local.set $3
local.get $5
local.get $3
2019-06-05 23:15:39 +02:00
i32.add
local.get $4
local.get $3
i32.add
2019-06-11 12:52:16 +02:00
i64.load
i64.store
br $continue|4
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
end
end
block $break|5
loop $continue|5
local.get $3
i32.eqz
br_if $break|5
local.get $5
local.get $3
i32.const 1
i32.sub
local.tee $3
i32.add
local.get $4
local.get $3
i32.add
i32.load8_u
i32.store8
br $continue|5
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
2019-06-05 23:15:39 +02:00
end
end
end
)
(func $~lib/rt/tlsf/__free (; 21 ;) (type $FUNCSIG$vi) (param $0 i32)
global.get $~lib/rt/tlsf/ROOT
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 561
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 0
i32.ne
if (result i32)
local.get $0
i32.const 15
i32.and
i32.eqz
else
i32.const 0
end
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 72
2019-06-05 23:15:39 +02:00
i32.const 562
i32.const 2
call $~lib/builtins/abort
unreachable
end
global.get $~lib/rt/tlsf/ROOT
local.get $0
i32.const 16
i32.sub
call $~lib/rt/tlsf/freeBlock
)
(func $~lib/rt/pure/growRoots (; 22 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
global.get $~lib/rt/pure/ROOTS
local.set $0
global.get $~lib/rt/pure/CUR
local.get $0
i32.sub
local.set $1
local.get $1
i32.const 2
i32.mul
local.tee $2
i32.const 64
i32.const 2
i32.shl
local.tee $3
local.get $2
local.get $3
i32.gt_u
select
local.set $4
local.get $4
2019-06-05 23:15:39 +02:00
i32.const 0
call $~lib/rt/tlsf/__alloc
2019-06-13 15:33:43 +02:00
local.set $2
global.get $~lib/error
if
return
end
local.get $2
2019-06-05 23:15:39 +02:00
local.set $5
local.get $5
i32.const 16
2019-06-05 23:15:39 +02:00
i32.sub
call $~lib/rt/rtrace/onfree
local.get $5
local.get $0
2019-06-05 23:15:39 +02:00
local.get $1
call $~lib/memory/memory.copy
local.get $0
2019-06-05 23:15:39 +02:00
if
local.get $0
i32.const 16
i32.sub
call $~lib/rt/rtrace/onalloc
local.get $0
call $~lib/rt/tlsf/__free
end
local.get $5
global.set $~lib/rt/pure/ROOTS
local.get $5
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
global.set $~lib/rt/pure/CUR
local.get $5
local.get $4
i32.add
2019-06-05 23:15:39 +02:00
global.set $~lib/rt/pure/END
)
(func $~lib/rt/pure/appendRoot (; 23 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
global.get $~lib/rt/pure/CUR
local.set $1
local.get $1
global.get $~lib/rt/pure/END
i32.ge_u
if
call $~lib/rt/pure/growRoots
2019-06-13 15:33:43 +02:00
global.get $~lib/error
if
return
end
2019-06-05 23:15:39 +02:00
global.get $~lib/rt/pure/CUR
local.set $1
end
local.get $1
local.get $0
i32.store
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 4
i32.add
2019-06-05 23:15:39 +02:00
global.set $~lib/rt/pure/CUR
)
(func $~lib/rt/pure/decrement (; 24 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
2019-06-13 15:33:43 +02:00
(local $3 i32)
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=4
local.set $1
local.get $1
i32.const 268435455
i32.and
2019-06-05 23:15:39 +02:00
local.set $2
local.get $0
2019-06-05 23:15:39 +02:00
call $~lib/rt/rtrace/ondecrement
local.get $0
i32.load
i32.const 1
i32.and
i32.eqz
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 24
2019-06-05 23:15:39 +02:00
i32.const 115
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 1
i32.eq
if
local.get $0
i32.const 16
i32.add
i32.const 1
call $~lib/rt/__visit_members
local.get $1
i32.const -2147483648
i32.and
i32.eqz
if
global.get $~lib/rt/tlsf/ROOT
local.get $0
call $~lib/rt/tlsf/freeBlock
else
local.get $0
i32.const -2147483648
i32.const 0
i32.or
i32.const 0
i32.or
i32.store offset=4
end
else
local.get $2
i32.const 0
i32.gt_u
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 24
2019-06-05 23:15:39 +02:00
i32.const 124
i32.const 15
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.load offset=8
call $~lib/rt/__typeinfo
2019-06-13 15:33:43 +02:00
local.set $3
global.get $~lib/error
if
return
end
local.get $3
2019-06-05 23:15:39 +02:00
i32.const 16
i32.and
i32.eqz
if
local.get $0
i32.const -2147483648
i32.const 805306368
i32.or
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 1
i32.sub
i32.or
i32.store offset=4
local.get $1
i32.const -2147483648
i32.and
i32.eqz
if
2019-06-05 23:15:39 +02:00
local.get $0
call $~lib/rt/pure/appendRoot
2019-06-13 15:33:43 +02:00
global.get $~lib/error
if
return
end
end
2019-06-05 23:15:39 +02:00
else
local.get $0
local.get $1
i32.const 268435455
i32.const -1
i32.xor
i32.and
local.get $2
i32.const 1
i32.sub
i32.or
i32.store offset=4
end
end
)
2019-06-05 23:15:39 +02:00
(func $~lib/rt/pure/__release (; 25 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
2019-06-05 23:15:39 +02:00
global.get $~lib/heap/__heap_base
i32.gt_u
if
local.get $0
i32.const 16
i32.sub
call $~lib/rt/pure/decrement
2019-06-13 15:33:43 +02:00
global.get $~lib/error
if
return
end
2019-06-05 23:15:39 +02:00
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/error/Error#constructor (; 26 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
local.get $1
2019-06-13 15:33:43 +02:00
call $~lib/rt/pure/__retain
drop
2019-06-11 12:52:16 +02:00
local.get $0
i32.eqz
if
i32.const 12
2019-06-13 15:33:43 +02:00
i32.const 4
2019-06-11 12:52:16 +02:00
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
local.get $0
2019-06-13 15:33:43 +02:00
i32.const 176
call $~lib/rt/pure/__retain
2019-06-11 12:52:16 +02:00
i32.store
local.get $0
2019-06-13 15:33:43 +02:00
i32.const 208
call $~lib/rt/pure/__retain
2019-06-11 12:52:16 +02:00
i32.store offset=4
local.get $0
2019-06-13 15:33:43 +02:00
local.get $1
2019-06-11 12:52:16 +02:00
i32.store offset=8
2019-06-13 15:33:43 +02:00
local.get $1
call $~lib/rt/pure/__release
2019-06-11 12:52:16 +02:00
local.get $0
2019-06-13 15:33:43 +02:00
)
(func $~lib/error/RangeError#constructor (; 27 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $1
call $~lib/rt/pure/__retain
drop
local.get $0
if (result i32)
local.get $0
else
i32.const 12
i32.const 5
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
end
local.get $1
call $~lib/error/Error#constructor
local.set $0
local.get $0
local.tee $2
i32.const 280
local.tee $3
local.get $2
i32.load
local.tee $2
i32.ne
if
local.get $3
call $~lib/rt/pure/__retain
drop
local.get $2
2019-06-11 12:52:16 +02:00
call $~lib/rt/pure/__release
2019-06-05 23:15:39 +02:00
end
2019-06-13 15:33:43 +02:00
local.get $3
i32.store
local.get $1
call $~lib/rt/pure/__release
local.get $0
)
(func $~lib/arraybuffer/ArrayBufferView#constructor (; 28 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $1
i32.const 1073741808
local.get $2
i32.shr_u
i32.gt_u
if
i32.const 0
i32.const 320
call $~lib/error/RangeError#constructor
global.set $~lib/error
i32.const 0
return
end
local.get $1
local.get $2
i32.shl
local.tee $1
i32.const 0
call $~lib/rt/tlsf/__alloc
local.set $3
global.get $~lib/error
if
i32.const 0
return
end
local.get $3
local.set $4
local.get $0
i32.eqz
if
i32.const 12
i32.const 2
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
2019-06-05 23:15:39 +02:00
i32.store
local.get $0
2019-06-13 15:33:43 +02:00
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
local.tee $3
local.get $4
local.tee $5
2019-06-05 23:15:39 +02:00
local.get $3
2019-06-13 15:33:43 +02:00
i32.load
local.tee $3
i32.ne
if
local.get $5
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $5
i32.store
local.get $0
local.get $4
2019-06-05 23:15:39 +02:00
i32.store offset=4
local.get $0
local.get $1
i32.store offset=8
local.get $0
)
2019-06-13 15:33:43 +02:00
(func $~lib/typedarray/Uint8Array#constructor (; 29 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
2019-06-05 23:15:39 +02:00
local.get $0
if (result i32)
local.get $0
else
i32.const 12
i32.const 3
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
end
local.get $1
i32.const 0
call $~lib/arraybuffer/ArrayBufferView#constructor
2019-06-13 15:33:43 +02:00
local.set $2
global.get $~lib/error
if
i32.const 0
return
end
local.get $2
2019-06-05 23:15:39 +02:00
local.set $0
local.get $0
)
2019-06-13 15:33:43 +02:00
(func $~lib/typedarray/Uint8Array#__set (; 30 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
2019-06-05 23:15:39 +02:00
local.get $1
local.get $0
i32.load offset=8
i32.ge_u
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $2
i32.store8
)
2019-06-13 15:33:43 +02:00
(func $~lib/arraybuffer/ArrayBuffer#get:byteLength (; 31 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-06-05 23:15:39 +02:00
local.get $0
i32.const 16
i32.sub
i32.load offset=12
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#constructor (; 32 ;) (type $FUNCSIG$iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
2019-06-05 23:15:39 +02:00
(local $4 i32)
(local $5 i32)
(local $6 i32)
local.get $1
call $~lib/rt/pure/__retain
drop
local.get $3
i32.const 1073741808
i32.gt_u
local.get $2
local.get $3
i32.add
local.get $1
call $~lib/arraybuffer/ArrayBuffer#get:byteLength
i32.gt_u
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 320
call $~lib/error/RangeError#constructor
global.set $~lib/error
2019-06-05 23:15:39 +02:00
local.get $1
call $~lib/rt/pure/__release
2019-06-13 15:33:43 +02:00
i32.const 0
return
2019-02-06 23:42:43 +01:00
end
2019-06-11 12:52:16 +02:00
local.get $0
i32.eqz
if
i32.const 12
2019-06-13 15:33:43 +02:00
i32.const 6
2019-06-11 12:52:16 +02:00
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
2019-06-11 12:52:16 +02:00
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
2019-06-05 23:15:39 +02:00
local.tee $4
2019-06-11 12:52:16 +02:00
local.get $1
local.tee $5
local.get $4
i32.load
local.tee $4
i32.ne
if
2019-06-05 23:15:39 +02:00
local.get $5
2019-06-11 12:52:16 +02:00
call $~lib/rt/pure/__retain
drop
local.get $4
call $~lib/rt/pure/__release
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
local.get $5
i32.store
2019-06-05 23:15:39 +02:00
local.get $1
local.get $2
i32.add
local.set $6
local.get $0
2019-06-05 23:15:39 +02:00
local.get $6
i32.store offset=4
local.get $0
2019-06-05 23:15:39 +02:00
local.get $3
i32.store offset=8
local.get $1
2019-06-05 23:15:39 +02:00
call $~lib/rt/pure/__release
local.get $0
2019-02-02 16:03:21 +01:00
)
2019-06-13 15:33:43 +02:00
(func $~lib/typedarray/Uint8Array#get:buffer (; 33 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load
2019-06-05 23:15:39 +02:00
call $~lib/rt/pure/__retain
)
2019-06-13 15:33:43 +02:00
(func $~lib/arraybuffer/ArrayBufferView#get:byteOffset (; 34 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=4
local.get $0
2019-06-05 23:15:39 +02:00
i32.load
i32.sub
)
2019-06-13 15:33:43 +02:00
(func $~lib/arraybuffer/ArrayBufferView#get:byteLength (; 35 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
)
2019-06-13 15:33:43 +02:00
(func $~lib/polyfills/bswap<u32> (; 36 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.const -16711936
i32.and
i32.const 8
i32.rotl
local.get $0
i32.const 16711935
i32.and
i32.const 8
i32.rotr
i32.or
return
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#getFloat32 (; 37 ;) (type $FUNCSIG$fiii) (param $0 i32) (param $1 i32) (param $2 i32) (result f32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 4
i32.add
local.get $0
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
f32.const 0
return
end
local.get $2
if (result f32)
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
f32.load
else
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
i32.load
call $~lib/polyfills/bswap<u32>
f32.reinterpret_i32
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/polyfills/bswap<u64> (; 38 ;) (type $FUNCSIG$jj) (param $0 i64) (result i64)
(local $1 i64)
(local $2 i64)
(local $3 i64)
local.get $0
i64.const 8
i64.shr_u
i64.const 71777214294589695
i64.and
local.set $1
local.get $0
i64.const 71777214294589695
i64.and
i64.const 8
i64.shl
local.set $2
local.get $1
local.get $2
i64.or
local.set $3
local.get $3
i64.const 16
i64.shr_u
i64.const 281470681808895
i64.and
local.set $1
local.get $3
i64.const 281470681808895
i64.and
i64.const 16
i64.shl
local.set $2
local.get $1
local.get $2
i64.or
i64.const 32
i64.rotr
return
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#getFloat64 (; 39 ;) (type $FUNCSIG$diii) (param $0 i32) (param $1 i32) (param $2 i32) (result f64)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 8
i32.add
local.get $0
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
f64.const 0
return
end
local.get $2
if (result f64)
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
f64.load
else
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
i64.load
call $~lib/polyfills/bswap<u64>
f64.reinterpret_i64
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#getInt8 (; 40 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-06-05 23:15:39 +02:00
local.get $1
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.ge_u
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
i32.const 0
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
i32.load8_s
)
2019-06-13 15:33:43 +02:00
(func $~lib/polyfills/bswap<i16> (; 41 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.const 8
i32.shl
local.get $0
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const 8
i32.shr_s
i32.const 255
i32.and
i32.or
return
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#getInt16 (; 42 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 2
i32.add
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
i32.const 0
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
i32.load16_s
local.set $3
local.get $2
if (result i32)
2019-06-05 23:15:39 +02:00
local.get $3
else
2019-06-05 23:15:39 +02:00
local.get $3
call $~lib/polyfills/bswap<i16>
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/polyfills/bswap<i32> (; 43 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.const -16711936
i32.and
i32.const 8
i32.rotl
local.get $0
i32.const 16711935
i32.and
i32.const 8
i32.rotr
i32.or
return
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#getInt32 (; 44 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 4
i32.add
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
i32.const 0
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
i32.load
local.set $3
local.get $2
if (result i32)
2019-06-05 23:15:39 +02:00
local.get $3
else
2019-06-05 23:15:39 +02:00
local.get $3
call $~lib/polyfills/bswap<i32>
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/polyfills/bswap<i64> (; 45 ;) (type $FUNCSIG$jj) (param $0 i64) (result i64)
(local $1 i64)
(local $2 i64)
(local $3 i64)
local.get $0
i64.const 8
i64.shr_u
i64.const 71777214294589695
i64.and
local.set $1
local.get $0
i64.const 71777214294589695
i64.and
i64.const 8
i64.shl
local.set $2
local.get $1
local.get $2
i64.or
local.set $3
local.get $3
i64.const 16
i64.shr_u
i64.const 281470681808895
i64.and
local.set $1
local.get $3
i64.const 281470681808895
i64.and
i64.const 16
i64.shl
local.set $2
local.get $1
local.get $2
i64.or
i64.const 32
i64.rotr
return
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#getInt64 (; 46 ;) (type $FUNCSIG$jiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i64)
2019-06-05 23:15:39 +02:00
(local $3 i64)
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 8
i32.add
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
i64.const 0
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
i64.load
local.set $3
local.get $2
if (result i64)
2019-06-05 23:15:39 +02:00
local.get $3
else
2019-06-05 23:15:39 +02:00
local.get $3
call $~lib/polyfills/bswap<i64>
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#getUint8 (; 47 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-06-05 23:15:39 +02:00
local.get $1
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.ge_u
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
i32.const 0
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
i32.load8_u
)
2019-06-13 15:33:43 +02:00
(func $~lib/polyfills/bswap<u16> (; 48 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.const 8
i32.shl
local.get $0
i32.const 65535
i32.and
i32.const 8
i32.shr_u
i32.const 255
i32.and
i32.or
return
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#getUint16 (; 49 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 2
i32.add
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
i32.const 0
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
i32.load16_u
local.set $3
local.get $2
if (result i32)
2019-06-05 23:15:39 +02:00
local.get $3
else
2019-06-05 23:15:39 +02:00
local.get $3
call $~lib/polyfills/bswap<u16>
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#getUint32 (; 50 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 4
i32.add
local.get $0
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
i32.const 0
return
end
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=4
local.get $1
i32.add
i32.load
2019-06-05 23:15:39 +02:00
local.set $3
local.get $2
if (result i32)
local.get $3
else
local.get $3
call $~lib/polyfills/bswap<u32>
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#getUint64 (; 51 ;) (type $FUNCSIG$jiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i64)
2019-06-05 23:15:39 +02:00
(local $3 i64)
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 8
i32.add
local.get $0
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
i64.const 0
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
i64.load
local.set $3
local.get $2
if (result i64)
2019-06-05 23:15:39 +02:00
local.get $3
else
2019-06-05 23:15:39 +02:00
local.get $3
call $~lib/polyfills/bswap<u64>
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#setFloat32 (; 52 ;) (type $FUNCSIG$viifi) (param $0 i32) (param $1 i32) (param $2 f32) (param $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 4
i32.add
local.get $0
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
end
local.get $3
if
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $2
2019-06-05 23:15:39 +02:00
f32.store
else
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $2
i32.reinterpret_f32
call $~lib/polyfills/bswap<u32>
2019-06-05 23:15:39 +02:00
i32.store
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#setFloat64 (; 53 ;) (type $FUNCSIG$viidi) (param $0 i32) (param $1 i32) (param $2 f64) (param $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 8
i32.add
local.get $0
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
end
local.get $3
if
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $2
2019-06-05 23:15:39 +02:00
f64.store
else
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $2
i64.reinterpret_f64
call $~lib/polyfills/bswap<u64>
2019-06-05 23:15:39 +02:00
i64.store
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#setInt8 (; 54 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
2019-06-05 23:15:39 +02:00
local.get $1
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.ge_u
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $2
2019-06-05 23:15:39 +02:00
i32.store8
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#setInt16 (; 55 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 2
i32.add
local.get $0
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
end
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $3
if (result i32)
local.get $2
else
local.get $2
call $~lib/polyfills/bswap<i16>
end
2019-06-05 23:15:39 +02:00
i32.store16
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#setInt32 (; 56 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 4
i32.add
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $3
if (result i32)
local.get $2
else
local.get $2
call $~lib/polyfills/bswap<i32>
end
2019-06-05 23:15:39 +02:00
i32.store
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#setInt64 (; 57 ;) (type $FUNCSIG$viiji) (param $0 i32) (param $1 i32) (param $2 i64) (param $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 8
i32.add
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $3
if (result i64)
local.get $2
else
local.get $2
call $~lib/polyfills/bswap<i64>
end
2019-06-05 23:15:39 +02:00
i64.store
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#setUint8 (; 58 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
2019-06-05 23:15:39 +02:00
local.get $1
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.ge_u
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $2
2019-06-05 23:15:39 +02:00
i32.store8
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#setUint16 (; 59 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 2
i32.add
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $3
if (result i32)
local.get $2
else
local.get $2
call $~lib/polyfills/bswap<u16>
end
2019-06-05 23:15:39 +02:00
i32.store16
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#setUint32 (; 60 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 4
i32.add
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
local.get $3
if (result i32)
local.get $2
else
local.get $2
call $~lib/polyfills/bswap<u32>
end
2019-06-05 23:15:39 +02:00
i32.store
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#setUint64 (; 61 ;) (type $FUNCSIG$viiji) (param $0 i32) (param $1 i32) (param $2 i64) (param $3 i32)
2019-06-05 23:15:39 +02:00
local.get $1
i32.const 0
i32.lt_s
local.get $1
i32.const 8
i32.add
local.get $0
2019-06-05 23:15:39 +02:00
i32.load offset=8
i32.gt_s
i32.or
if
2019-06-13 15:33:43 +02:00
i32.const 0
i32.const 224
call $~lib/error/RangeError#constructor
global.set $~lib/error
return
2019-06-05 23:15:39 +02:00
end
local.get $0
i32.load offset=4
local.get $1
i32.add
2019-06-05 23:15:39 +02:00
local.get $3
if (result i64)
local.get $2
else
local.get $2
call $~lib/polyfills/bswap<u64>
end
2019-06-05 23:15:39 +02:00
i64.store
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#constructor|trampoline (; 62 ;) (type $FUNCSIG$iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
2019-06-05 23:15:39 +02:00
block $2of2
block $1of2
block $0of2
block $outOfRange
global.get $~lib/argc
i32.const 1
i32.sub
br_table $0of2 $1of2 $2of2 $outOfRange
end
unreachable
end
i32.const 0
local.set $2
end
local.get $1
call $~lib/arraybuffer/ArrayBuffer#get:byteLength
local.set $3
end
local.get $0
local.get $1
local.get $2
local.get $3
call $~lib/dataview/DataView#constructor
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#get:byteOffset (; 63 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-06-05 23:15:39 +02:00
local.get $0
i32.load offset=4
local.get $0
i32.load
i32.sub
)
2019-06-13 15:33:43 +02:00
(func $~lib/dataview/DataView#get:byteLength (; 64 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-06-05 23:15:39 +02:00
local.get $0
i32.load offset=8
)
2019-06-13 15:33:43 +02:00
(func $start:std/dataview (; 65 ;) (type $FUNCSIG$v)
2019-06-05 23:15:39 +02:00
(local $0 i32)
(local $1 i32)
(local $2 i32)
2019-06-13 15:33:43 +02:00
(local $3 f32)
(local $4 f64)
(local $5 i32)
(local $6 i64)
(local $7 i32)
block $uncaughtError
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 8
call $~lib/typedarray/Uint8Array#constructor
local.set $0
global.get $~lib/error
if
br $uncaughtError
end
local.get $0
local.set $0
local.get $0
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 246
call $~lib/typedarray/Uint8Array#__set
global.get $~lib/error
if
br $uncaughtError
end
local.get $0
i32.const 1
i32.const 224
call $~lib/typedarray/Uint8Array#__set
global.get $~lib/error
if
br $uncaughtError
end
local.get $0
2019-06-05 23:15:39 +02:00
i32.const 2
2019-06-13 15:33:43 +02:00
i32.const 88
call $~lib/typedarray/Uint8Array#__set
global.get $~lib/error
if
br $uncaughtError
end
local.get $0
i32.const 3
i32.const 159
call $~lib/typedarray/Uint8Array#__set
global.get $~lib/error
if
br $uncaughtError
end
local.get $0
i32.const 4
i32.const 130
call $~lib/typedarray/Uint8Array#__set
global.get $~lib/error
if
br $uncaughtError
end
local.get $0
i32.const 5
i32.const 101
call $~lib/typedarray/Uint8Array#__set
global.get $~lib/error
if
br $uncaughtError
end
local.get $0
i32.const 6
i32.const 67
call $~lib/typedarray/Uint8Array#__set
global.get $~lib/error
if
br $uncaughtError
end
local.get $0
i32.const 7
i32.const 95
call $~lib/typedarray/Uint8Array#__set
global.get $~lib/error
if
br $uncaughtError
end
i32.const 0
2019-06-13 15:33:43 +02:00
local.get $0
call $~lib/typedarray/Uint8Array#get:buffer
local.tee $1
local.get $0
call $~lib/arraybuffer/ArrayBufferView#get:byteOffset
local.get $0
call $~lib/arraybuffer/ArrayBufferView#get:byteLength
call $~lib/dataview/DataView#constructor
local.set $2
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
local.set $2
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const -4.592586247781397e-20
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 15
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.const 1
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const -2.3413961970849473e-37
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const 77105877018631129268224
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 17
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const 1
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const 229.51023864746094
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
i32.const 1
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const 14079802746555334656
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 19
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const -2275140518817895515269171e9
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 21
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const -62437351080004157440
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const 1403059112509440
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 23
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const -5.522466503261712e-20
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const -1.6843597451835358e-37
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 25
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getFloat64
local.set $4
global.get $~lib/error
if
br $uncaughtError
end
local.get $4
f64.const 7936550095674706383278551e126
f64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 27
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getFloat64
local.set $4
global.get $~lib/error
if
br $uncaughtError
end
local.get $4
f64.const -411777475818852546741639e241
f64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 28
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 24
i32.shl
i32.const 24
i32.shr_s
i32.const -10
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
call $~lib/dataview/DataView#getInt8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 24
i32.shl
i32.const 24
i32.shr_s
i32.const -32
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 31
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 24
i32.shl
i32.const 24
i32.shr_s
i32.const 88
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
call $~lib/dataview/DataView#getInt8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 24
i32.shl
i32.const 24
i32.shr_s
i32.const -97
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 33
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
call $~lib/dataview/DataView#getInt8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 24
i32.shl
i32.const 24
i32.shr_s
i32.const -126
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 5
call $~lib/dataview/DataView#getInt8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 24
i32.shl
i32.const 24
i32.shr_s
i32.const 101
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 35
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 6
call $~lib/dataview/DataView#getInt8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 24
i32.shl
i32.const 24
i32.shr_s
i32.const 67
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 7
call $~lib/dataview/DataView#getInt8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 24
i32.shl
i32.const 24
i32.shr_s
i32.const 95
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 37
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const -7946
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 39
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.const 1
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const 22752
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const -24744
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 41
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const 1
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const -32097
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 42
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
i32.const 1
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const 25986
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 43
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 5
i32.const 1
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const 17253
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 44
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 6
i32.const 1
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const 24387
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 45
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const -2336
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 47
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const -8104
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 48
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const 22687
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 49
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const -24702
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 50
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const -32155
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 51
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 5
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const 25923
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 52
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 6
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const 17247
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 53
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -1621565194
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 55
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.const 1
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -2103486240
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 56
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 1703059288
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 57
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const 1
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 1130726047
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 58
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
i32.const 1
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 1598252418
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 59
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -153069409
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 61
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.const 0
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -531062910
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 62
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 1486848613
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 63
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const 0
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -1618844349
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 64
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
i32.const 0
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -2107292833
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 65
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
i32.const 1
call $~lib/dataview/DataView#getInt64
local.set $6
global.get $~lib/error
if
br $uncaughtError
end
local.get $6
i64.const 6864441868736323830
i64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 67
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
i32.const 0
call $~lib/dataview/DataView#getInt64
local.set $6
global.get $~lib/error
if
br $uncaughtError
end
local.get $6
i64.const -657428103485373601
i64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 68
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
call $~lib/dataview/DataView#getUint8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 255
i32.and
i32.const 246
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 70
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
call $~lib/dataview/DataView#getUint8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 255
i32.and
i32.const 224
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 71
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 255
i32.and
i32.const 88
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 72
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
call $~lib/dataview/DataView#getUint8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 255
i32.and
i32.const 159
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 73
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
call $~lib/dataview/DataView#getUint8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 255
i32.and
i32.const 130
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 74
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 5
call $~lib/dataview/DataView#getUint8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 255
i32.and
i32.const 101
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 75
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 6
call $~lib/dataview/DataView#getUint8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 255
i32.and
i32.const 67
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 76
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 7
call $~lib/dataview/DataView#getUint8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 255
i32.and
i32.const 95
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 77
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 57590
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 79
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.const 1
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 22752
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 80
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 40792
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 81
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const 1
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 33439
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 82
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
i32.const 1
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 25986
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 83
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 5
i32.const 1
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 17253
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 84
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 6
i32.const 1
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 24387
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 85
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 63200
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 87
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 57432
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 88
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 22687
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 89
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 40834
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 90
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 33381
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 91
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 5
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 25923
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 92
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 6
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 17247
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 93
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -1621565194
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 95
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.const 1
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -2103486240
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 96
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 1703059288
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 97
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const 1
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 1130726047
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 98
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
i32.const 1
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 1598252418
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 99
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -153069409
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 101
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -531062910
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 102
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
2019-06-05 23:15:39 +02:00
i32.const 2
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 1486848613
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 103
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -1618844349
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 104
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 4
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -2107292833
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 105
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getUint64
local.set $6
global.get $~lib/error
if
br $uncaughtError
end
local.get $6
i64.const 6864441868736323830
i64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 107
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint64
local.set $6
global.get $~lib/error
if
br $uncaughtError
end
local.get $6
i64.const -657428103485373601
i64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 108
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
f32.const 1.5976661625240943e-18
i32.const 1
call $~lib/dataview/DataView#setFloat32
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const 1.5976661625240943e-18
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 111
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
f32.const 1976281973381696323584
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#setFloat32
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getFloat32
local.set $3
global.get $~lib/error
if
br $uncaughtError
end
local.get $3
f32.const 1976281973381696323584
f32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 114
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
f64.const -1094252199637739024055454e124
i32.const 1
call $~lib/dataview/DataView#setFloat64
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getFloat64
local.set $4
global.get $~lib/error
if
br $uncaughtError
end
local.get $4
f64.const -1094252199637739024055454e124
f64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 117
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
f64.const 6.022586634778589e-103
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#setFloat64
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getFloat64
local.set $4
global.get $~lib/error
if
br $uncaughtError
end
local.get $4
f64.const 6.022586634778589e-103
f64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 120
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 108
call $~lib/dataview/DataView#setInt8
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 24
i32.shl
i32.const 24
i32.shr_s
i32.const 108
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 123
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const -13360
i32.const 1
call $~lib/dataview/DataView#setInt16
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
i32.const 1
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const -13360
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 126
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 14689
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#setInt16
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.const 14689
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 129
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1204680201
i32.const 1
call $~lib/dataview/DataView#setInt32
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 1204680201
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 132
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 660673230
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#setInt32
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 660673230
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 135
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i64.const -3290739641816099749
i32.const 1
call $~lib/dataview/DataView#setInt64
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getInt64
local.set $6
global.get $~lib/error
if
br $uncaughtError
end
local.get $6
i64.const -3290739641816099749
i64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 138
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i64.const 8178932412950708047
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#setInt64
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getInt64
local.set $6
global.get $~lib/error
if
br $uncaughtError
end
local.get $6
i64.const 8178932412950708047
i64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 141
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 238
call $~lib/dataview/DataView#setUint8
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint8
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 255
i32.and
i32.const 238
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 144
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 58856
i32.const 1
call $~lib/dataview/DataView#setUint16
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 58856
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 147
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 60400
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#setUint16
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint16
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const 65535
i32.and
i32.const 60400
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 150
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const -846805744
i32.const 1
call $~lib/dataview/DataView#setUint32
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -846805744
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 153
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const -1510791631
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#setUint32
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint32
local.set $5
global.get $~lib/error
if
br $uncaughtError
end
local.get $5
i32.const -1510791631
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 156
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
i64.const 2334704782995986958
i32.const 1
call $~lib/dataview/DataView#setUint64
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 1
call $~lib/dataview/DataView#getUint64
local.set $6
global.get $~lib/error
if
br $uncaughtError
end
local.get $6
i64.const 2334704782995986958
i64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 159
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 0
2019-06-13 15:33:43 +02:00
i64.const -7123186897289856329
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#setUint64
global.get $~lib/error
if
br $uncaughtError
end
local.get $2
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#getUint64
local.set $6
global.get $~lib/error
if
br $uncaughtError
end
local.get $6
i64.const -7123186897289856329
i64.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 162
i32.const 2
call $~lib/builtins/abort
unreachable
end
i32.const 1
global.set $~lib/argc
i32.const 0
2019-06-13 15:33:43 +02:00
local.get $0
call $~lib/typedarray/Uint8Array#get:buffer
local.tee $5
i32.const 0
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/dataview/DataView#constructor|trampoline
local.set $7
global.get $~lib/error
if
br $uncaughtError
end
local.get $7
local.set $7
local.get $2
call $~lib/rt/pure/__release
local.get $7
local.set $2
local.get $2
call $~lib/dataview/DataView#get:byteOffset
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 165
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $2
call $~lib/dataview/DataView#get:byteLength
i32.const 8
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 166
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $0
call $~lib/rt/pure/__release
local.get $1
call $~lib/rt/pure/__release
local.get $2
call $~lib/rt/pure/__release
local.get $5
call $~lib/rt/pure/__release
return
2019-06-05 23:15:39 +02:00
end
2019-06-13 15:33:43 +02:00
i32.const 416
i32.const 368
2019-06-11 12:52:16 +02:00
i32.const 1
2019-06-05 23:15:39 +02:00
i32.const 0
2019-06-13 15:33:43 +02:00
call $~lib/builtins/abort
unreachable
)
2019-06-13 15:33:43 +02:00
(func $start (; 66 ;) (type $FUNCSIG$v)
call $start:std/dataview
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/pure/markGray (; 67 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-06-05 23:15:39 +02:00
(local $1 i32)
local.get $0
i32.load offset=4
local.set $1
local.get $1
i32.const 1879048192
i32.and
i32.const 268435456
i32.ne
if
local.get $0
local.get $1
i32.const 1879048192
i32.const -1
i32.xor
i32.and
i32.const 268435456
i32.or
i32.store offset=4
local.get $0
i32.const 16
i32.add
i32.const 2
call $~lib/rt/__visit_members
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/pure/scanBlack (; 68 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-06-05 23:15:39 +02:00
local.get $0
local.get $0
i32.load offset=4
i32.const 1879048192
i32.const -1
i32.xor
i32.and
i32.const 0
i32.or
i32.store offset=4
local.get $0
i32.const 16
i32.add
i32.const 4
call $~lib/rt/__visit_members
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/pure/scan (; 69 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-06-05 23:15:39 +02:00
(local $1 i32)
local.get $0
i32.load offset=4
local.set $1
local.get $1
i32.const 1879048192
i32.and
i32.const 268435456
i32.eq
if
local.get $1
i32.const 268435455
i32.and
i32.const 0
i32.gt_u
if
local.get $0
call $~lib/rt/pure/scanBlack
else
local.get $0
local.get $1
i32.const 1879048192
i32.const -1
i32.xor
i32.and
i32.const 536870912
i32.or
i32.store offset=4
local.get $0
i32.const 16
i32.add
i32.const 3
call $~lib/rt/__visit_members
end
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/pure/collectWhite (; 70 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-06-05 23:15:39 +02:00
(local $1 i32)
local.get $0
i32.load offset=4
local.set $1
local.get $1
i32.const 1879048192
i32.and
i32.const 536870912
i32.eq
if (result i32)
local.get $1
i32.const -2147483648
i32.and
i32.eqz
else
i32.const 0
end
if
local.get $0
local.get $1
i32.const 1879048192
i32.const -1
i32.xor
i32.and
i32.const 0
i32.or
i32.store offset=4
local.get $0
i32.const 16
i32.add
i32.const 5
call $~lib/rt/__visit_members
global.get $~lib/rt/tlsf/ROOT
local.get $0
call $~lib/rt/tlsf/freeBlock
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/pure/__visit (; 71 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
2019-06-05 23:15:39 +02:00
(local $2 i32)
(local $3 i32)
local.get $0
global.get $~lib/heap/__heap_base
i32.lt_u
if
return
end
local.get $0
i32.const 16
i32.sub
local.set $2
block $break|0
block $case5|0
block $case4|0
block $case3|0
block $case2|0
block $case1|0
block $case0|0
local.get $1
local.set $3
local.get $3
i32.const 1
i32.eq
br_if $case0|0
local.get $3
i32.const 2
i32.eq
br_if $case1|0
local.get $3
i32.const 3
i32.eq
br_if $case2|0
local.get $3
i32.const 4
i32.eq
br_if $case3|0
local.get $3
i32.const 5
i32.eq
br_if $case4|0
br $case5|0
end
local.get $2
2019-06-11 12:52:16 +02:00
call $~lib/rt/pure/decrement
2019-06-13 15:33:43 +02:00
global.get $~lib/error
if
return
end
2019-06-05 23:15:39 +02:00
br $break|0
2019-06-11 12:52:16 +02:00
end
local.get $2
i32.load offset=4
i32.const 268435455
i32.and
i32.const 0
i32.gt_u
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 24
2019-06-11 12:52:16 +02:00
i32.const 75
i32.const 17
call $~lib/builtins/abort
2019-06-05 23:15:39 +02:00
unreachable
end
local.get $2
2019-06-11 12:52:16 +02:00
local.get $2
i32.load offset=4
i32.const 1
i32.sub
i32.store offset=4
local.get $2
call $~lib/rt/pure/markGray
2019-06-05 23:15:39 +02:00
br $break|0
end
local.get $2
2019-06-11 12:52:16 +02:00
call $~lib/rt/pure/scan
2019-06-05 23:15:39 +02:00
br $break|0
2019-06-11 12:52:16 +02:00
end
local.get $2
i32.load offset=4
local.set $3
local.get $3
i32.const 268435455
i32.const -1
i32.xor
i32.and
local.get $3
i32.const 1
i32.add
i32.const 268435455
i32.const -1
i32.xor
i32.and
i32.eq
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 24
2019-06-11 12:52:16 +02:00
i32.const 86
i32.const 6
call $~lib/builtins/abort
2019-06-05 23:15:39 +02:00
unreachable
end
local.get $2
2019-06-11 12:52:16 +02:00
local.get $3
i32.const 1
i32.add
i32.store offset=4
local.get $3
i32.const 1879048192
i32.and
i32.const 0
i32.ne
if
local.get $2
call $~lib/rt/pure/scanBlack
end
2019-06-05 23:15:39 +02:00
br $break|0
end
2019-06-11 12:52:16 +02:00
local.get $2
call $~lib/rt/pure/collectWhite
br $break|0
2019-06-05 23:15:39 +02:00
end
i32.const 0
i32.eqz
if
i32.const 0
2019-06-13 15:33:43 +02:00
i32.const 24
2019-06-05 23:15:39 +02:00
i32.const 97
i32.const 24
call $~lib/builtins/abort
unreachable
end
end
)
2019-06-13 15:33:43 +02:00
(func $~lib/rt/__visit_members (; 72 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
2019-06-05 23:15:39 +02:00
(local $2 i32)
2019-06-11 12:52:16 +02:00
block $switch$1$default
2019-06-13 15:33:43 +02:00
block $switch$1$case$6
block $switch$1$case$4
block $switch$1$case$2
local.get $0
i32.const 8
i32.sub
i32.load
br_table $switch$1$case$2 $switch$1$case$2 $switch$1$case$4 $switch$1$case$4 $switch$1$case$6 $switch$1$case$6 $switch$1$case$4 $switch$1$default
end
return
end
local.get $0
i32.load
local.tee $2
if
local.get $2
local.get $1
call $~lib/rt/pure/__visit
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
return
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
local.get $0
i32.load
local.tee $2
if
local.get $2
local.get $1
call $~lib/rt/pure/__visit
2019-06-05 23:15:39 +02:00
end
2019-06-13 15:33:43 +02:00
local.get $0
i32.load offset=4
local.tee $2
if
local.get $2
local.get $1
call $~lib/rt/pure/__visit
end
local.get $0
i32.load offset=8
local.tee $2
if
local.get $2
local.get $1
call $~lib/rt/pure/__visit
end
2019-06-11 12:52:16 +02:00
return
2019-06-05 23:15:39 +02:00
end
2019-06-11 12:52:16 +02:00
unreachable
2019-06-05 23:15:39 +02:00
)
2019-06-13 15:33:43 +02:00
(func $null (; 73 ;) (type $FUNCSIG$v)
)
)