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

Method wasmSafeCall

web/src/environment.ts:117–126  ·  view source on GitHub ↗
(
      self: Pointer,
      args: Pointer,
      num_args: number,
      result: Pointer
    )

Source from the content-addressed store, hash-verified

115 "emscripten_notify_memory_growth": (index: number): void => {}
116 };
117 const wasmSafeCall: ctypes.FTVMFFIWasmSafeCallType = (
118 self: Pointer,
119 args: Pointer,
120 num_args: number,
121 result: Pointer
122 ): number => {
123 const cfunc = this.packedCFuncTable[self];
124 assert(cfunc !== undefined);
125 return cfunc(self, args, num_args, result);
126 };
127
128 const wasmFunctionDeleter: ctypes.FTVMFFIWasmFunctionDeleter = (
129 self: Pointer

Callers

nothing calls this directly

Calls 1

assertFunction · 0.90

Tested by

no test coverage detected