assemblyscript/tests/runtime/untouched.wat

2283 lines
38 KiB
Plaintext
Raw Normal View History

2019-04-11 09:07:00 +02:00
(module
2019-04-15 11:32:20 +02:00
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
2019-04-15 11:32:20 +02:00
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$vi (func (param i32)))
2019-04-11 09:07:00 +02:00
(type $FUNCSIG$v (func))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
2019-04-11 09:07:00 +02:00
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(memory $0 1)
2019-04-16 17:33:33 +02:00
(data (i32.const 8) "\10\00\00\00\"\00\00\00\00\00\00\00\00\00\00\00a\00s\00s\00e\00m\00b\00l\00y\00/\00i\00n\00d\00e\00x\00.\00t\00s\00")
(data (i32.const 64) "\10\00\00\00\1c\00\00\00\00\00\00\00\00\00\00\00~\00l\00i\00b\00/\00m\00e\00m\00o\00r\00y\00.\00t\00s\00")
2019-04-11 09:07:00 +02:00
(table $0 1 funcref)
(elem (i32.const 0) $null)
2019-04-16 17:33:33 +02:00
(global $assembly/index/ROOT (mut i32) (i32.const 0))
(global $assembly/index/ACYCLIC_FLAG i32 (i32.const 0))
(global $assembly/index/CUR (mut i32) (i32.const 0))
(global $assembly/index/END (mut i32) (i32.const 0))
(global $assembly/index/ROOTS (mut i32) (i32.const 0))
(global $~lib/memory/HEAP_BASE i32 (i32.const 108))
2019-04-11 09:07:00 +02:00
(export "memory" (memory $0))
2019-04-16 17:33:33 +02:00
(export "__mm_allocate" (func $assembly/index/__mm_allocate))
(export "__mm_free" (func $assembly/index/__mm_free))
(export "__rt_visit" (func $assembly/index/__rt_visit))
(export "__gc_retain" (func $assembly/index/__gc_retain))
(export "__gc_release" (func $assembly/index/__gc_release))
(export "__gc_collect" (func $assembly/index/collectCycles))
(func $assembly/index/removeBlock (; 1 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
2019-04-15 11:32:20 +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 $10 i32)
(local $11 i32)
2019-04-15 11:32:20 +02:00
local.get $1
i32.load
local.set $2
local.get $2
i32.const 1
i32.and
i32.eqz
if
i32.const 0
i32.const 24
i32.const 297
2019-04-15 11:32:20 +02:00
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const -1
i32.xor
i32.and
local.set $3
local.get $3
i32.const 16
i32.ge_u
if (result i32)
local.get $3
i32.const 1073741824
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 299
2019-04-15 11:32:20 +02:00
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $3
2019-04-15 13:37:18 +02:00
i32.const 256
2019-04-15 11:32:20 +02:00
i32.lt_u
if
i32.const 0
local.set $4
local.get $3
2019-04-15 13:10:41 +02:00
i32.const 16
2019-04-15 11:32:20 +02:00
i32.div_u
local.set $5
else
block $assembly/index/fls<usize>|inlined.0 (result i32)
local.get $3
local.set $6
i32.const 31
local.get $6
i32.clz
i32.sub
end
2019-04-15 11:32:20 +02:00
local.set $4
local.get $3
local.get $4
2019-04-15 13:37:18 +02:00
i32.const 4
2019-04-15 11:32:20 +02:00
i32.sub
i32.shr_u
i32.const 1
2019-04-15 13:37:18 +02:00
i32.const 4
2019-04-15 11:32:20 +02:00
i32.shl
i32.xor
local.set $5
local.get $4
2019-04-15 13:37:18 +02:00
i32.const 8
2019-04-15 11:32:20 +02:00
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
i32.const 16
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 311
i32.const 13
call $~lib/builtins/abort
unreachable
end
2019-04-15 11:32:20 +02:00
local.get $1
i32.load offset=16
local.set $7
2019-04-15 11:32:20 +02:00
local.get $1
i32.load offset=20
local.set $8
local.get $7
2019-04-15 11:32:20 +02:00
if
local.get $7
local.get $8
2019-04-15 11:32:20 +02:00
i32.store offset=20
end
local.get $8
2019-04-15 11:32:20 +02:00
if
local.get $8
2019-04-15 11:32:20 +02:00
local.get $7
i32.store offset=16
end
local.get $1
block $assembly/index/getHead|inlined.1 (result i32)
2019-04-15 11:32:20 +02:00
local.get $0
local.set $10
2019-04-15 11:32:20 +02:00
local.get $4
local.set $9
2019-04-15 11:32:20 +02:00
local.get $5
local.set $6
local.get $10
local.get $9
i32.const 16
i32.mul
local.get $6
i32.add
i32.const 4
i32.mul
i32.add
i32.load offset=96
end
i32.eq
if
block $assembly/index/setHead|inlined.1
2019-04-15 11:32:20 +02:00
local.get $0
local.set $11
2019-04-15 11:32:20 +02:00
local.get $4
local.set $10
2019-04-15 11:32:20 +02:00
local.get $5
local.set $9
2019-04-15 11:32:20 +02:00
local.get $8
local.set $6
local.get $11
local.get $10
i32.const 16
i32.mul
local.get $9
i32.add
i32.const 4
i32.mul
i32.add
local.get $6
i32.store offset=96
end
local.get $8
i32.eqz
if
block $assembly/index/getSLMap|inlined.0 (result i32)
local.get $0
local.set $9
local.get $4
local.set $6
local.get $9
local.get $6
i32.const 2
i32.shl
i32.add
i32.load offset=4
end
local.set $6
block $assembly/index/setSLMap|inlined.1
local.get $0
local.set $11
local.get $4
local.set $10
local.get $6
i32.const 1
local.get $5
i32.shl
i32.const -1
i32.xor
i32.and
local.tee $6
local.set $9
local.get $11
local.get $10
i32.const 2
i32.shl
i32.add
local.get $9
i32.store offset=4
end
local.get $6
2019-04-15 11:32:20 +02:00
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
)
(func $assembly/index/insertBlock (; 2 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
2019-04-15 11:32:20 +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 $10 i32)
2019-04-16 17:33:33 +02:00
(local $11 i32)
(local $12 i32)
(local $13 i32)
2019-04-15 11:32:20 +02:00
local.get $1
i32.eqz
if
i32.const 0
i32.const 24
i32.const 226
2019-04-15 11:32:20 +02:00
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $1
i32.load
local.set $2
local.get $2
i32.const 1
i32.and
i32.eqz
if
i32.const 0
i32.const 24
i32.const 228
2019-04-15 11:32:20 +02:00
i32.const 13
call $~lib/builtins/abort
unreachable
end
block $assembly/index/getRight|inlined.0 (result i32)
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
end
2019-04-15 11:32:20 +02:00
local.set $4
local.get $4
i32.load
local.set $5
local.get $5
2019-04-15 11:32:20 +02:00
i32.const 1
i32.and
if
local.get $2
2019-04-16 17:33:33 +02:00
i32.const 3
i32.const -1
i32.xor
i32.and
2019-04-15 11:32:20 +02:00
i32.const 16
2019-04-16 17:33:33 +02:00
i32.add
local.get $5
2019-04-15 11:32:20 +02:00
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
local.set $3
local.get $3
2019-04-16 17:33:33 +02:00
i32.const 1073741824
i32.lt_u
if
local.get $0
local.get $4
2019-04-16 17:33:33 +02:00
call $assembly/index/removeBlock
local.get $1
local.get $2
i32.const 3
i32.and
local.get $3
2019-04-16 17:33:33 +02:00
i32.or
local.tee $2
i32.store
block $assembly/index/getRight|inlined.1 (result i32)
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
end
2019-04-16 17:33:33 +02:00
local.set $4
local.get $4
i32.load
local.set $5
2019-04-16 17:33:33 +02:00
end
2019-04-15 11:32:20 +02:00
end
local.get $2
i32.const 2
i32.and
if
block $assembly/index/getLeft|inlined.0 (result i32)
local.get $1
local.set $3
local.get $3
i32.const 4
i32.sub
i32.load
end
local.set $3
local.get $3
2019-04-15 11:32:20 +02:00
i32.load
local.set $6
local.get $6
i32.const 1
i32.and
i32.eqz
if
i32.const 0
i32.const 24
i32.const 249
2019-04-15 11:32:20 +02:00
i32.const 15
call $~lib/builtins/abort
unreachable
end
local.get $6
2019-04-16 17:33:33 +02:00
i32.const 3
i32.const -1
i32.xor
i32.and
2019-04-15 11:32:20 +02:00
i32.const 16
2019-04-16 17:33:33 +02:00
i32.add
2019-04-15 11:32:20 +02:00
local.get $2
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
2019-04-16 17:33:33 +02:00
local.set $7
local.get $7
i32.const 1073741824
i32.lt_u
if
local.get $0
local.get $3
2019-04-16 17:33:33 +02:00
call $assembly/index/removeBlock
local.get $3
2019-04-16 17:33:33 +02:00
local.get $6
i32.const 3
i32.and
local.get $7
i32.or
local.tee $2
i32.store
local.get $3
2019-04-16 17:33:33 +02:00
local.set $1
end
2019-04-15 11:32:20 +02:00
end
local.get $4
local.get $5
2019-04-15 11:32:20 +02:00
i32.const 2
i32.or
i32.store
local.get $2
i32.const 3
i32.const -1
i32.xor
i32.and
2019-04-16 17:33:33 +02:00
local.set $8
local.get $8
2019-04-15 11:32:20 +02:00
i32.const 16
i32.ge_u
if (result i32)
2019-04-16 17:33:33 +02:00
local.get $8
2019-04-15 11:32:20 +02:00
i32.const 1073741824
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 264
2019-04-15 11:32:20 +02:00
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $1
i32.const 16
i32.add
2019-04-16 17:33:33 +02:00
local.get $8
2019-04-15 11:32:20 +02:00
i32.add
local.get $4
2019-04-15 11:32:20 +02:00
i32.eq
i32.eqz
if
i32.const 0
i32.const 24
i32.const 265
2019-04-15 11:32:20 +02:00
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $4
2019-04-15 11:32:20 +02:00
i32.const 4
i32.sub
local.get $1
i32.store
2019-04-16 17:33:33 +02:00
local.get $8
2019-04-15 13:37:18 +02:00
i32.const 256
2019-04-15 11:32:20 +02:00
i32.lt_u
if
i32.const 0
2019-04-16 17:33:33 +02:00
local.set $9
local.get $8
2019-04-15 13:10:41 +02:00
i32.const 16
2019-04-15 11:32:20 +02:00
i32.div_u
2019-04-16 17:33:33 +02:00
local.set $10
2019-04-15 11:32:20 +02:00
else
block $assembly/index/fls<usize>|inlined.1 (result i32)
local.get $8
local.set $7
i32.const 31
local.get $7
i32.clz
i32.sub
end
2019-04-16 17:33:33 +02:00
local.set $9
local.get $8
local.get $9
2019-04-15 13:37:18 +02:00
i32.const 4
2019-04-15 11:32:20 +02:00
i32.sub
i32.shr_u
i32.const 1
2019-04-15 13:37:18 +02:00
i32.const 4
2019-04-15 11:32:20 +02:00
i32.shl
i32.xor
2019-04-16 17:33:33 +02:00
local.set $10
local.get $9
2019-04-15 13:37:18 +02:00
i32.const 8
2019-04-15 11:32:20 +02:00
i32.const 1
i32.sub
i32.sub
2019-04-16 17:33:33 +02:00
local.set $9
2019-04-15 11:32:20 +02:00
end
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
i32.const 24
i32.const 280
i32.const 13
call $~lib/builtins/abort
unreachable
end
block $assembly/index/getHead|inlined.2 (result i32)
local.get $0
local.set $3
local.get $9
local.set $6
local.get $10
local.set $7
local.get $3
local.get $6
i32.const 16
i32.mul
local.get $7
i32.add
i32.const 4
i32.mul
i32.add
i32.load offset=96
end
2019-04-16 17:33:33 +02:00
local.set $11
2019-04-15 11:32:20 +02:00
local.get $1
i32.const 0
i32.store offset=16
local.get $1
2019-04-16 17:33:33 +02:00
local.get $11
2019-04-15 11:32:20 +02:00
i32.store offset=20
2019-04-16 17:33:33 +02:00
local.get $11
2019-04-15 11:32:20 +02:00
if
2019-04-16 17:33:33 +02:00
local.get $11
2019-04-15 11:32:20 +02:00
local.get $1
i32.store offset=16
end
block $assembly/index/setHead|inlined.2
local.get $0
local.set $12
local.get $9
local.set $3
local.get $10
local.set $6
local.get $1
local.set $7
local.get $12
local.get $3
i32.const 16
i32.mul
local.get $6
i32.add
i32.const 4
i32.mul
i32.add
local.get $7
i32.store offset=96
end
2019-04-15 11:32:20 +02:00
local.get $0
local.get $0
i32.load
i32.const 1
2019-04-16 17:33:33 +02:00
local.get $9
2019-04-15 11:32:20 +02:00
i32.shl
i32.or
i32.store
block $assembly/index/setSLMap|inlined.2
block $assembly/index/getSLMap|inlined.1 (result i32)
local.get $0
local.set $13
local.get $9
local.set $12
local.get $13
local.get $12
i32.const 2
i32.shl
i32.add
i32.load offset=4
end
i32.const 1
local.get $10
i32.shl
i32.or
local.set $3
local.get $0
local.get $9
i32.const 2
i32.shl
i32.add
local.get $3
i32.store offset=4
end
2019-04-15 11:32:20 +02:00
)
(func $assembly/index/addMemory (; 3 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
2019-04-15 11:32:20 +02:00
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
2019-04-15 11:32:20 +02:00
local.get $1
local.get $2
i32.le_u
if (result i32)
local.get $1
2019-04-15 13:10:41 +02:00
i32.const 15
2019-04-15 11:32:20 +02:00
i32.and
i32.eqz
else
i32.const 0
end
if (result i32)
local.get $2
2019-04-15 13:10:41 +02:00
i32.const 15
2019-04-15 11:32:20 +02:00
i32.and
i32.eqz
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 411
2019-04-15 11:32:20 +02:00
i32.const 4
call $~lib/builtins/abort
unreachable
end
block $assembly/index/getTail|inlined.0 (result i32)
local.get $0
local.set $3
local.get $3
i32.load offset=1568
end
2019-04-15 11:32:20 +02:00
local.set $4
i32.const 0
local.set $5
local.get $4
2019-04-15 11:32:20 +02:00
if
2019-04-15 13:10:41 +02:00
local.get $1
local.get $4
2019-04-15 13:10:41 +02:00
i32.const 16
i32.add
i32.ge_u
i32.eqz
if
i32.const 0
i32.const 24
i32.const 421
2019-04-15 13:10:41 +02:00
i32.const 15
call $~lib/builtins/abort
unreachable
end
2019-04-15 11:32:20 +02:00
local.get $1
i32.const 16
i32.sub
local.get $4
2019-04-15 11:32:20 +02:00
i32.eq
if
local.get $1
i32.const 16
i32.sub
local.set $1
local.get $4
2019-04-15 11:32:20 +02:00
i32.load
local.set $5
2019-04-15 11:32:20 +02:00
else
2019-04-15 13:10:41 +02:00
nop
2019-04-15 11:32:20 +02:00
end
else
local.get $1
local.get $0
2019-04-16 17:33:33 +02:00
i32.const 1572
2019-04-15 11:32:20 +02:00
i32.add
i32.ge_u
i32.eqz
if
i32.const 0
i32.const 24
i32.const 433
2019-04-15 11:32:20 +02:00
i32.const 4
call $~lib/builtins/abort
unreachable
end
end
local.get $2
local.get $1
i32.sub
local.set $6
local.get $6
2019-04-15 11:32:20 +02:00
i32.const 16
i32.const 16
i32.add
i32.const 16
i32.add
i32.lt_u
if
i32.const 0
return
end
local.get $6
2019-04-15 11:32:20 +02:00
i32.const 2
i32.const 16
i32.mul
i32.sub
local.set $7
local.get $1
local.set $8
local.get $8
2019-04-15 11:32:20 +02:00
local.get $7
i32.const 1
i32.or
local.get $5
2019-04-15 11:32:20 +02:00
i32.const 2
i32.and
i32.or
i32.store
local.get $8
2019-04-15 11:32:20 +02:00
i32.const 0
i32.store offset=16
local.get $8
2019-04-15 11:32:20 +02:00
i32.const 0
i32.store offset=20
local.get $1
local.get $6
2019-04-15 11:32:20 +02:00
i32.add
i32.const 16
i32.sub
local.set $4
local.get $4
2019-04-15 11:32:20 +02:00
i32.const 0
i32.const 2
i32.or
i32.store
block $assembly/index/setTail|inlined.1
local.get $0
local.set $9
local.get $4
local.set $3
local.get $9
local.get $3
i32.store offset=1568
end
2019-04-15 11:32:20 +02:00
local.get $0
local.get $8
2019-04-16 17:33:33 +02:00
call $assembly/index/insertBlock
2019-04-15 11:32:20 +02:00
i32.const 1
)
(func $assembly/index/initialize (; 4 ;) (type $FUNCSIG$i) (result i32)
2019-04-15 11:32:20 +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)
2019-04-15 11:32:20 +02:00
global.get $~lib/memory/HEAP_BASE
2019-04-15 13:10:41 +02:00
i32.const 15
2019-04-15 11:32:20 +02:00
i32.add
2019-04-15 13:10:41 +02:00
i32.const 15
2019-04-15 11:32:20 +02:00
i32.const -1
i32.xor
i32.and
local.set $0
current_memory
local.set $1
local.get $0
2019-04-16 17:33:33 +02:00
i32.const 1572
2019-04-15 11:32:20 +02:00
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
grow_memory
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
block $assembly/index/setTail|inlined.0
local.get $3
local.set $5
i32.const 0
local.set $4
local.get $5
local.get $4
i32.store offset=1568
end
2019-04-15 11:32:20 +02:00
block $break|0
i32.const 0
local.set $4
loop $repeat|0
local.get $4
2019-04-16 17:33:33 +02:00
i32.const 23
2019-04-15 11:32:20 +02:00
i32.lt_u
i32.eqz
br_if $break|0
block
block $assembly/index/setSLMap|inlined.0
local.get $3
local.set $7
local.get $4
local.set $6
i32.const 0
local.set $5
local.get $7
local.get $6
i32.const 2
i32.shl
i32.add
local.get $5
i32.store offset=4
end
2019-04-15 11:32:20 +02:00
block $break|1
i32.const 0
local.set $5
loop $repeat|1
local.get $5
2019-04-15 13:37:18 +02:00
i32.const 16
2019-04-15 11:32:20 +02:00
i32.lt_u
i32.eqz
br_if $break|1
block $assembly/index/setHead|inlined.0
local.get $3
local.set $9
local.get $4
local.set $8
local.get $5
local.set $7
i32.const 0
local.set $6
local.get $9
local.get $8
i32.const 16
i32.mul
local.get $7
i32.add
i32.const 4
i32.mul
i32.add
local.get $6
i32.store offset=96
end
2019-04-15 11:32:20 +02:00
local.get $5
i32.const 1
i32.add
local.set $5
br $repeat|1
unreachable
end
unreachable
end
end
local.get $4
i32.const 1
i32.add
local.set $4
br $repeat|0
unreachable
end
unreachable
end
local.get $3
local.get $0
2019-04-16 17:33:33 +02:00
i32.const 1572
2019-04-15 11:32:20 +02:00
i32.add
2019-04-15 13:10:41 +02:00
i32.const 15
2019-04-15 11:32:20 +02:00
i32.add
2019-04-15 13:10:41 +02:00
i32.const 15
2019-04-15 11:32:20 +02:00
i32.const -1
i32.xor
i32.and
current_memory
i32.const 16
i32.shl
2019-04-16 17:33:33 +02:00
call $assembly/index/addMemory
2019-04-15 11:32:20 +02:00
drop
local.get $3
)
(func $assembly/index/searchBlock (; 5 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
2019-04-15 11:32:20 +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 $10 i32)
2019-04-15 11:32:20 +02:00
local.get $1
2019-04-15 13:37:18 +02:00
i32.const 256
2019-04-15 11:32:20 +02:00
i32.lt_u
if
i32.const 0
local.set $2
local.get $1
2019-04-15 13:10:41 +02:00
i32.const 16
2019-04-15 11:32:20 +02:00
i32.div_u
local.set $3
else
local.get $1
2019-04-16 17:33:33 +02:00
i32.const 536870912
i32.lt_u
if (result i32)
local.get $1
i32.const 1
block $assembly/index/fls<usize>|inlined.2 (result i32)
local.get $1
local.set $4
i32.const 31
local.get $4
i32.clz
i32.sub
end
2019-04-16 17:33:33 +02:00
i32.const 4
i32.sub
i32.shl
i32.add
i32.const 1
i32.sub
else
local.get $1
end
local.set $4
block $assembly/index/fls<usize>|inlined.3 (result i32)
local.get $4
local.set $5
i32.const 31
local.get $5
i32.clz
i32.sub
end
2019-04-15 11:32:20 +02:00
local.set $2
2019-04-16 17:33:33 +02:00
local.get $4
2019-04-15 11:32:20 +02:00
local.get $2
2019-04-15 13:37:18 +02:00
i32.const 4
2019-04-15 11:32:20 +02:00
i32.sub
i32.shr_u
i32.const 1
2019-04-15 13:37:18 +02:00
i32.const 4
2019-04-15 11:32:20 +02:00
i32.shl
i32.xor
local.set $3
local.get $2
2019-04-15 13:37:18 +02:00
i32.const 8
2019-04-15 11:32:20 +02:00
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
i32.const 24
i32.const 355
i32.const 13
call $~lib/builtins/abort
unreachable
end
block $assembly/index/getSLMap|inlined.2 (result i32)
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
end
2019-04-15 11:32:20 +02:00
i32.const 0
i32.const -1
i32.xor
local.get $3
i32.shl
i32.and
local.set $6
local.get $6
2019-04-15 11:32:20 +02:00
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
2019-04-16 17:33:33 +02:00
local.set $4
local.get $4
2019-04-15 11:32:20 +02:00
i32.eqz
if
i32.const 0
local.set $7
2019-04-15 11:32:20 +02:00
else
block $assembly/index/ffs<usize>|inlined.0 (result i32)
local.get $4
local.set $5
local.get $5
i32.ctz
end
2019-04-15 11:32:20 +02:00
local.set $2
block $assembly/index/getSLMap|inlined.3 (result i32)
local.get $0
local.set $8
local.get $2
local.set $5
local.get $8
local.get $5
i32.const 2
i32.shl
i32.add
i32.load offset=4
end
local.set $6
local.get $6
2019-04-15 11:32:20 +02:00
i32.eqz
if
i32.const 0
i32.const 24
i32.const 368
2019-04-15 11:32:20 +02:00
i32.const 17
call $~lib/builtins/abort
unreachable
end
block $assembly/index/getHead|inlined.3 (result i32)
local.get $0
local.set $9
local.get $2
local.set $8
block $assembly/index/ffs<u32>|inlined.0 (result i32)
local.get $6
local.set $10
local.get $10
i32.ctz
end
local.set $5
local.get $9
local.get $8
i32.const 16
i32.mul
local.get $5
i32.add
i32.const 4
i32.mul
i32.add
i32.load offset=96
end
local.set $7
end
else
block $assembly/index/getHead|inlined.4 (result i32)
2019-04-15 11:32:20 +02:00
local.get $0
local.set $8
2019-04-15 11:32:20 +02:00
local.get $2
local.set $5
block $assembly/index/ffs<u32>|inlined.1 (result i32)
local.get $6
local.set $9
local.get $9
i32.ctz
end
local.set $4
local.get $8
2019-04-16 17:33:33 +02:00
local.get $5
i32.const 16
i32.mul
local.get $4
i32.add
i32.const 4
i32.mul
i32.add
i32.load offset=96
2019-04-15 11:32:20 +02:00
end
local.set $7
2019-04-15 11:32:20 +02:00
end
local.get $7
2019-04-15 11:32:20 +02:00
)
(func $assembly/index/growMemory (; 6 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
2019-04-15 11:32:20 +02:00
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
current_memory
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
grow_memory
i32.const 0
i32.lt_s
if
local.get $3
grow_memory
i32.const 0
i32.lt_s
if
unreachable
end
end
current_memory
local.set $7
local.get $0
local.get $2
i32.const 16
i32.shl
local.get $7
i32.const 16
i32.shl
2019-04-16 17:33:33 +02:00
call $assembly/index/addMemory
2019-04-15 11:32:20 +02:00
drop
)
(func $assembly/index/prepareBlock (; 7 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
2019-04-15 11:32:20 +02:00
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $1
i32.load
local.set $3
local.get $3
i32.const 1
i32.and
i32.const 0
i32.ne
if (result i32)
local.get $2
2019-04-15 13:10:41 +02:00
i32.const 15
2019-04-15 11:32:20 +02:00
i32.and
i32.eqz
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 383
2019-04-15 11:32:20 +02:00
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
local.get $1
2019-04-16 17:33:33 +02:00
call $assembly/index/removeBlock
2019-04-15 11:32:20 +02:00
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 16
i32.const 16
i32.add
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
2019-04-16 17:33:33 +02:00
call $assembly/index/insertBlock
2019-04-15 11:32:20 +02:00
else
local.get $1
local.get $3
i32.const 1
i32.const -1
i32.xor
i32.and
i32.store
block $assembly/index/getRight|inlined.3 (result i32)
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
end
block $assembly/index/getRight|inlined.2 (result i32)
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
end
2019-04-15 11:32:20 +02:00
i32.load
i32.const 2
i32.const -1
i32.xor
i32.and
i32.store
end
local.get $1
i32.const 16
i32.add
)
(func $assembly/index/__mm_allocate (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-04-15 11:32:20 +02:00
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
2019-04-16 17:33:33 +02:00
global.get $assembly/index/ROOT
2019-04-15 11:32:20 +02:00
local.set $1
local.get $1
i32.eqz
if
2019-04-16 17:33:33 +02:00
call $assembly/index/initialize
2019-04-15 11:32:20 +02:00
local.tee $1
2019-04-16 17:33:33 +02:00
global.set $assembly/index/ROOT
2019-04-15 11:32:20 +02:00
end
local.get $0
i32.const 1073741824
2019-04-16 17:33:33 +02:00
i32.ge_u
2019-04-15 11:32:20 +02:00
if
2019-04-16 17:33:33 +02:00
i32.const 0
i32.const 24
i32.const 507
2019-04-16 17:33:33 +02:00
i32.const 29
call $~lib/builtins/abort
2019-04-15 11:32:20 +02:00
unreachable
end
local.get $0
2019-04-15 13:10:41 +02:00
i32.const 15
2019-04-15 11:32:20 +02:00
i32.add
2019-04-15 13:10:41 +02:00
i32.const 15
2019-04-15 11:32:20 +02:00
i32.const -1
i32.xor
i32.and
local.tee $2
i32.const 16
local.tee $3
local.get $2
local.get $3
i32.gt_u
select
local.set $0
local.get $1
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/searchBlock
2019-04-15 11:32:20 +02:00
local.set $4
local.get $4
i32.eqz
if
local.get $1
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/growMemory
2019-04-15 11:32:20 +02:00
local.get $1
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/searchBlock
2019-04-15 11:32:20 +02:00
local.set $4
local.get $4
i32.eqz
if
i32.const 0
i32.const 24
i32.const 513
2019-04-15 11:32:20 +02:00
i32.const 15
call $~lib/builtins/abort
unreachable
end
end
local.get $4
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
local.get $0
i32.ge_u
i32.eqz
if
i32.const 0
i32.const 24
i32.const 515
2019-04-15 11:32:20 +02:00
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $4
i32.const 0
i32.store offset=4
local.get $4
i32.const 0
i32.store offset=8
local.get $4
local.get $0
i32.store offset=12
local.get $1
local.get $4
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/prepareBlock
2019-04-15 11:32:20 +02:00
)
(func $assembly/index/freeBlock (; 9 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
2019-04-15 11:32:20 +02:00
(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
i32.const 24
i32.const 492
2019-04-15 13:10:41 +02:00
i32.const 2
2019-04-15 11:32:20 +02:00
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
2019-04-16 17:33:33 +02:00
call $assembly/index/insertBlock
2019-04-15 11:32:20 +02:00
)
(func $assembly/index/__mm_free (; 10 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-04-15 11:32:20 +02:00
(local $1 i32)
local.get $0
if
local.get $0
2019-04-15 13:10:41 +02:00
i32.const 15
2019-04-15 11:32:20 +02:00
i32.and
i32.eqz
i32.eqz
if
i32.const 0
i32.const 24
i32.const 526
2019-04-15 11:32:20 +02:00
i32.const 4
call $~lib/builtins/abort
unreachable
end
2019-04-16 17:33:33 +02:00
global.get $assembly/index/ROOT
2019-04-15 11:32:20 +02:00
local.set $1
local.get $1
if
local.get $1
local.get $0
i32.const 16
i32.sub
2019-04-16 17:33:33 +02:00
call $assembly/index/freeBlock
2019-04-15 11:32:20 +02:00
end
end
2019-04-11 09:07:00 +02:00
)
(func $assembly/index/__rt_visit_members (; 11 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
2019-04-11 09:07:00 +02:00
unreachable
)
(func $assembly/index/__rt_flags (; 12 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-04-11 09:07:00 +02:00
unreachable
)
(func $~lib/memory/memory.allocate (; 13 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
2019-04-11 09:07:00 +02:00
i32.const 0
2019-04-16 17:33:33 +02:00
i32.const 80
2019-04-11 09:07:00 +02:00
i32.const 61
i32.const 9
call $~lib/builtins/abort
unreachable
)
(func $~lib/memory/memory.copy (; 14 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
2019-04-11 09:07:00 +02:00
(local $3 i32)
(local $4 i32)
(local $5 i32)
block $~lib/util/memory/memmove|inlined.0
local.get $0
local.get $1
i32.eq
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $0
local.get $1
i32.lt_u
if
local.get $1
i32.const 7
i32.and
local.get $0
i32.const 7
i32.and
i32.eq
if
block $break|0
loop $continue|0
local.get $0
i32.const 7
i32.and
if
block
local.get $2
i32.eqz
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $2
i32.const 1
i32.sub
local.set $2
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
br $continue|0
end
end
end
block $break|1
loop $continue|1
local.get $2
i32.const 8
i32.ge_u
if
block
local.get $0
local.get $1
i64.load
i64.store
local.get $2
i32.const 8
i32.sub
local.set $2
local.get $0
i32.const 8
i32.add
local.set $0
local.get $1
i32.const 8
i32.add
local.set $1
end
br $continue|1
end
end
end
end
block $break|2
loop $continue|2
local.get $2
if
block
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
end
br $continue|2
end
end
end
else
local.get $1
i32.const 7
i32.and
local.get $0
i32.const 7
i32.and
i32.eq
if
block $break|3
loop $continue|3
local.get $0
local.get $2
i32.add
i32.const 7
i32.and
if
block
local.get $2
i32.eqz
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $0
local.get $2
i32.const 1
i32.sub
local.tee $2
i32.add
local.get $1
local.get $2
i32.add
i32.load8_u
i32.store8
end
br $continue|3
end
end
end
block $break|4
loop $continue|4
local.get $2
i32.const 8
i32.ge_u
if
block
local.get $2
i32.const 8
i32.sub
local.set $2
local.get $0
local.get $2
i32.add
local.get $1
local.get $2
i32.add
i64.load
i64.store
end
br $continue|4
end
end
end
end
block $break|5
loop $continue|5
local.get $2
if
local.get $0
local.get $2
i32.const 1
i32.sub
local.tee $2
i32.add
local.get $1
local.get $2
i32.add
i32.load8_u
i32.store8
br $continue|5
end
end
end
end
end
)
(func $assembly/index/growRoots (; 15 ;) (type $FUNCSIG$v)
2019-04-11 09:07:00 +02:00
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
2019-04-16 17:33:33 +02:00
global.get $assembly/index/ROOTS
2019-04-11 09:07:00 +02:00
local.set $0
2019-04-16 17:33:33 +02:00
global.get $assembly/index/CUR
2019-04-11 09:07:00 +02:00
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
call $~lib/memory/memory.allocate
local.set $5
local.get $5
local.get $0
local.get $1
call $~lib/memory/memory.copy
local.get $5
2019-04-16 17:33:33 +02:00
global.set $assembly/index/ROOTS
2019-04-11 09:07:00 +02:00
local.get $5
local.get $1
i32.add
2019-04-16 17:33:33 +02:00
global.set $assembly/index/CUR
2019-04-11 09:07:00 +02:00
local.get $5
local.get $4
i32.add
2019-04-16 17:33:33 +02:00
global.set $assembly/index/END
2019-04-11 09:07:00 +02:00
)
(func $assembly/index/appendRoot (; 16 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-04-11 09:07:00 +02:00
(local $1 i32)
2019-04-16 17:33:33 +02:00
global.get $assembly/index/CUR
2019-04-11 09:07:00 +02:00
local.set $1
local.get $1
2019-04-16 17:33:33 +02:00
global.get $assembly/index/END
2019-04-11 09:07:00 +02:00
i32.ge_u
if
2019-04-16 17:33:33 +02:00
call $assembly/index/growRoots
global.get $assembly/index/CUR
2019-04-11 09:07:00 +02:00
local.set $1
end
local.get $1
local.get $0
i32.store
local.get $1
i32.const 1
i32.add
2019-04-16 17:33:33 +02:00
global.set $assembly/index/CUR
2019-04-11 09:07:00 +02:00
)
(func $assembly/index/decrement (; 17 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-04-11 09:07:00 +02:00
(local $1 i32)
(local $2 i32)
local.get $0
i32.load offset=4
local.set $1
local.get $1
i32.const 268435455
i32.and
local.set $2
local.get $2
i32.const 1
i32.eq
if
local.get $0
i32.const 1
2019-04-16 17:33:33 +02:00
call $assembly/index/__rt_visit_members
2019-04-11 09:07:00 +02:00
local.get $1
i32.const -2147483648
i32.and
i32.eqz
if
2019-04-16 17:33:33 +02:00
global.get $assembly/index/ROOT
2019-04-11 09:07:00 +02:00
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/freeBlock
2019-04-11 09:07:00 +02:00
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
i32.const 24
i32.const 649
2019-04-11 09:07:00 +02:00
i32.const 15
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.load offset=8
2019-04-16 17:33:33 +02:00
call $assembly/index/__rt_flags
global.get $assembly/index/ACYCLIC_FLAG
2019-04-11 09:07:00 +02:00
i32.and
i32.eqz
if
local.get $0
i32.const -2147483648
i32.const 805306368
i32.or
local.get $2
i32.const 1
i32.sub
i32.or
i32.store offset=4
local.get $1
i32.const -2147483648
i32.and
i32.eqz
if
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/appendRoot
2019-04-11 09:07:00 +02:00
end
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
)
(func $assembly/index/markGray (; 18 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-04-11 09:07:00 +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 2
2019-04-16 17:33:33 +02:00
call $assembly/index/__rt_visit_members
2019-04-11 09:07:00 +02:00
end
)
(func $assembly/index/scanBlack (; 19 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-04-11 09:07:00 +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 4
2019-04-16 17:33:33 +02:00
call $assembly/index/__rt_visit_members
2019-04-11 09:07:00 +02:00
)
(func $assembly/index/scan (; 20 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-04-11 09:07:00 +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
2019-04-16 17:33:33 +02:00
call $assembly/index/scanBlack
2019-04-11 09:07:00 +02:00
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 3
2019-04-16 17:33:33 +02:00
call $assembly/index/__rt_visit_members
2019-04-11 09:07:00 +02:00
end
end
)
(func $assembly/index/collectWhite (; 21 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-04-11 09:07:00 +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
i32.const 5
2019-04-16 17:33:33 +02:00
call $assembly/index/__rt_visit_members
2019-04-11 09:07:00 +02:00
end
2019-04-16 17:33:33 +02:00
global.get $assembly/index/ROOT
2019-04-15 11:32:20 +02:00
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/freeBlock
2019-04-11 09:07:00 +02:00
)
(func $assembly/index/__rt_visit (; 22 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
2019-04-11 09:07:00 +02:00
(local $2 i32)
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 $2
local.get $2
i32.const 1
i32.eq
br_if $case0|0
local.get $2
i32.const 2
i32.eq
br_if $case1|0
local.get $2
i32.const 3
i32.eq
br_if $case2|0
local.get $2
i32.const 4
i32.eq
br_if $case3|0
local.get $2
i32.const 5
i32.eq
br_if $case4|0
br $case5|0
end
block
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/decrement
2019-04-11 09:07:00 +02:00
br $break|0
unreachable
end
unreachable
end
block
local.get $0
i32.load offset=4
i32.const 268435455
i32.and
i32.const 0
i32.gt_u
i32.eqz
if
i32.const 0
i32.const 24
i32.const 604
2019-04-11 09:07:00 +02:00
i32.const 17
call $~lib/builtins/abort
unreachable
end
local.get $0
local.get $0
i32.load offset=4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/markGray
2019-04-11 09:07:00 +02:00
br $break|0
unreachable
end
unreachable
end
block
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/scan
2019-04-11 09:07:00 +02:00
br $break|0
unreachable
end
unreachable
end
block
local.get $0
i32.load offset=4
local.set $2
local.get $2
i32.const 268435455
i32.const -1
i32.xor
i32.and
local.get $2
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 615
2019-04-11 09:07:00 +02:00
i32.const 6
call $~lib/builtins/abort
unreachable
end
local.get $0
local.get $2
i32.const 1
i32.add
i32.store offset=4
local.get $2
i32.const 1879048192
i32.and
i32.const 0
i32.ne
if
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/scanBlack
2019-04-11 09:07:00 +02:00
end
br $break|0
unreachable
end
unreachable
end
block
local.get $0
2019-04-16 17:33:33 +02:00
call $assembly/index/collectWhite
2019-04-11 09:07:00 +02:00
br $break|0
unreachable
end
unreachable
end
i32.const 0
i32.eqz
if
i32.const 0
i32.const 24
i32.const 626
2019-04-11 09:07:00 +02:00
i32.const 24
call $~lib/builtins/abort
unreachable
end
end
)
(func $assembly/index/increment (; 23 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-04-11 09:07:00 +02:00
(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 633
2019-04-11 09:07:00 +02:00
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=4
)
(func $assembly/index/__gc_retain (; 24 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-04-15 11:32:20 +02:00
local.get $0
if
local.get $0
i32.const 16
i32.sub
2019-04-16 17:33:33 +02:00
call $assembly/index/increment
2019-04-15 11:32:20 +02:00
end
)
(func $assembly/index/__gc_release (; 25 ;) (type $FUNCSIG$vi) (param $0 i32)
2019-04-15 11:32:20 +02:00
local.get $0
if
local.get $0
i32.const 16
i32.sub
2019-04-16 17:33:33 +02:00
call $assembly/index/decrement
2019-04-15 11:32:20 +02:00
end
)
(func $assembly/index/collectCycles (; 26 ;) (type $FUNCSIG$v)
2019-04-11 09:07:00 +02:00
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
2019-04-16 17:33:33 +02:00
global.get $assembly/index/ROOTS
2019-04-11 09:07:00 +02:00
local.set $0
local.get $0
local.set $1
block $break|0
block
local.get $1
local.set $2
2019-04-16 17:33:33 +02:00
global.get $assembly/index/CUR
2019-04-11 09:07:00 +02:00
local.set $3
end
loop $repeat|0
local.get $2
local.get $3
i32.lt_u
i32.eqz
br_if $break|0
block
local.get $2
i32.load
local.set $4
local.get $4
i32.load offset=4
local.set $5
local.get $5
i32.const 1879048192
i32.and
i32.const 805306368
i32.eq
if (result i32)
local.get $5
i32.const 268435455
i32.and
i32.const 0
i32.gt_u
else
i32.const 0
end
if
local.get $4
2019-04-16 17:33:33 +02:00
call $assembly/index/markGray
2019-04-11 09:07:00 +02:00
local.get $1
local.get $4
i32.store
local.get $1
i32.const 4
i32.add
local.set $1
else
local.get $5
i32.const 1879048192
i32.and
i32.const 0
i32.eq
if (result i32)
local.get $5
i32.const 268435455
i32.and
i32.eqz
else
i32.const 0
end
if
2019-04-16 17:33:33 +02:00
global.get $assembly/index/ROOT
2019-04-11 09:07:00 +02:00
local.get $4
2019-04-16 17:33:33 +02:00
call $assembly/index/freeBlock
2019-04-11 09:07:00 +02:00
else
local.get $4
local.get $5
i32.const -2147483648
i32.const -1
i32.xor
i32.and
i32.store offset=4
end
end
end
local.get $2
i32.const 4
i32.add
local.set $2
br $repeat|0
unreachable
end
unreachable
end
local.get $1
2019-04-16 17:33:33 +02:00
global.set $assembly/index/CUR
2019-04-11 09:07:00 +02:00
block $break|1
local.get $0
local.set $3
loop $repeat|1
local.get $3
local.get $1
i32.lt_u
i32.eqz
br_if $break|1
local.get $3
i32.load
2019-04-16 17:33:33 +02:00
call $assembly/index/scan
2019-04-11 09:07:00 +02:00
local.get $3
i32.const 4
i32.add
local.set $3
br $repeat|1
unreachable
end
unreachable
end
block $break|2
local.get $0
local.set $3
loop $repeat|2
local.get $3
local.get $1
i32.lt_u
i32.eqz
br_if $break|2
block
local.get $3
i32.load
local.set $2
local.get $2
local.get $2
i32.load offset=4
i32.const -2147483648
i32.const -1
i32.xor
i32.and
i32.store offset=4
local.get $2
2019-04-16 17:33:33 +02:00
call $assembly/index/collectWhite
2019-04-11 09:07:00 +02:00
end
local.get $3
i32.const 4
i32.add
local.set $3
br $repeat|2
unreachable
end
unreachable
end
local.get $0
2019-04-16 17:33:33 +02:00
global.set $assembly/index/CUR
2019-04-11 09:07:00 +02:00
)
(func $null (; 27 ;) (type $FUNCSIG$v)
2019-04-11 09:07:00 +02:00
)
)