Returns the address of the next instruction to be emitted.
(&self)
| 74 | impl Codegen { |
| 75 | /// Returns the address of the next instruction to be emitted. |
| 76 | pub(super) fn next_pc(&self) -> Address { |
| 77 | self.code.len() |
| 78 | } |
| 79 | |
| 80 | /// Appends a new instruction `op` generated at `pos` to the code and returns its address. |
| 81 | pub(super) fn emit(&mut self, op: u32, pos: LineCol) -> Address { |
no test coverage detected