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

Method pushHandler

include/runtime/stackmgr.h:144–150  ·  view source on GitHub ↗

Push handler for try-catch block.

Source from the content-addressed store, hash-verified

142
143 /// Push handler for try-catch block.
144 void
145 pushHandler(AST::InstrView::iterator TryIt, uint32_t BlockParamNum,
146 Span<const AST::Instruction::CatchDescriptor> Catch) noexcept {
147 assuming(!FrameStack.empty());
148 FrameStack.back().HandlerStack.emplace_back(
149 TryIt, static_cast<uint32_t>(ValueStack.size()) - BlockParamNum, Catch);
150 }
151
152 /// Pop the top handler on the stack.
153 std::optional<Handler> popTopHandler(uint32_t AssocValSize) noexcept {

Callers 1

runTryTableOpMethod · 0.80

Calls 3

backMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected