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

Method reg

winch/codegen/src/codegen/context.rs:143–147  ·  view source on GitHub ↗

Request a specific register to the register allocator, spilling if not available.

(&mut self, named: Reg, masm: &mut M)

Source from the content-addressed store, hash-verified

141 /// Request a specific register to the register allocator,
142 /// spilling if not available.
143 pub fn reg<M: MacroAssembler>(&mut self, named: Reg, masm: &mut M) -> Result<Reg> {
144 self.regalloc.reg(named, |regalloc| {
145 Self::spill_impl(&mut self.stack, regalloc, &self.frame, masm)
146 })
147 }
148
149 /// Allocate a register for the given WebAssembly type.
150 pub fn reg_for_type<M: MacroAssembler>(

Callers 4

emit_table_getMethod · 0.45
withoutMethod · 0.45
pop_to_regMethod · 0.45
push_abi_resultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected