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

Method runGlobalGetOp

lib/executor/engine/variableInstr.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30Expect<void> Executor::runGlobalGetOp(Runtime::StackManager &StackMgr,
31 uint32_t Idx) const noexcept {
32 auto *GlobInst = getGlobInstByIdx(StackMgr, Idx);
33 assuming(GlobInst);
34 StackMgr.push(GlobInst->getValue());
35 return {};
36}
37
38Expect<void> Executor::runGlobalSetOp(Runtime::StackManager &StackMgr,
39 uint32_t Idx) const noexcept {

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
getValueMethod · 0.80

Tested by

no test coverage detected