MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / proxyRefGetFuncSymbol

Method proxyRefGetFuncSymbol

lib/executor/engine/proxy.cpp:650–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650Expect<void *> Executor::proxyRefGetFuncSymbol(Runtime::StackManager &,
651 const RefVariant Ref) noexcept {
652 const auto *FuncInst = retrieveFuncRef(Ref);
653 assuming(FuncInst);
654 if (unlikely(!FuncInst->isCompiledFunction())) {
655 return nullptr;
656 }
657 return FuncInst->getSymbol().get();
658}
659
660} // namespace Executor
661} // namespace WasmEdge

Callers

nothing calls this directly

Calls 4

retrieveFuncRefFunction · 0.85
unlikelyFunction · 0.85
isCompiledFunctionMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected