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

Method runBrOnNonNullOp

lib/executor/engine/controlInstr.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86Expect<void> Executor::runBrOnNonNullOp(Runtime::StackManager &StackMgr,
87 const AST::Instruction &Instr,
88 AST::InstrView::iterator &PC) noexcept {
89 if (!StackMgr.getTop().get<RefVariant>().isNull()) {
90 return runBrOp(StackMgr, Instr, PC);
91 }
92 StackMgr.pop();
93 return {};
94}
95
96Expect<void> Executor::runBrTableOp(Runtime::StackManager &StackMgr,
97 const AST::Instruction &Instr,

Callers

nothing calls this directly

Calls 2

isNullMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected