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

Method getModule

include/runtime/stackmgr.h:210–215  ·  view source on GitHub ↗

Unsafe getter of module address.

Source from the content-addressed store, hash-verified

208
209 /// Unsafe getter of module address.
210 const Instance::ModuleInstance *getModule() const noexcept {
211 if (unlikely(FrameStack.empty())) {
212 return nullptr;
213 }
214 return FrameStack.back().Module;
215 }
216
217 /// Reset stack.
218 void reset() noexcept {

Callers 15

invokeMethod · 0.45
SavedThreadLocalMethod · 0.45
enterFunctionMethod · 0.45
throwExceptionMethod · 0.45
getDefTypeByIdxMethod · 0.45
getFuncInstByIdxMethod · 0.45
getTabInstByIdxMethod · 0.45
getMemInstByIdxMethod · 0.45
getTagInstByIdxMethod · 0.45
getGlobInstByIdxMethod · 0.45
getElemInstByIdxMethod · 0.45
getDataInstByIdxMethod · 0.45

Calls 3

unlikelyFunction · 0.85
backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected