2018-02-12 19:17:50 +01:00
|
|
|
(module
|
2018-03-14 00:27:35 +01:00
|
|
|
(type $ii (func (param i32) (result i32)))
|
2018-02-12 19:17:50 +01:00
|
|
|
(type $iiv (func (param i32 i32)))
|
|
|
|
(type $iiiv (func (param i32 i32 i32)))
|
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
|
|
(type $iiii (func (param i32 i32 i32) (result i32)))
|
|
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
|
|
(type $iv (func (param i32)))
|
2018-04-03 23:56:48 +02:00
|
|
|
(global $~lib/allocator/tlsf/ROOT (mut i32) (i32.const 0))
|
2018-06-09 02:27:10 +02:00
|
|
|
(global $HEAP_BASE i32 (i32.const 8))
|
2018-06-28 01:44:32 +02:00
|
|
|
(memory $0 0)
|
2018-04-03 23:56:48 +02:00
|
|
|
(export "allocate_memory" (func $~lib/allocator/tlsf/allocate_memory))
|
|
|
|
(export "free_memory" (func $~lib/allocator/tlsf/free_memory))
|
2018-02-12 19:17:50 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Root#set:tailRef (; 0 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:181:30
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:181:43
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 2912)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:181:46
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Root#setSLMap (; 1 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:145:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store offset=4
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:145:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:145:41
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.shl
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:145:46
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.const 2)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:145:49
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Root#setHead (; 2 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:169:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store offset=96
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:170:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:170:32
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.shl
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:170:33
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.shl
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:170:38
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.const 5)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:170:48
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:170:61
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.const 2)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:171:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Block#get:right (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:94:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:92:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:92:34
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:92:47
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:92:48
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const -4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/fls<usize> (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:430:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.sub
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:430:9
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 31)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:430:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.clz
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:430:22
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Root#getHead (; 5 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:162:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load offset=96
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:161:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:161:32
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.shl
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:161:33
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.shl
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:161:38
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.const 5)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:161:48
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:161:61
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.const 2)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Root#getSLMap (; 6 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:139:68
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load offset=4
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:139:21
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:139:47
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.shl
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:139:52
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.const 2)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Root#remove (; 7 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-02-12 19:17:50 +01:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(set_local $3
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:264:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:264:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.lt_u
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:259:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:259:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:257:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const -4)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:264:15
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 256)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:264:24
|
2018-02-12 19:17:50 +01:00
|
|
|
(block (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:266:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $4
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:266:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.div_u
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:266:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:266:24
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:265:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:267:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(block (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:269:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $4
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:269:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.xor
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:269:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shr_u
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:269:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:269:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.sub
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:268:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $3
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:268:11
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/fls<usize>
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:268:22
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:269:32
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.sub
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:270:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:270:12
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 7)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:275:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:275:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:276:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:274:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $5
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:274:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:276:14
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $5)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:276:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:277:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:277:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:277:14
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:277:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:280:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:280:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.eq
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:280:22
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#getHead
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:280:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:280:30
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:280:34
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:280:39
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:281:11
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#setHead
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:281:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:281:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:281:23
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $4)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:281:27
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:284:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:284:10
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.eqz
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:284:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:284:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:286:13
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#setSLMap
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:286:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:286:22
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:286:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $1
|
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:285:25
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#getSLMap
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:285:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:285:34
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:286:35
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.xor
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:286:36
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shl
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:286:37
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:286:42
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:289:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:289:12
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.eqz
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:289:13
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:289:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(i32.and
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:289:34
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.xor
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:289:35
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shl
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:289:36
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:289:41
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Root#insert (; 8 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-02-12 19:17:50 +01:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:190:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:190:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:201:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:201:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:198:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $5
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:198:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:197:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $4
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:197:23
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Block#get:right
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:197:30
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:201:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:201:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:202:11
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#remove
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:202:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:202:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:203:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:203:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:203:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:203:33
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:203:46
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:203:47
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $5)
|
|
|
|
(i32.const -4)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:203:33
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:205:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $5
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:205:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:204:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $4
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:204:14
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Block#get:right
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:210:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:210:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:210:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:210:31
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:212:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $3
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:212:21
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:211:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $1
|
|
|
|
(i32.load
|
|
|
|
(i32.sub
|
2018-05-06 01:32:58 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:211:31
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:214:11
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#remove
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:214:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:214:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:215:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:215:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:215:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:215:31
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:215:44
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:215:45
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
(i32.const -4)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:215:31
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:217:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:217:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:221:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
|
|
|
(get_local $4)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:221:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.or
|
|
|
|
(get_local $5)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:221:29
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-05-06 01:32:58 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:222:24
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $4)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-05-06 01:32:58 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:222:17
|
|
|
|
(get_local $1)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:240:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $4
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:240:20
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#getHead
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:240:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:230:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:230:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.lt_u
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:225:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $3
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:225:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const -4)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:230:15
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 256)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:230:24
|
2018-02-12 19:17:50 +01:00
|
|
|
(block (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:232:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $3
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:232:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.div_u
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:232:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:232:24
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:231:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:233:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(block (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:235:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $3
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:235:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.xor
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:235:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shr_u
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:235:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:235:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.sub
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:234:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:234:11
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/fls<usize>
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:234:22
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:235:32
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.sub
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:236:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:236:12
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 7)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:240:32
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:241:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:241:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:242:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:242:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:243:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:243:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $4)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:243:14
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $4)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:243:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:244:9
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#setHead
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:244:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:244:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:244:21
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:244:25
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:247:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:247:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shl
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:247:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:247:24
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:248:9
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#setSLMap
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:248:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:248:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:248:22
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.or
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:248:27
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#getSLMap
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:248:22
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:248:36
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:248:42
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shl
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:248:43
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:248:48
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Root#addMemory (; 9 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-02-12 19:17:50 +01:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:383:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:381:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 2912)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 02:27:10 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:383:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:387:10
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.eq
|
|
|
|
(i32.sub
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:387:18
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:387:32
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:387:41
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:388:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $1
|
|
|
|
(i32.sub
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:388:17
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:389:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $4
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:389:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:398:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:398:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.lt_u
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:397:4
|
2018-06-09 02:27:10 +02:00
|
|
|
(tee_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:397:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:397:21
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:398:45
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 32)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-06-09 02:27:10 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:398:57
|
2018-02-12 19:17:50 +01:00
|
|
|
(return
|
2018-06-09 02:27:10 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:399:13
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:405:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
2018-06-09 02:27:10 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:404:15
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:405:16
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.or
|
|
|
|
(i32.or
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:403:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.sub
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $2)
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 16)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:405:27
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:405:34
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:405:35
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $4)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:405:46
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:406:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store offset=4
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:406:16
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:407:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store offset=8
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:407:16
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:411:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:410:4
|
2018-06-09 02:27:10 +02:00
|
|
|
(tee_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:410:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.sub
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:410:33
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:410:41
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $2)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:410:48
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:412:4
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#set:tailRef
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:412:19
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $2)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:414:9
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#insert
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:414:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:414:16
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $1)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:416:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Root#search (; 10 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-02-12 19:17:50 +01:00
|
|
|
(local $2 i32)
|
|
|
|
(set_local $1
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:300:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:300:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.lt_u
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:300:15
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 256)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:302:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.div_u
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:302:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:302:24
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:303:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(block (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:306:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $1
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:306:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.xor
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:306:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shr_u
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:306:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:306:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.sub
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:305:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:305:11
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/fls<usize>
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:305:22
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:306:32
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:307:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:307:12
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 7)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:309:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(if (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:309:10
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.lt_u
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:309:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 31)
|
|
|
|
)
|
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:309:30
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:310:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(block (result i32)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:310:13
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:310:22
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:316:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:314:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $1
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:314:16
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:314:21
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#getSLMap
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:314:16
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:314:30
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:314:36
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shl
|
|
|
|
(i32.const -1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:314:43
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:327:18
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#getHead
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:327:13
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:327:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
(i32.ctz
|
2018-05-06 01:32:58 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:327:39
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:319:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(if (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:318:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $1
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:318:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:318:31
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shl
|
|
|
|
(i32.const -1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:318:38
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:318:39
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:318:44
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:321:13
|
2018-02-12 19:17:50 +01:00
|
|
|
(block (result i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:323:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $1
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:323:16
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#getSLMap
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:323:23
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:322:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $2
|
|
|
|
(i32.ctz
|
2018-05-06 01:32:58 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:322:24
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:324:20
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#getHead
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:324:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:324:28
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
(i32.ctz
|
2018-05-06 01:32:58 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:324:41
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:320:15
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/Root#use (; 11 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-02-12 19:17:50 +01:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:347:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(set_local $3
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:347:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:352:9
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#remove
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:352:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:352:16
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:356:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:356:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.ge_u
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:355:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $4
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:355:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.sub
|
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:355:21
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
|
|
|
(i32.const -4)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:355:42
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:356:34
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 24)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:356:50
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:357:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:357:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.or
|
|
|
|
(get_local $2)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:357:26
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:357:27
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $3)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:357:39
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:362:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:359:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:359:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:360:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:360:35
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:360:48
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:362:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.or
|
|
|
|
(i32.sub
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:362:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $4)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:362:32
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:362:46
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:363:11
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#insert
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:363:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:363:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:366:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:367:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:367:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const -2)
|
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:369:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:368:6
|
2018-06-09 02:27:10 +02:00
|
|
|
(tee_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:368:25
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Block#get:right
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:368:32
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.and
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:369:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $2)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
(i32.const -3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:372:44
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.add
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:372:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:372:38
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/allocate_memory (; 12 ;) (type $ii) (param $0 i32) (result i32)
|
2018-02-12 19:17:50 +01:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-02-25 00:13:39 +01:00
|
|
|
(local $5 i32)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:444:2
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:444:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.eqz
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:443:2
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $2
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:443:13
|
2018-04-03 23:56:48 +02:00
|
|
|
(get_global $~lib/allocator/tlsf/ROOT)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-08 00:43:38 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:444:13
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:448:4
|
|
|
|
(if
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:448:8
|
|
|
|
(if (result i32)
|
2018-06-09 02:27:10 +02:00
|
|
|
(tee_local $3
|
2018-06-28 01:44:32 +02:00
|
|
|
(i32.gt_s
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:447:4
|
|
|
|
(tee_local $1
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:447:22
|
|
|
|
(i32.shr_u
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:447:28
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:445:4
|
|
|
|
(tee_local $4
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:445:21
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:445:22
|
|
|
|
(get_global $HEAP_BASE)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:445:34
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
(i32.const -8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 68451)
|
|
|
|
)
|
|
|
|
(i32.const -65536)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:447:80
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:446:4
|
|
|
|
(tee_local $5
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:446:22
|
|
|
|
(current_memory)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:448:37
|
|
|
|
(i32.lt_s
|
|
|
|
(grow_memory
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:448:49
|
|
|
|
(i32.sub
|
|
|
|
(get_local $1)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:448:63
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:448:78
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:448:81
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:449:4
|
|
|
|
(set_global $~lib/allocator/tlsf/ROOT
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:449:11
|
|
|
|
(tee_local $2
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:449:18
|
|
|
|
(get_local $4)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:450:4
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#set:tailRef
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:450:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:451:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
|
|
|
(get_local $2)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:451:17
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:452:4
|
2018-06-09 02:27:10 +02:00
|
|
|
(block $break|0
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:452:9
|
|
|
|
(set_local $3
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:452:25
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-06-09 02:27:10 +02:00
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:452:28
|
2018-06-09 02:27:10 +02:00
|
|
|
(i32.ge_u
|
2018-06-28 01:44:32 +02:00
|
|
|
(get_local $3)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:452:33
|
2018-06-09 02:27:10 +02:00
|
|
|
(i32.const 22)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-06-09 02:27:10 +02:00
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:453:11
|
2018-06-09 02:27:10 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#setSLMap
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:453:6
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $2)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:453:20
|
|
|
|
(get_local $3)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:453:24
|
2018-06-09 02:27:10 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:454:6
|
2018-06-09 02:27:10 +02:00
|
|
|
(block $break|1
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:454:11
|
|
|
|
(set_local $1
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:454:25
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-06-09 02:27:10 +02:00
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:454:28
|
2018-06-09 02:27:10 +02:00
|
|
|
(i32.ge_u
|
2018-06-28 01:44:32 +02:00
|
|
|
(get_local $1)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:454:33
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:454:48
|
2018-06-09 02:27:10 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#setHead
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:455:8
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $2)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:455:21
|
|
|
|
(get_local $3)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:455:25
|
2018-03-19 19:36:39 +01:00
|
|
|
(get_local $1)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:455:29
|
2018-06-09 02:27:10 +02:00
|
|
|
(i32.const 0)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:454:42
|
|
|
|
(set_local $1
|
2018-06-09 02:27:10 +02:00
|
|
|
(i32.add
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:454:44
|
|
|
|
(get_local $1)
|
2018-06-09 02:27:10 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:452:42
|
|
|
|
(set_local $3
|
2018-06-09 02:27:10 +02:00
|
|
|
(i32.add
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:452:44
|
|
|
|
(get_local $3)
|
2018-06-09 02:27:10 +02:00
|
|
|
(i32.const 1)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 02:27:10 +02:00
|
|
|
(br $repeat|0)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:458:9
|
2018-02-12 19:17:50 +01:00
|
|
|
(drop
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#addMemory
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:458:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:458:19
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.and
|
|
|
|
(i32.add
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:458:20
|
|
|
|
(get_local $4)
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 2923)
|
|
|
|
)
|
|
|
|
(i32.const -8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:458:66
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shl
|
|
|
|
(current_memory)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:458:86
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:462:2
|
|
|
|
(set_local $4
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:462:20
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:463:2
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:463:6
|
2018-04-08 00:43:38 +02:00
|
|
|
(get_local $0)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:463:12
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:464:4
|
2018-04-08 00:43:38 +02:00
|
|
|
(if
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:464:8
|
2018-04-08 00:43:38 +02:00
|
|
|
(i32.gt_u
|
|
|
|
(get_local $0)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:464:15
|
2018-04-08 00:43:38 +02:00
|
|
|
(i32.const 1073741824)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:464:31
|
2018-04-08 00:43:38 +02:00
|
|
|
(unreachable)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:469:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:469:8
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.eqz
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:468:4
|
|
|
|
(tee_local $1
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:468:21
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#search
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:468:16
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:466:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $0
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:466:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(select
|
2018-06-28 01:44:32 +02:00
|
|
|
(tee_local $1
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:466:22
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.and
|
|
|
|
(i32.add
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:466:23
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:466:30
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 7)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const -8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
(tee_local $5
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:466:51
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 16)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
(i32.gt_u
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $1)
|
2018-06-28 01:44:32 +02:00
|
|
|
(get_local $5)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:469:16
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:475:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:475:10
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.lt_s
|
|
|
|
(grow_memory
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:474:24
|
2018-02-12 19:17:50 +01:00
|
|
|
(select
|
2018-06-09 02:27:10 +02:00
|
|
|
(tee_local $3
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:472:6
|
|
|
|
(tee_local $5
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:472:24
|
2018-02-12 19:17:50 +01:00
|
|
|
(current_memory)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
(tee_local $1
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:473:6
|
2018-06-09 02:27:10 +02:00
|
|
|
(tee_local $4
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:473:24
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.shr_u
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:473:30
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.and
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:473:31
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.add
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:473:32
|
2018-02-25 00:13:39 +01:00
|
|
|
(get_local $0)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:473:39
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.const 65535)
|
|
|
|
)
|
|
|
|
(i32.const -65536)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:473:62
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.const 16)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.gt_s
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $3)
|
2018-06-28 01:44:32 +02:00
|
|
|
(get_local $1)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:475:37
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:475:40
|
2018-02-25 00:13:39 +01:00
|
|
|
(if
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:476:12
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.lt_s
|
|
|
|
(grow_memory
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:476:24
|
2018-06-09 02:27:10 +02:00
|
|
|
(get_local $4)
|
2018-02-25 00:13:39 +01:00
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:476:39
|
2018-02-25 00:13:39 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:476:42
|
2018-02-25 00:13:39 +01:00
|
|
|
(unreachable)
|
|
|
|
)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:481:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(drop
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#addMemory
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:481:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:481:21
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shl
|
2018-06-28 01:44:32 +02:00
|
|
|
(get_local $5)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:481:43
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:481:47
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.shl
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:480:23
|
2018-02-12 19:17:50 +01:00
|
|
|
(current_memory)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:481:68
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:482:6
|
|
|
|
(set_local $1
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:482:14
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#search
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:482:21
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:482:33
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:486:4
|
|
|
|
(set_local $4
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:486:16
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#use
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:486:11
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $2)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:486:20
|
|
|
|
(get_local $1)
|
|
|
|
;;@ ~lib/allocator/tlsf.ts:486:34
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:489:9
|
|
|
|
(get_local $4)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(func $~lib/allocator/tlsf/free_memory (; 13 ;) (type $iv) (param $0 i32)
|
2018-02-12 19:17:50 +01:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:495:2
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:495:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:497:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(if
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:496:4
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $1
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:496:15
|
2018-04-03 23:56:48 +02:00
|
|
|
(get_global $~lib/allocator/tlsf/ROOT)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:497:14
|
2018-02-12 19:17:50 +01:00
|
|
|
(block
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:501:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.store
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:498:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(tee_local $2
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:498:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.sub
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:498:36
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $0)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:498:43
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:501:19
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.or
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:499:22
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:501:31
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:502:11
|
2018-04-03 23:56:48 +02:00
|
|
|
(call $~lib/allocator/tlsf/Root#insert
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:502:6
|
2018-02-12 19:17:50 +01:00
|
|
|
(get_local $1)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:502:18
|
2018-02-12 19:17:50 +01:00
|
|
|
(i32.sub
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:502:36
|
2018-02-19 23:07:35 +01:00
|
|
|
(get_local $0)
|
2018-06-28 01:44:32 +02:00
|
|
|
;;@ ~lib/allocator/tlsf.ts:502:43
|
2018-03-04 01:30:16 +01:00
|
|
|
(i32.const 8)
|
2018-02-19 23:07:35 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-02-12 19:17:50 +01:00
|
|
|
)
|