[−][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
Auto Trait Implementations
impl Send for StackRef
impl Sync for StackRef
impl Unpin for StackRef
impl RefUnwindSafe for StackRef
impl UnwindSafe for StackRef
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> 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,