Push handler for try-catch block.
| 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 { |
no test coverage detected