pub struct X86Frame;Expand description
Stack frame utilities for x86_64 code generation.
Implementations§
Source§impl X86Frame
impl X86Frame
Sourcepub fn generate_prologue<W: Write>(
writer: &mut W,
stack_size: usize,
) -> Result<(), Error>
pub fn generate_prologue<W: Write>( writer: &mut W, stack_size: usize, ) -> Result<(), Error>
Generates the function prologue: saves frame pointer and allocates stack space.
Sourcepub fn generate_epilogue<W: Write>(
writer: &mut W,
stack_size: usize,
) -> Result<(), Error>
pub fn generate_epilogue<W: Write>( writer: &mut W, stack_size: usize, ) -> Result<(), Error>
Generates the function epilogue: restores stack and frame pointer, then returns.
Sourcepub fn calculate_stack_offset(slot_index: usize) -> i32
pub fn calculate_stack_offset(slot_index: usize) -> i32
Calculates the stack slot offset from RBP for a given slot index.
Auto Trait Implementations§
impl Freeze for X86Frame
impl RefUnwindSafe for X86Frame
impl Send for X86Frame
impl Sync for X86Frame
impl Unpin for X86Frame
impl UnsafeUnpin for X86Frame
impl UnwindSafe for X86Frame
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