[−][src]Struct cranelift_codegen::isa::StackRef
A method for referencing a stack slot in the current stack frame.
Stack slots are addressed with a constant offset from a base register. The base can be the stack pointer, the frame pointer, or (in the future) a zone register pointing to an inner zone of a large stack frame.
Fields
base: StackBase
The base register to use for addressing.
offset: StackOffset
Immediate offset from the base register to the first byte of the stack slot.
Methods
impl StackRef
[src]
pub fn masked(
ss: StackSlot,
mask: StackBaseMask,
frame: &StackSlots
) -> Option<Self>
[src]
ss: StackSlot,
mask: StackBaseMask,
frame: &StackSlots
) -> Option<Self>
Get a reference to the stack slot ss
using one of the base pointers in mask
.
pub fn sp(ss: StackSlot, frame: &StackSlots) -> Self
[src]
Get a reference to ss
using the stack pointer as a base.
Trait Implementations
impl Clone for StackRef
[src]
fn clone(&self) -> StackRef
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for StackRef
[src]
impl Copy for StackRef
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,