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

Method getTagInstByIdx

lib/executor/helper.cpp:402–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402Runtime::Instance::TagInstance *
403Executor::getTagInstByIdx(Runtime::StackManager &StackMgr,
404 const uint32_t Idx) const {
405 const auto *ModInst = StackMgr.getModule();
406 // When the top frame is a dummy frame, the instance cannot be found.
407 if (unlikely(ModInst == nullptr)) {
408 return nullptr;
409 }
410 return ModInst->unsafeGetTag(Idx);
411}
412
413Runtime::Instance::GlobalInstance *
414Executor::getGlobInstByIdx(Runtime::StackManager &StackMgr,

Callers

nothing calls this directly

Calls 3

unlikelyFunction · 0.85
unsafeGetTagMethod · 0.80
getModuleMethod · 0.45

Tested by

no test coverage detected