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

Method maybePopFrameOrHandler

include/runtime/stackmgr.h:197–207  ·  view source on GitHub ↗

Unsafe leave top label.

Source from the content-addressed store, hash-verified

195
196 /// Unsafe leave top label.
197 AST::InstrView::iterator
198 maybePopFrameOrHandler(AST::InstrView::iterator PC) noexcept {
199 if (FrameStack.size() > 1 && PC->isExprLast()) {
200 // Noted that there's always a base frame in stack.
201 return popFrame();
202 }
203 if (PC->isTryBlockLast()) {
204 FrameStack.back().HandlerStack.pop_back();
205 }
206 return PC;
207 }
208
209 /// Unsafe getter of module address.
210 const Instance::ModuleInstance *getModule() const noexcept {

Callers 1

executeMethod · 0.80

Calls 4

isExprLastMethod · 0.80
isTryBlockLastMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected