MCPcopy Index your code
hub / github.com/apache/tvm / getOrAllocCallStack

Method getOrAllocCallStack

web/src/runtime.ts:100–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 6

registerFuncMethod · 0.80
getGlobalFuncInternalMethod · 0.80
typeKey2IndexMethod · 0.80
packedFuncMethod · 0.80

Calls 1

popMethod · 0.45

Tested by

no test coverage detected