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

Method runBrOnNullOp

lib/executor/engine/controlInstr.cpp:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76Expect<void> Executor::runBrOnNullOp(Runtime::StackManager &StackMgr,
77 const AST::Instruction &Instr,
78 AST::InstrView::iterator &PC) noexcept {
79 if (StackMgr.getTop().get<RefVariant>().isNull()) {
80 StackMgr.pop();
81 return runBrOp(StackMgr, Instr, PC);
82 }
83 return {};
84}
85
86Expect<void> Executor::runBrOnNonNullOp(Runtime::StackManager &StackMgr,
87 const AST::Instruction &Instr,

Callers

nothing calls this directly

Calls 2

isNullMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected