Struct wasmtime_jit::trampoline::ir::StackSlotData
source · [−]pub struct StackSlotData {
pub kind: StackSlotKind,
pub size: u32,
pub offset: Option<i32>,
}
Expand description
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
sourceimpl StackSlotData
impl StackSlotData
sourcepub fn new(kind: StackSlotKind, size: u32) -> StackSlotData
pub fn new(kind: StackSlotKind, size: u32) -> StackSlotData
Create a stack slot with the specified byte size.
Trait Implementations
sourceimpl Clone for StackSlotData
impl Clone for StackSlotData
sourcepub fn clone(&self) -> StackSlotData
pub fn clone(&self) -> StackSlotData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StackSlotData
impl Debug for StackSlotData
sourceimpl<'de> Deserialize<'de> for StackSlotData
impl<'de> Deserialize<'de> for StackSlotData
sourcepub fn deserialize<__D>(
__deserializer: __D
) -> Result<StackSlotData, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StackSlotData, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for StackSlotData
impl Display for StackSlotData
sourceimpl PartialEq<StackSlotData> for StackSlotData
impl PartialEq<StackSlotData> for StackSlotData
sourcepub fn eq(&self, other: &StackSlotData) -> bool
pub fn eq(&self, other: &StackSlotData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &StackSlotData) -> bool
pub fn ne(&self, other: &StackSlotData) -> bool
This method tests for !=
.
sourceimpl Serialize for StackSlotData
impl Serialize for StackSlotData
sourcepub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for StackSlotData
impl StructuralEq for StackSlotData
impl StructuralPartialEq for StackSlotData
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more