pub struct FinalizedMachCallSite<'a> {
pub ret_addr: CodeOffset,
pub frame_offset: Option<u32>,
pub exception_handlers: &'a [FinalizedMachExceptionHandler],
}Expand description
A call site record resulting from a compilation.
Fields§
§ret_addr: CodeOffsetThe 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.
exception_handlers: &'a [FinalizedMachExceptionHandler]Exception handlers at this callsite, with target offsets relative to the start of the buffer.
Trait Implementations§
Source§impl<'a> Clone for FinalizedMachCallSite<'a>
impl<'a> Clone for FinalizedMachCallSite<'a>
Source§fn clone(&self) -> FinalizedMachCallSite<'a>
fn clone(&self) -> FinalizedMachCallSite<'a>
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for FinalizedMachCallSite<'a>
impl<'a> Debug for FinalizedMachCallSite<'a>
Source§impl<'a> PartialEq for FinalizedMachCallSite<'a>
impl<'a> PartialEq for FinalizedMachCallSite<'a>
impl<'a> StructuralPartialEq for FinalizedMachCallSite<'a>
Auto Trait Implementations§
impl<'a> Freeze for FinalizedMachCallSite<'a>
impl<'a> RefUnwindSafe for FinalizedMachCallSite<'a>
impl<'a> Send for FinalizedMachCallSite<'a>
impl<'a> Sync for FinalizedMachCallSite<'a>
impl<'a> Unpin for FinalizedMachCallSite<'a>
impl<'a> UnwindSafe for FinalizedMachCallSite<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)