Unsafe pop top frame.
| 125 | |
| 126 | /// Unsafe pop top frame. |
| 127 | AST::InstrView::iterator popFrame() noexcept { |
| 128 | assuming(!FrameStack.empty()); |
| 129 | assuming(FrameStack.back().VPos >= FrameStack.back().Locals); |
| 130 | assuming(FrameStack.back().VPos - FrameStack.back().Locals <= |
| 131 | ValueStack.size() - FrameStack.back().Arity); |
| 132 | ValueStack.erase(ValueStack.begin() + FrameStack.back().VPos - |
| 133 | FrameStack.back().Locals, |
| 134 | ValueStack.end() - FrameStack.back().Arity); |
| 135 | auto From = FrameStack.back().From; |
| 136 | FrameStack.pop_back(); |
| 137 | return From; |
| 138 | } |
| 139 | |
| 140 | // Get all frames |
| 141 | Span<const Frame> getFramesSpan() const { return FrameStack; } |
no test coverage detected