Struct wasmtime_jit::trampoline::ir::StackSlotData [−][src]
Contents of a stack slot.
Fields
kind: StackSlotKind
The kind of stack slot.
size: u32
Size of stack slot in bytes.
offset: Option<i32>
Offset of stack slot relative to the stack pointer in the caller.
On x86, the base address is the stack pointer before the return address was pushed. On RISC ISAs, the base address is the value of the stack pointer on entry to the function.
For OutgoingArg
stack slots, the offset is relative to the current function’s stack
pointer immediately before the call.
Implementations
impl StackSlotData
[src]
pub fn new(kind: StackSlotKind, size: u32) -> StackSlotData
[src]
Create a stack slot with the specified byte size.
pub fn alignment(&self, max_align: u32) -> u32
[src]
Get the alignment in bytes of this stack slot given the stack pointer alignment.
Trait Implementations
impl Clone for StackSlotData
[src]
pub fn clone(&self) -> StackSlotData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StackSlotData
[src]
impl<'de> Deserialize<'de> for StackSlotData
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StackSlotData, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<StackSlotData, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Display for StackSlotData
[src]
impl Eq for StackSlotData
[src]
impl PartialEq<StackSlotData> for StackSlotData
[src]
pub fn eq(&self, other: &StackSlotData) -> bool
[src]
pub fn ne(&self, other: &StackSlotData) -> bool
[src]
impl Serialize for StackSlotData
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for StackSlotData
[src]
impl StructuralPartialEq for StackSlotData
[src]
Auto Trait Implementations
impl RefUnwindSafe for StackSlotData
impl Send for StackSlotData
impl Sync for StackSlotData
impl Unpin for StackSlotData
impl UnwindSafe for StackSlotData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,