pub struct MachCallSite {
pub ret_addr: CodeOffset,
pub frame_offset: Option<u32>,
/* private fields */
}
Expand description
A call site record resulting from a compilation.
Fields§
§ret_addr: CodeOffset
The offset of the call’s return address, relative to the start of the buffer.
frame_offset: Option<u32>
The offset from the FP at this callsite down to the SP when
the call occurs, if known. In other words, the size of the
stack frame up to the saved FP slot. Useful to recover the
start of the stack frame and to look up dynamic contexts
stored in ExceptionContextLoc::SPOffset
.
If None
, the compiler backend did not specify a frame
offset. The runtime in use with the compiled code may require
the frame offset if exception handlers are present or dynamic
context is used, but that is not Cranelift’s concern: the
frame offset is optional at this level.
Trait Implementations§
Source§impl Clone for MachCallSite
impl Clone for MachCallSite
Source§fn clone(&self) -> MachCallSite
fn clone(&self) -> MachCallSite
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MachCallSite
impl Debug for MachCallSite
Source§impl<'de> Deserialize<'de> for MachCallSite
impl<'de> Deserialize<'de> for MachCallSite
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MachCallSite
impl PartialEq for MachCallSite
Source§impl Serialize for MachCallSite
impl Serialize for MachCallSite
impl StructuralPartialEq for MachCallSite
Auto Trait Implementations§
impl Freeze for MachCallSite
impl RefUnwindSafe for MachCallSite
impl Send for MachCallSite
impl Sync for MachCallSite
impl Unpin for MachCallSite
impl UnwindSafe for MachCallSite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more