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

Method unwrap_reg

winch/codegen/src/stack.rs:209–214  ·  view source on GitHub ↗

Get the register representation of the value. # Panics This method will panic if the value is not a register.

(&self)

Source from the content-addressed store, hash-verified

207 /// # Panics
208 /// This method will panic if the value is not a register.
209 pub fn unwrap_reg(&self) -> TypedReg {
210 match self {
211 Self::Reg(tr) => *tr,
212 v => panic!("expected value {v:?} to be a register"),
213 }
214 }
215
216 /// Get the integer representation of the value.
217 ///

Callers 3

pop_regMethod · 0.45
pop_named_regMethod · 0.45
visit_call_indirectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected