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: 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.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more