| 74 | } |
| 75 | |
| 76 | Expect<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 | |
| 86 | Expect<void> Executor::runBrOnNonNullOp(Runtime::StackManager &StackMgr, |
| 87 | const AST::Instruction &Instr, |