MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / next_fpr

Method next_fpr

winch/codegen/src/isa/mod.rs:291–301  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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;

Callers 2

to_abi_operandMethod · 0.80
to_abi_operandMethod · 0.80

Calls 3

flattenMethod · 0.80
next_gprMethod · 0.80
as_mutMethod · 0.45

Tested by

no test coverage detected