(&mut self, v: Value)
| 133 | } |
| 134 | |
| 135 | pub(super) fn emit_const(&mut self, v: Value) { |
| 136 | let i = self.chunk.push_const(v); |
| 137 | self.chunk.emit(OpCode::LoadConst, i); |
| 138 | } |
| 139 | |
| 140 | /* Emit a jump with a placeholder operand; returns its instruction index for later patching. */ |
| 141 | pub(super) fn emit_jump(&mut self, op: OpCode) -> usize { |
no test coverage detected