1452 lines
35 KiB
Plaintext
Raw Normal View History

2018-02-12 19:17:50 +01:00
(module
(type $iiv (func (param i32 i32)))
(type $iiiv (func (param i32 i32 i32)))
(type $iiiiv (func (param i32 i32 i32 i32)))
(type $ii (func (param i32) (result i32)))
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $iii (func (param i32 i32) (result i32)))
(type $iv (func (param i32)))
(global "$(lib)/allocator/tlsf/ROOT" (mut i32) (i32.const 0))
(global $HEAP_BASE i32 (i32.const 4))
(memory $0 1)
(export "allocate_memory" (func "$(lib)/allocator/tlsf/allocate_memory"))
(export "free_memory" (func "$(lib)/allocator/tlsf/free_memory"))
(export "memory" (memory $0))
(func "$(lib)/allocator/tlsf/Root#set:tailRef" (; 0 ;) (type $iiv) (param $0 i32) (param $1 i32)
;;@ (lib)/allocator/tlsf.ts:179:30
2018-02-12 19:17:50 +01:00
(i32.store
;;@ (lib)/allocator/tlsf.ts:179:43
(i32.const 2912)
;;@ (lib)/allocator/tlsf.ts:179:46
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
(func "$(lib)/allocator/tlsf/Root#setSLMap" (; 1 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
;;@ (lib)/allocator/tlsf.ts:143:4
2018-02-12 19:17:50 +01:00
(i32.store offset=4
;;@ (lib)/allocator/tlsf.ts:143:15
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:143:41
2018-02-25 00:13:39 +01:00
(i32.shl
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:143:46
2018-02-25 00:13:39 +01:00
(i32.const 2)
2018-02-12 19:17:50 +01:00
)
)
;;@ (lib)/allocator/tlsf.ts:143:49
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
(func "$(lib)/allocator/tlsf/Root#setHead" (; 2 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
;;@ (lib)/allocator/tlsf.ts:167:4
2018-02-12 19:17:50 +01:00
(i32.store offset=96
;;@ (lib)/allocator/tlsf.ts:168:6
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:168:32
2018-02-25 00:13:39 +01:00
(i32.shl
2018-02-12 19:17:50 +01:00
(i32.add
;;@ (lib)/allocator/tlsf.ts:168:33
2018-02-25 00:13:39 +01:00
(i32.shl
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:168:38
2018-02-25 00:13:39 +01:00
(i32.const 5)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:168:48
2018-02-12 19:17:50 +01:00
(get_local $2)
)
;;@ (lib)/allocator/tlsf.ts:168:61
2018-02-25 00:13:39 +01:00
(i32.const 2)
2018-02-12 19:17:50 +01:00
)
)
;;@ (lib)/allocator/tlsf.ts:169:6
2018-02-12 19:17:50 +01:00
(get_local $3)
)
)
(func "$(lib)/allocator/tlsf/Block#get:right" (; 3 ;) (type $ii) (param $0 i32) (result i32)
;;@ (lib)/allocator/tlsf.ts:88:11
2018-02-12 19:17:50 +01:00
(i32.add
;;@ (lib)/allocator/tlsf.ts:90:8
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:90:34
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:90:47
2018-02-12 19:17:50 +01:00
(i32.and
;;@ (lib)/allocator/tlsf.ts:90:48
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $0)
)
(i32.const -4)
)
)
)
(func "$(lib)/allocator/tlsf/fls<usize>" (; 4 ;) (type $ii) (param $0 i32) (result i32)
;;@ (lib)/allocator/tlsf.ts:428:9
2018-02-12 19:17:50 +01:00
(i32.sub
(i32.const 31)
;;@ (lib)/allocator/tlsf.ts:428:15
2018-02-12 19:17:50 +01:00
(i32.clz
;;@ (lib)/allocator/tlsf.ts:428:22
2018-02-12 19:17:50 +01:00
(get_local $0)
)
)
)
(func "$(lib)/allocator/tlsf/Root#getHead" (; 5 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
;;@ (lib)/allocator/tlsf.ts:158:11
2018-02-12 19:17:50 +01:00
(i32.load offset=96
;;@ (lib)/allocator/tlsf.ts:159:6
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:159:32
2018-02-25 00:13:39 +01:00
(i32.shl
2018-02-12 19:17:50 +01:00
(i32.add
;;@ (lib)/allocator/tlsf.ts:159:33
2018-02-25 00:13:39 +01:00
(i32.shl
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:159:38
2018-02-25 00:13:39 +01:00
(i32.const 5)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:159:48
2018-02-12 19:17:50 +01:00
(get_local $2)
)
;;@ (lib)/allocator/tlsf.ts:159:61
2018-02-25 00:13:39 +01:00
(i32.const 2)
2018-02-12 19:17:50 +01:00
)
)
)
)
(func "$(lib)/allocator/tlsf/Root#getSLMap" (; 6 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
;;@ (lib)/allocator/tlsf.ts:137:11
2018-02-12 19:17:50 +01:00
(i32.load offset=4
;;@ (lib)/allocator/tlsf.ts:137:21
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:137:47
2018-02-25 00:13:39 +01:00
(i32.shl
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:137:52
2018-02-25 00:13:39 +01:00
(i32.const 2)
2018-02-12 19:17:50 +01:00
)
)
)
)
(func "$(lib)/allocator/tlsf/Root#remove" (; 7 ;) (type $iiv) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(set_local $3
;;@ (lib)/allocator/tlsf.ts:262:4
2018-02-12 19:17:50 +01:00
(if (result i32)
;;@ (lib)/allocator/tlsf.ts:262:8
2018-02-12 19:17:50 +01:00
(i32.lt_u
;;@ (lib)/allocator/tlsf.ts:257:4
2018-02-12 19:17:50 +01:00
(tee_local $2
;;@ (lib)/allocator/tlsf.ts:257:15
2018-02-12 19:17:50 +01:00
(i32.and
;;@ (lib)/allocator/tlsf.ts:255:20
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $1)
)
(i32.const -4)
)
)
;;@ (lib)/allocator/tlsf.ts:262:15
(i32.const 256)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:262:24
2018-02-12 19:17:50 +01:00
(block (result i32)
;;@ (lib)/allocator/tlsf.ts:264:6
2018-02-12 19:17:50 +01:00
(set_local $4
;;@ (lib)/allocator/tlsf.ts:264:11
2018-02-12 19:17:50 +01:00
(i32.div_u
;;@ (lib)/allocator/tlsf.ts:264:17
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:264:24
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
;;@ (lib)/allocator/tlsf.ts:263:11
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:265:11
2018-02-12 19:17:50 +01:00
(block (result i32)
;;@ (lib)/allocator/tlsf.ts:267:6
2018-02-12 19:17:50 +01:00
(set_local $4
;;@ (lib)/allocator/tlsf.ts:267:11
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ (lib)/allocator/tlsf.ts:267:17
2018-02-12 19:17:50 +01:00
(i32.shr_u
;;@ (lib)/allocator/tlsf.ts:267:18
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:267:26
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ (lib)/allocator/tlsf.ts:266:6
2018-02-12 19:17:50 +01:00
(tee_local $3
;;@ (lib)/allocator/tlsf.ts:266:11
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/fls<usize>"
;;@ (lib)/allocator/tlsf.ts:266:22
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
;;@ (lib)/allocator/tlsf.ts:267:32
2018-02-12 19:17:50 +01:00
(i32.const 5)
)
)
(i32.const 32)
)
)
(i32.sub
;;@ (lib)/allocator/tlsf.ts:268:6
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:268:12
(i32.const 7)
2018-02-12 19:17:50 +01:00
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:273:4
2018-02-12 19:17:50 +01:00
(set_local $2
;;@ (lib)/allocator/tlsf.ts:273:15
2018-02-12 19:17:50 +01:00
(i32.load offset=8
(get_local $1)
)
)
;;@ (lib)/allocator/tlsf.ts:274:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:272:4
2018-02-12 19:17:50 +01:00
(tee_local $5
;;@ (lib)/allocator/tlsf.ts:272:15
2018-02-12 19:17:50 +01:00
(i32.load offset=4
(get_local $1)
)
)
;;@ (lib)/allocator/tlsf.ts:274:14
2018-02-12 19:17:50 +01:00
(i32.store offset=8
(get_local $5)
;;@ (lib)/allocator/tlsf.ts:274:26
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
;;@ (lib)/allocator/tlsf.ts:275:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:275:8
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:275:14
2018-02-12 19:17:50 +01:00
(i32.store offset=4
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:275:26
2018-02-12 19:17:50 +01:00
(get_local $5)
)
)
;;@ (lib)/allocator/tlsf.ts:278:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:278:8
2018-02-12 19:17:50 +01:00
(i32.eq
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:278:22
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#getHead"
;;@ (lib)/allocator/tlsf.ts:278:17
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:278:30
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:278:34
2018-02-12 19:17:50 +01:00
(get_local $4)
)
)
;;@ (lib)/allocator/tlsf.ts:278:39
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:279:11
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#setHead"
;;@ (lib)/allocator/tlsf.ts:279:6
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:279:19
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:279:23
2018-02-12 19:17:50 +01:00
(get_local $4)
;;@ (lib)/allocator/tlsf.ts:279:27
2018-02-12 19:17:50 +01:00
(get_local $2)
)
;;@ (lib)/allocator/tlsf.ts:282:6
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:282:10
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ (lib)/allocator/tlsf.ts:282:11
2018-02-12 19:17:50 +01:00
(get_local $2)
)
;;@ (lib)/allocator/tlsf.ts:282:17
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:284:13
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#setSLMap"
;;@ (lib)/allocator/tlsf.ts:284:8
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:284:22
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:284:26
2018-02-12 19:17:50 +01:00
(tee_local $1
(i32.and
;;@ (lib)/allocator/tlsf.ts:283:25
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#getSLMap"
;;@ (lib)/allocator/tlsf.ts:283:20
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:283:34
2018-02-12 19:17:50 +01:00
(get_local $3)
)
;;@ (lib)/allocator/tlsf.ts:284:35
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ (lib)/allocator/tlsf.ts:284:36
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ (lib)/allocator/tlsf.ts:284:37
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ (lib)/allocator/tlsf.ts:284:42
2018-02-12 19:17:50 +01:00
(get_local $4)
)
(i32.const -1)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:287:8
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:287:12
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ (lib)/allocator/tlsf.ts:287:13
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ (lib)/allocator/tlsf.ts:287:20
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $0)
(i32.and
(i32.load
(get_local $0)
)
;;@ (lib)/allocator/tlsf.ts:287:34
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ (lib)/allocator/tlsf.ts:287:35
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ (lib)/allocator/tlsf.ts:287:36
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ (lib)/allocator/tlsf.ts:287:41
2018-02-12 19:17:50 +01:00
(get_local $3)
)
(i32.const -1)
)
)
)
)
)
)
)
)
)
(func "$(lib)/allocator/tlsf/Root#insert" (; 8 ;) (type $iiv) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
;;@ (lib)/allocator/tlsf.ts:188:4
2018-02-12 19:17:50 +01:00
(set_local $2
;;@ (lib)/allocator/tlsf.ts:188:20
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $1)
)
)
;;@ (lib)/allocator/tlsf.ts:199:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:199:8
2018-02-12 19:17:50 +01:00
(i32.and
;;@ (lib)/allocator/tlsf.ts:196:4
2018-02-12 19:17:50 +01:00
(tee_local $5
;;@ (lib)/allocator/tlsf.ts:196:20
2018-02-12 19:17:50 +01:00
(i32.load
;;@ (lib)/allocator/tlsf.ts:195:4
2018-02-12 19:17:50 +01:00
(tee_local $4
;;@ (lib)/allocator/tlsf.ts:195:23
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Block#get:right"
;;@ (lib)/allocator/tlsf.ts:195:30
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:199:20
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
;;@ (lib)/allocator/tlsf.ts:199:26
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:200:11
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#remove"
;;@ (lib)/allocator/tlsf.ts:200:6
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:200:18
2018-02-12 19:17:50 +01:00
(get_local $4)
)
;;@ (lib)/allocator/tlsf.ts:201:6
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:201:19
2018-02-12 19:17:50 +01:00
(tee_local $2
(i32.add
;;@ (lib)/allocator/tlsf.ts:201:20
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:201:33
2018-02-12 19:17:50 +01:00
(i32.add
;;@ (lib)/allocator/tlsf.ts:201:46
2018-02-12 19:17:50 +01:00
(i32.and
;;@ (lib)/allocator/tlsf.ts:201:47
2018-02-12 19:17:50 +01:00
(get_local $5)
(i32.const -4)
)
;;@ (lib)/allocator/tlsf.ts:201:33
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:203:6
2018-02-12 19:17:50 +01:00
(set_local $5
;;@ (lib)/allocator/tlsf.ts:203:18
2018-02-12 19:17:50 +01:00
(i32.load
;;@ (lib)/allocator/tlsf.ts:202:6
2018-02-12 19:17:50 +01:00
(tee_local $4
;;@ (lib)/allocator/tlsf.ts:202:14
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Block#get:right"
(get_local $1)
)
)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:208:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:208:8
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:208:20
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
;;@ (lib)/allocator/tlsf.ts:208:31
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:210:6
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ (lib)/allocator/tlsf.ts:210:21
2018-02-12 19:17:50 +01:00
(i32.load
;;@ (lib)/allocator/tlsf.ts:209:6
2018-02-12 19:17:50 +01:00
(tee_local $1
(i32.load
(i32.sub
(get_local $1)
(i32.const 4)
)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:212:11
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#remove"
;;@ (lib)/allocator/tlsf.ts:212:6
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:212:18
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ (lib)/allocator/tlsf.ts:213:6
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:213:18
2018-02-12 19:17:50 +01:00
(tee_local $3
(i32.add
;;@ (lib)/allocator/tlsf.ts:213:19
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:213:31
2018-02-12 19:17:50 +01:00
(i32.add
;;@ (lib)/allocator/tlsf.ts:213:44
2018-02-12 19:17:50 +01:00
(i32.and
;;@ (lib)/allocator/tlsf.ts:213:45
2018-02-12 19:17:50 +01:00
(get_local $2)
(i32.const -4)
)
;;@ (lib)/allocator/tlsf.ts:213:31
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:215:6
2018-02-12 19:17:50 +01:00
(set_local $2
;;@ (lib)/allocator/tlsf.ts:215:18
2018-02-12 19:17:50 +01:00
(get_local $3)
)
)
)
;;@ (lib)/allocator/tlsf.ts:219:4
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $4)
;;@ (lib)/allocator/tlsf.ts:219:17
2018-02-12 19:17:50 +01:00
(i32.or
(get_local $5)
;;@ (lib)/allocator/tlsf.ts:219:29
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
)
(i32.store
(i32.sub
(get_local $4)
(i32.const 4)
)
(tee_local $3
;;@ (lib)/allocator/tlsf.ts:220:17
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
;;@ (lib)/allocator/tlsf.ts:238:4
2018-02-12 19:17:50 +01:00
(set_local $4
;;@ (lib)/allocator/tlsf.ts:238:20
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#getHead"
;;@ (lib)/allocator/tlsf.ts:238:15
2018-02-12 19:17:50 +01:00
(get_local $0)
(tee_local $2
;;@ (lib)/allocator/tlsf.ts:228:4
2018-02-12 19:17:50 +01:00
(if (result i32)
;;@ (lib)/allocator/tlsf.ts:228:8
2018-02-12 19:17:50 +01:00
(i32.lt_u
;;@ (lib)/allocator/tlsf.ts:223:4
2018-02-12 19:17:50 +01:00
(tee_local $3
;;@ (lib)/allocator/tlsf.ts:223:11
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $2)
(i32.const -4)
)
)
;;@ (lib)/allocator/tlsf.ts:228:15
(i32.const 256)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:228:24
2018-02-12 19:17:50 +01:00
(block (result i32)
;;@ (lib)/allocator/tlsf.ts:230:6
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ (lib)/allocator/tlsf.ts:230:11
2018-02-12 19:17:50 +01:00
(i32.div_u
;;@ (lib)/allocator/tlsf.ts:230:17
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:230:24
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
;;@ (lib)/allocator/tlsf.ts:229:11
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:231:11
2018-02-12 19:17:50 +01:00
(block (result i32)
;;@ (lib)/allocator/tlsf.ts:233:6
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ (lib)/allocator/tlsf.ts:233:11
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ (lib)/allocator/tlsf.ts:233:17
2018-02-12 19:17:50 +01:00
(i32.shr_u
;;@ (lib)/allocator/tlsf.ts:233:18
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:233:26
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ (lib)/allocator/tlsf.ts:232:6
2018-02-12 19:17:50 +01:00
(tee_local $2
;;@ (lib)/allocator/tlsf.ts:232:11
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/fls<usize>"
;;@ (lib)/allocator/tlsf.ts:232:22
2018-02-12 19:17:50 +01:00
(get_local $3)
)
)
;;@ (lib)/allocator/tlsf.ts:233:32
2018-02-12 19:17:50 +01:00
(i32.const 5)
)
)
(i32.const 32)
)
)
(i32.sub
;;@ (lib)/allocator/tlsf.ts:234:6
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:234:12
(i32.const 7)
2018-02-12 19:17:50 +01:00
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:238:32
2018-02-12 19:17:50 +01:00
(get_local $3)
)
)
;;@ (lib)/allocator/tlsf.ts:239:4
2018-02-12 19:17:50 +01:00
(i32.store offset=4
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:239:17
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:240:4
2018-02-12 19:17:50 +01:00
(i32.store offset=8
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:240:17
2018-02-12 19:17:50 +01:00
(get_local $4)
)
;;@ (lib)/allocator/tlsf.ts:241:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:241:8
2018-02-12 19:17:50 +01:00
(get_local $4)
;;@ (lib)/allocator/tlsf.ts:241:14
2018-02-12 19:17:50 +01:00
(i32.store offset=4
(get_local $4)
;;@ (lib)/allocator/tlsf.ts:241:26
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
;;@ (lib)/allocator/tlsf.ts:242:9
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#setHead"
;;@ (lib)/allocator/tlsf.ts:242:4
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:242:17
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:242:21
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:242:25
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ (lib)/allocator/tlsf.ts:245:4
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $0)
(i32.or
(i32.load
(get_local $0)
)
;;@ (lib)/allocator/tlsf.ts:245:18
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ (lib)/allocator/tlsf.ts:245:19
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ (lib)/allocator/tlsf.ts:245:24
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
)
;;@ (lib)/allocator/tlsf.ts:246:9
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#setSLMap"
;;@ (lib)/allocator/tlsf.ts:246:4
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:246:18
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:246:22
2018-02-12 19:17:50 +01:00
(i32.or
;;@ (lib)/allocator/tlsf.ts:246:27
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#getSLMap"
;;@ (lib)/allocator/tlsf.ts:246:22
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:246:36
2018-02-12 19:17:50 +01:00
(get_local $2)
)
;;@ (lib)/allocator/tlsf.ts:246:42
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ (lib)/allocator/tlsf.ts:246:43
2018-02-12 19:17:50 +01:00
(i32.const 1)
;;@ (lib)/allocator/tlsf.ts:246:48
2018-02-12 19:17:50 +01:00
(get_local $3)
)
)
)
)
(func "$(lib)/allocator/tlsf/Root#addMemory" (; 9 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
;;@ (lib)/allocator/tlsf.ts:381:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:379:4
2018-02-12 19:17:50 +01:00
(tee_local $3
(i32.load
(i32.const 2912)
2018-02-12 19:17:50 +01:00
)
)
;;@ (lib)/allocator/tlsf.ts:385:6
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:385:10
2018-02-12 19:17:50 +01:00
(i32.eq
(i32.sub
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:385:18
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:385:32
2018-02-12 19:17:50 +01:00
(get_local $3)
)
;;@ (lib)/allocator/tlsf.ts:385:41
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:386:8
2018-02-12 19:17:50 +01:00
(set_local $1
(i32.sub
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:386:17
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
;;@ (lib)/allocator/tlsf.ts:387:8
2018-02-12 19:17:50 +01:00
(set_local $4
;;@ (lib)/allocator/tlsf.ts:387:19
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $3)
)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:396:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:396:8
2018-02-12 19:17:50 +01:00
(i32.lt_u
;;@ (lib)/allocator/tlsf.ts:395:4
2018-02-12 19:17:50 +01:00
(tee_local $3
;;@ (lib)/allocator/tlsf.ts:395:15
2018-02-12 19:17:50 +01:00
(i32.sub
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:395:21
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
;;@ (lib)/allocator/tlsf.ts:396:45
(i32.const 32)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:397:13
2018-02-12 19:17:50 +01:00
(return
(i32.const 0)
)
)
;;@ (lib)/allocator/tlsf.ts:403:4
2018-02-12 19:17:50 +01:00
(i32.store
;;@ (lib)/allocator/tlsf.ts:402:4
2018-02-12 19:17:50 +01:00
(tee_local $2
;;@ (lib)/allocator/tlsf.ts:402:15
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ (lib)/allocator/tlsf.ts:403:16
2018-02-12 19:17:50 +01:00
(i32.or
(i32.or
;;@ (lib)/allocator/tlsf.ts:401:19
2018-02-12 19:17:50 +01:00
(i32.sub
(get_local $3)
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:403:27
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
;;@ (lib)/allocator/tlsf.ts:403:34
2018-02-12 19:17:50 +01:00
(i32.and
;;@ (lib)/allocator/tlsf.ts:403:35
2018-02-12 19:17:50 +01:00
(get_local $4)
;;@ (lib)/allocator/tlsf.ts:403:46
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
)
)
;;@ (lib)/allocator/tlsf.ts:404:4
2018-02-12 19:17:50 +01:00
(i32.store offset=4
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:404:16
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:405:4
2018-02-12 19:17:50 +01:00
(i32.store offset=8
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:405:16
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:409:4
2018-02-12 19:17:50 +01:00
(i32.store
;;@ (lib)/allocator/tlsf.ts:408:4
2018-02-12 19:17:50 +01:00
(tee_local $1
;;@ (lib)/allocator/tlsf.ts:408:15
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ (lib)/allocator/tlsf.ts:408:33
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:408:41
2018-02-12 19:17:50 +01:00
(get_local $3)
)
;;@ (lib)/allocator/tlsf.ts:408:48
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
(i32.const 2)
)
;;@ (lib)/allocator/tlsf.ts:410:4
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#set:tailRef"
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:410:19
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ (lib)/allocator/tlsf.ts:412:9
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#insert"
;;@ (lib)/allocator/tlsf.ts:412:4
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:412:16
2018-02-12 19:17:50 +01:00
(get_local $2)
)
;;@ (lib)/allocator/tlsf.ts:414:11
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
(func "$(lib)/allocator/tlsf/Root#search" (; 10 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $1
;;@ (lib)/allocator/tlsf.ts:298:4
2018-02-12 19:17:50 +01:00
(if (result i32)
;;@ (lib)/allocator/tlsf.ts:298:8
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:298:15
(i32.const 256)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:300:11
2018-02-12 19:17:50 +01:00
(i32.div_u
;;@ (lib)/allocator/tlsf.ts:300:17
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:300:24
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:301:11
2018-02-12 19:17:50 +01:00
(block (result i32)
;;@ (lib)/allocator/tlsf.ts:304:6
2018-02-12 19:17:50 +01:00
(set_local $1
;;@ (lib)/allocator/tlsf.ts:304:11
2018-02-12 19:17:50 +01:00
(i32.xor
;;@ (lib)/allocator/tlsf.ts:304:17
2018-02-12 19:17:50 +01:00
(i32.shr_u
;;@ (lib)/allocator/tlsf.ts:304:18
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:304:26
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ (lib)/allocator/tlsf.ts:303:6
2018-02-12 19:17:50 +01:00
(tee_local $2
;;@ (lib)/allocator/tlsf.ts:303:11
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/fls<usize>"
;;@ (lib)/allocator/tlsf.ts:303:22
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
;;@ (lib)/allocator/tlsf.ts:304:32
2018-02-12 19:17:50 +01:00
(i32.const 5)
)
)
(i32.const 32)
)
)
;;@ (lib)/allocator/tlsf.ts:305:6
2018-02-12 19:17:50 +01:00
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:305:12
(i32.const 7)
2018-02-12 19:17:50 +01:00
)
)
;;@ (lib)/allocator/tlsf.ts:307:6
2018-02-12 19:17:50 +01:00
(if (result i32)
;;@ (lib)/allocator/tlsf.ts:307:10
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:307:15
2018-02-12 19:17:50 +01:00
(i32.const 31)
)
(i32.add
;;@ (lib)/allocator/tlsf.ts:307:30
2018-02-12 19:17:50 +01:00
(get_local $1)
(i32.const 1)
)
;;@ (lib)/allocator/tlsf.ts:308:11
2018-02-12 19:17:50 +01:00
(block (result i32)
(set_local $2
(i32.add
;;@ (lib)/allocator/tlsf.ts:308:13
2018-02-12 19:17:50 +01:00
(get_local $2)
(i32.const 1)
)
)
;;@ (lib)/allocator/tlsf.ts:308:22
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:314:4
2018-02-12 19:17:50 +01:00
(if (result i32)
;;@ (lib)/allocator/tlsf.ts:312:4
2018-02-12 19:17:50 +01:00
(tee_local $1
;;@ (lib)/allocator/tlsf.ts:312:16
2018-02-12 19:17:50 +01:00
(i32.and
;;@ (lib)/allocator/tlsf.ts:312:21
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#getSLMap"
;;@ (lib)/allocator/tlsf.ts:312:16
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:312:30
2018-02-12 19:17:50 +01:00
(get_local $2)
)
;;@ (lib)/allocator/tlsf.ts:312:36
2018-02-12 19:17:50 +01:00
(i32.shl
(i32.const -1)
;;@ (lib)/allocator/tlsf.ts:312:43
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
)
;;@ (lib)/allocator/tlsf.ts:325:18
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#getHead"
;;@ (lib)/allocator/tlsf.ts:325:13
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:325:26
2018-02-12 19:17:50 +01:00
(get_local $2)
(i32.ctz
(get_local $1)
)
)
;;@ (lib)/allocator/tlsf.ts:317:6
2018-02-12 19:17:50 +01:00
(if (result i32)
;;@ (lib)/allocator/tlsf.ts:316:6
2018-02-12 19:17:50 +01:00
(tee_local $1
;;@ (lib)/allocator/tlsf.ts:316:18
2018-02-12 19:17:50 +01:00
(i32.and
(i32.load
(get_local $0)
)
;;@ (lib)/allocator/tlsf.ts:316:31
2018-02-12 19:17:50 +01:00
(i32.shl
(i32.const -1)
;;@ (lib)/allocator/tlsf.ts:316:38
2018-02-12 19:17:50 +01:00
(i32.add
;;@ (lib)/allocator/tlsf.ts:316:39
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:316:44
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:319:13
2018-02-12 19:17:50 +01:00
(block (result i32)
;;@ (lib)/allocator/tlsf.ts:321:8
2018-02-12 19:17:50 +01:00
(set_local $1
;;@ (lib)/allocator/tlsf.ts:321:16
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#getSLMap"
;;@ (lib)/allocator/tlsf.ts:321:23
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:320:8
2018-02-12 19:17:50 +01:00
(tee_local $2
(i32.ctz
(get_local $1)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:322:20
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#getHead"
;;@ (lib)/allocator/tlsf.ts:322:15
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:322:28
2018-02-12 19:17:50 +01:00
(get_local $2)
(i32.ctz
(get_local $1)
)
)
)
;;@ (lib)/allocator/tlsf.ts:318:15
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
)
)
(func "$(lib)/allocator/tlsf/Root#use" (; 11 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
;;@ (lib)/allocator/tlsf.ts:345:4
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ (lib)/allocator/tlsf.ts:345:20
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $1)
)
)
;;@ (lib)/allocator/tlsf.ts:350:9
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#remove"
;;@ (lib)/allocator/tlsf.ts:350:4
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:350:16
2018-02-12 19:17:50 +01:00
(get_local $1)
)
;;@ (lib)/allocator/tlsf.ts:354:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:354:8
2018-02-12 19:17:50 +01:00
(i32.ge_u
;;@ (lib)/allocator/tlsf.ts:353:4
2018-02-12 19:17:50 +01:00
(tee_local $4
;;@ (lib)/allocator/tlsf.ts:353:20
2018-02-12 19:17:50 +01:00
(i32.sub
(i32.and
;;@ (lib)/allocator/tlsf.ts:353:21
2018-02-12 19:17:50 +01:00
(get_local $3)
(i32.const -4)
)
;;@ (lib)/allocator/tlsf.ts:353:42
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
;;@ (lib)/allocator/tlsf.ts:354:34
(i32.const 24)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:354:50
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:355:6
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:355:19
2018-02-12 19:17:50 +01:00
(i32.or
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:355:26
2018-02-12 19:17:50 +01:00
(i32.and
;;@ (lib)/allocator/tlsf.ts:355:27
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:355:39
2018-02-12 19:17:50 +01:00
(i32.const 2)
)
)
)
;;@ (lib)/allocator/tlsf.ts:360:6
2018-02-12 19:17:50 +01:00
(i32.store
;;@ (lib)/allocator/tlsf.ts:357:6
2018-02-12 19:17:50 +01:00
(tee_local $2
;;@ (lib)/allocator/tlsf.ts:357:18
2018-02-12 19:17:50 +01:00
(i32.add
;;@ (lib)/allocator/tlsf.ts:358:8
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:358:35
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:358:48
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
;;@ (lib)/allocator/tlsf.ts:360:19
2018-02-12 19:17:50 +01:00
(i32.or
(i32.sub
;;@ (lib)/allocator/tlsf.ts:360:20
2018-02-12 19:17:50 +01:00
(get_local $4)
;;@ (lib)/allocator/tlsf.ts:360:32
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:360:46
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
;;@ (lib)/allocator/tlsf.ts:361:11
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#insert"
;;@ (lib)/allocator/tlsf.ts:361:6
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:361:18
2018-02-12 19:17:50 +01:00
(get_local $2)
)
)
;;@ (lib)/allocator/tlsf.ts:364:11
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:365:6
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:365:19
2018-02-12 19:17:50 +01:00
(i32.and
(get_local $3)
(i32.const -2)
)
)
;;@ (lib)/allocator/tlsf.ts:367:6
2018-02-12 19:17:50 +01:00
(i32.store
;;@ (lib)/allocator/tlsf.ts:366:6
2018-02-12 19:17:50 +01:00
(tee_local $0
;;@ (lib)/allocator/tlsf.ts:366:25
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Block#get:right"
;;@ (lib)/allocator/tlsf.ts:366:32
2018-02-12 19:17:50 +01:00
(get_local $1)
)
)
(i32.and
;;@ (lib)/allocator/tlsf.ts:367:6
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $0)
)
(i32.const -3)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:370:11
2018-02-12 19:17:50 +01:00
(i32.add
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:370:38
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
(func "$(lib)/allocator/tlsf/allocate_memory" (; 12 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
2018-02-25 00:13:39 +01:00
(local $5 i32)
;;@ (lib)/allocator/tlsf.ts:442:2
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:442:6
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ (lib)/allocator/tlsf.ts:441:2
2018-02-12 19:17:50 +01:00
(tee_local $2
;;@ (lib)/allocator/tlsf.ts:441:13
2018-02-12 19:17:50 +01:00
(get_global "$(lib)/allocator/tlsf/ROOT")
)
)
;;@ (lib)/allocator/tlsf.ts:442:13
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:444:4
2018-02-12 19:17:50 +01:00
(set_global "$(lib)/allocator/tlsf/ROOT"
;;@ (lib)/allocator/tlsf.ts:444:11
2018-02-12 19:17:50 +01:00
(tee_local $2
;;@ (lib)/allocator/tlsf.ts:443:4
2018-02-12 19:17:50 +01:00
(tee_local $4
;;@ (lib)/allocator/tlsf.ts:443:21
2018-02-12 19:17:50 +01:00
(i32.and
(i32.add
;;@ (lib)/allocator/tlsf.ts:443:22
2018-02-12 19:17:50 +01:00
(get_global $HEAP_BASE)
;;@ (lib)/allocator/tlsf.ts:443:34
(i32.const 7)
2018-02-12 19:17:50 +01:00
)
(i32.const -8)
2018-02-12 19:17:50 +01:00
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:445:4
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#set:tailRef"
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:445:19
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:446:4
2018-02-12 19:17:50 +01:00
(i32.store
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:446:17
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
(loop $continue|0
(if
;;@ (lib)/allocator/tlsf.ts:447:28
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:447:33
(i32.const 22)
2018-02-12 19:17:50 +01:00
)
(block
;;@ (lib)/allocator/tlsf.ts:448:11
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#setSLMap"
;;@ (lib)/allocator/tlsf.ts:448:6
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:448:20
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:448:24
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:449:11
2018-02-12 19:17:50 +01:00
(set_local $3
;;@ (lib)/allocator/tlsf.ts:449:25
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
(loop $continue|1
(if
;;@ (lib)/allocator/tlsf.ts:449:28
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:449:33
2018-02-12 19:17:50 +01:00
(i32.const 32)
)
(block
;;@ (lib)/allocator/tlsf.ts:450:13
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#setHead"
;;@ (lib)/allocator/tlsf.ts:450:8
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:450:21
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:450:25
2018-02-12 19:17:50 +01:00
(get_local $3)
;;@ (lib)/allocator/tlsf.ts:450:29
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:449:42
2018-02-12 19:17:50 +01:00
(set_local $3
(i32.add
;;@ (lib)/allocator/tlsf.ts:449:44
2018-02-12 19:17:50 +01:00
(get_local $3)
(i32.const 1)
)
)
(br $continue|1)
)
)
)
;;@ (lib)/allocator/tlsf.ts:447:42
2018-02-12 19:17:50 +01:00
(set_local $1
(i32.add
;;@ (lib)/allocator/tlsf.ts:447:44
2018-02-12 19:17:50 +01:00
(get_local $1)
(i32.const 1)
)
)
(br $continue|0)
)
)
)
;;@ (lib)/allocator/tlsf.ts:453:9
2018-02-12 19:17:50 +01:00
(drop
(call "$(lib)/allocator/tlsf/Root#addMemory"
;;@ (lib)/allocator/tlsf.ts:453:4
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:453:19
(i32.and
(i32.add
;;@ (lib)/allocator/tlsf.ts:453:20
(get_local $4)
(i32.const 2923)
)
(i32.const -8)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:453:66
2018-02-12 19:17:50 +01:00
(i32.shl
(current_memory)
;;@ (lib)/allocator/tlsf.ts:453:86
2018-02-12 19:17:50 +01:00
(i32.const 16)
)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:457:2
2018-02-12 19:17:50 +01:00
(set_local $1
;;@ (lib)/allocator/tlsf.ts:457:20
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:458:2
2018-02-12 19:17:50 +01:00
(if
(select
;;@ (lib)/allocator/tlsf.ts:458:14
2018-02-12 19:17:50 +01:00
(i32.lt_u
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:458:21
2018-02-12 19:17:50 +01:00
(i32.const 1073741824)
)
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:458:6
2018-02-12 19:17:50 +01:00
(get_local $0)
)
;;@ (lib)/allocator/tlsf.ts:458:37
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:462:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:462:8
2018-02-12 19:17:50 +01:00
(i32.eqz
;;@ (lib)/allocator/tlsf.ts:461:4
2018-02-12 19:17:50 +01:00
(tee_local $1
;;@ (lib)/allocator/tlsf.ts:461:21
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#search"
;;@ (lib)/allocator/tlsf.ts:461:16
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:459:4
2018-02-12 19:17:50 +01:00
(tee_local $0
;;@ (lib)/allocator/tlsf.ts:459:11
2018-02-12 19:17:50 +01:00
(select
(tee_local $1
;;@ (lib)/allocator/tlsf.ts:459:22
2018-02-12 19:17:50 +01:00
(i32.and
(i32.add
;;@ (lib)/allocator/tlsf.ts:459:23
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:459:30
(i32.const 7)
2018-02-12 19:17:50 +01:00
)
(i32.const -8)
2018-02-12 19:17:50 +01:00
)
)
(tee_local $3
;;@ (lib)/allocator/tlsf.ts:459:51
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
(i32.gt_u
(get_local $1)
(get_local $3)
)
)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:462:16
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:468:6
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:468:10
2018-02-12 19:17:50 +01:00
(i32.lt_s
(grow_memory
;;@ (lib)/allocator/tlsf.ts:467:24
2018-02-12 19:17:50 +01:00
(select
(tee_local $1
;;@ (lib)/allocator/tlsf.ts:465:6
2018-02-12 19:17:50 +01:00
(tee_local $4
;;@ (lib)/allocator/tlsf.ts:465:24
2018-02-12 19:17:50 +01:00
(current_memory)
)
)
(tee_local $3
;;@ (lib)/allocator/tlsf.ts:466:6
2018-02-25 00:13:39 +01:00
(tee_local $5
;;@ (lib)/allocator/tlsf.ts:466:24
2018-02-25 00:13:39 +01:00
(i32.shr_u
(i32.and
;;@ (lib)/allocator/tlsf.ts:466:25
2018-02-25 00:13:39 +01:00
(i32.add
;;@ (lib)/allocator/tlsf.ts:466:26
2018-02-25 00:13:39 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:466:33
2018-02-25 00:13:39 +01:00
(i32.const 65535)
)
(i32.const -65536)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:466:56
2018-02-25 00:13:39 +01:00
(i32.const 16)
2018-02-12 19:17:50 +01:00
)
)
)
(i32.gt_s
(get_local $1)
(get_local $3)
)
)
)
;;@ (lib)/allocator/tlsf.ts:468:37
2018-02-12 19:17:50 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:469:8
2018-02-25 00:13:39 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:469:12
2018-02-25 00:13:39 +01:00
(i32.lt_s
(grow_memory
;;@ (lib)/allocator/tlsf.ts:469:24
2018-02-25 00:13:39 +01:00
(get_local $5)
)
;;@ (lib)/allocator/tlsf.ts:469:39
2018-02-25 00:13:39 +01:00
(i32.const 0)
)
;;@ (lib)/allocator/tlsf.ts:470:10
2018-02-25 00:13:39 +01:00
(unreachable)
)
2018-02-12 19:17:50 +01:00
)
;;@ (lib)/allocator/tlsf.ts:474:11
2018-02-12 19:17:50 +01:00
(drop
(call "$(lib)/allocator/tlsf/Root#addMemory"
;;@ (lib)/allocator/tlsf.ts:474:6
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:474:21
2018-02-12 19:17:50 +01:00
(i32.shl
(get_local $4)
;;@ (lib)/allocator/tlsf.ts:474:43
2018-02-12 19:17:50 +01:00
(i32.const 16)
)
;;@ (lib)/allocator/tlsf.ts:474:47
2018-02-12 19:17:50 +01:00
(i32.shl
;;@ (lib)/allocator/tlsf.ts:473:23
2018-02-12 19:17:50 +01:00
(current_memory)
;;@ (lib)/allocator/tlsf.ts:474:68
2018-02-12 19:17:50 +01:00
(i32.const 16)
)
)
)
;;@ (lib)/allocator/tlsf.ts:475:6
2018-02-12 19:17:50 +01:00
(set_local $1
;;@ (lib)/allocator/tlsf.ts:475:14
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#search"
;;@ (lib)/allocator/tlsf.ts:475:21
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:475:33
2018-02-12 19:17:50 +01:00
(get_local $0)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:479:4
2018-02-12 19:17:50 +01:00
(set_local $1
;;@ (lib)/allocator/tlsf.ts:479:16
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#use"
;;@ (lib)/allocator/tlsf.ts:479:11
2018-02-12 19:17:50 +01:00
(get_local $2)
;;@ (lib)/allocator/tlsf.ts:479:20
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:479:27
2018-02-12 19:17:50 +01:00
(get_local $0)
)
)
)
)
;;@ (lib)/allocator/tlsf.ts:482:9
2018-02-12 19:17:50 +01:00
(get_local $1)
)
(func "$(lib)/allocator/tlsf/free_memory" (; 13 ;) (type $iv) (param $0 i32)
(local $1 i32)
(local $2 i32)
;;@ (lib)/allocator/tlsf.ts:488:2
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:488:6
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:490:4
2018-02-12 19:17:50 +01:00
(if
;;@ (lib)/allocator/tlsf.ts:489:4
2018-02-12 19:17:50 +01:00
(tee_local $1
;;@ (lib)/allocator/tlsf.ts:489:15
2018-02-12 19:17:50 +01:00
(get_global "$(lib)/allocator/tlsf/ROOT")
)
;;@ (lib)/allocator/tlsf.ts:490:14
2018-02-12 19:17:50 +01:00
(block
;;@ (lib)/allocator/tlsf.ts:494:6
2018-02-12 19:17:50 +01:00
(i32.store
;;@ (lib)/allocator/tlsf.ts:491:6
2018-02-12 19:17:50 +01:00
(tee_local $2
;;@ (lib)/allocator/tlsf.ts:491:18
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ (lib)/allocator/tlsf.ts:491:36
2018-02-12 19:17:50 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:491:43
(i32.const 8)
2018-02-12 19:17:50 +01:00
)
)
;;@ (lib)/allocator/tlsf.ts:494:19
2018-02-12 19:17:50 +01:00
(i32.or
;;@ (lib)/allocator/tlsf.ts:492:22
2018-02-12 19:17:50 +01:00
(i32.load
(get_local $2)
)
;;@ (lib)/allocator/tlsf.ts:494:31
2018-02-12 19:17:50 +01:00
(i32.const 1)
)
)
;;@ (lib)/allocator/tlsf.ts:495:11
2018-02-12 19:17:50 +01:00
(call "$(lib)/allocator/tlsf/Root#insert"
;;@ (lib)/allocator/tlsf.ts:495:6
2018-02-12 19:17:50 +01:00
(get_local $1)
;;@ (lib)/allocator/tlsf.ts:495:18
2018-02-12 19:17:50 +01:00
(i32.sub
;;@ (lib)/allocator/tlsf.ts:495:36
2018-02-19 23:07:35 +01:00
(get_local $0)
;;@ (lib)/allocator/tlsf.ts:495:43
(i32.const 8)
2018-02-19 23:07:35 +01:00
)
)
)
)
)
)
2018-02-12 19:17:50 +01:00
)