Removes the EOF instruction from the program, if any.
(&mut self)
| 104 | |
| 105 | /// Removes the EOF instruction from the program, if any. |
| 106 | pub(super) fn pop_eof(&mut self) { |
| 107 | if let Some(instr) = self.code.pop() { |
| 108 | debug_assert_eq!(bytecode::make_eof(), instr); |
| 109 | self.instrs.pop(); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | /// Emits code to set `reg` to the default value for `vtype`. |
| 114 | pub(super) fn emit_default(&mut self, reg: Register, vtype: ExprType, pos: LineCol) { |