(&mut self)
| 289 | } |
| 290 | |
| 291 | fn next_fpr(&mut self) -> Option<u8> { |
| 292 | if let Some(f) = self.float.as_mut() { |
| 293 | (f.index < f.limit) |
| 294 | .then(|| Self::increment(&mut f.index)) |
| 295 | .flatten() |
| 296 | } else { |
| 297 | // If a single `RegClassEnv` is used, it means that the count is |
| 298 | // absolute, so we default to calling `next_gpr`. |
| 299 | self.next_gpr() |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | fn increment(index: &mut u8) -> Option<u8> { |
| 304 | let current = *index; |
no test coverage detected