()
| 98 | } |
| 99 | |
| 100 | getOrAllocCallStack(): CachedCallStack { |
| 101 | if (this.recycledCallStacks.length != 0) { |
| 102 | return this.recycledCallStacks.pop() as CachedCallStack; |
| 103 | } |
| 104 | return new CachedCallStack( |
| 105 | this.memory, |
| 106 | this.exports.TVMWasmAllocSpace as ctypes.FTVMWasmAllocSpace, |
| 107 | this.exports.TVMWasmFreeSpace as ctypes.FTVMWasmFreeSpace |
| 108 | ); |
| 109 | } |
| 110 | |
| 111 | recycleCallStack(callstack: CachedCallStack): void { |
| 112 | callstack.reset(); |
no test coverage detected