Struct cranelift_codegen::machinst::buffer::MachBufferFinalized
source · [−]Expand description
A MachBuffer
once emission is completed: holds generated code and records,
without fixups. This allows the type to be independent of the backend.
Fields
data: SmallVec<[u8; 1024]>
The buffer contents, as raw bytes.
Implementations
sourceimpl MachBufferFinalized
impl MachBufferFinalized
sourcepub fn get_srclocs_sorted(&self) -> &[MachSrcLoc]
pub fn get_srclocs_sorted(&self) -> &[MachSrcLoc]
Get a list of source location mapping tuples in sorted-by-start-offset order.
sourcepub fn total_size(&self) -> CodeOffset
pub fn total_size(&self) -> CodeOffset
Get the total required size for the code.
sourcepub fn stack_maps(&self) -> &[MachStackMap]
pub fn stack_maps(&self) -> &[MachStackMap]
Get the stack map metadata for this code.
Auto Trait Implementations
impl RefUnwindSafe for MachBufferFinalized
impl Send for MachBufferFinalized
impl Sync for MachBufferFinalized
impl Unpin for MachBufferFinalized
impl UnwindSafe for MachBufferFinalized
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