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

Method runReturnOp

lib/executor/engine/controlInstr.cpp:147–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147Expect<void> Executor::runReturnOp(Runtime::StackManager &StackMgr,
148 AST::InstrView::iterator &PC) noexcept {
149 // Check stop token
150 if (unlikely(StopToken.exchange(0, std::memory_order_relaxed))) {
151 spdlog::error(ErrCode::Value::Interrupted);
152 return Unexpect(ErrCode::Value::Interrupted);
153 }
154 PC = StackMgr.popFrame();
155 return {};
156}
157
158Expect<void> Executor::runCallOp(Runtime::StackManager &StackMgr,
159 const AST::Instruction &Instr,

Callers

nothing calls this directly

Calls 5

unlikelyFunction · 0.85
UnexpectFunction · 0.85
exchangeMethod · 0.80
popFrameMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected