- Notifications
You must be signed in to change notification settings - Fork 670
/
Copy pathrtrace.ts
15 lines (12 loc) · 610 Bytes
/
rtrace.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import{BLOCK}from"./common";
exportdeclarefunctiononinit(heapBase: usize): void;
// Memory Allocator
exportdeclarefunctiononalloc(block: BLOCK): void;
exportdeclarefunctiononresize(block: BLOCK,oldSizeInclOverhead: usize): void;
exportdeclarefunctiononmove(oldBlock: BLOCK,newBlock: BLOCK): void;
exportdeclarefunctiononfree(block: BLOCK): void;
// Garbage collector
exportdeclarefunctiononvisit(block: BLOCK): bool;
exportdeclarefunctiononcollect(total: usize): void;
exportdeclarefunctiononinterrupt(total: usize): void;
exportdeclarefunctiononyield(total: usize): void;