Computes the absolute index in `regs` for `reg`.
(&self, reg: Register)
| 218 | impl Context { |
| 219 | /// Computes the absolute index in `regs` for `reg`. |
| 220 | fn reg_index(&self, reg: Register) -> usize { |
| 221 | let (is_global, index) = reg.to_parts(); |
| 222 | let mut index = usize::from(index); |
| 223 | if !is_global { |
| 224 | index += self.fp; |
| 225 | } |
| 226 | index |
| 227 | } |
| 228 | |
| 229 | /// Gets the value of register `reg`. |
| 230 | /// |