pub struct Ppc64Frame;Implementations§
Source§impl Ppc64Frame
impl Ppc64Frame
Sourcepub fn aligned_frame_size(local_bytes: usize) -> usize
pub fn aligned_frame_size(local_bytes: usize) -> usize
Total stack frame size (linkage + locals), 16-byte aligned.
Sourcepub fn calculate_stack_offset(slot: usize) -> i32
pub fn calculate_stack_offset(slot: usize) -> i32
Calculate the stack offset for local slot n (0-based).
Slots start above the linkage area and grow upward in address
(i.e., at higher positive offsets from the old sp stored as
back-chain). In the prologue we subtract frame_size from r1,
so slot n is at LOCALS_BASE + n*8 from the new r1.
Sourcepub fn generate_prologue<W: Write>(
writer: &mut W,
local_bytes: usize,
) -> Result<()>
pub fn generate_prologue<W: Write>( writer: &mut W, local_bytes: usize, ) -> Result<()>
Emit the function prologue.
Saves LR, creates the stack frame, stores callee-saved r14-r31 if needed (we don’t track that here, so we just save LR and update the back-chain).
Auto Trait Implementations§
impl Freeze for Ppc64Frame
impl RefUnwindSafe for Ppc64Frame
impl Send for Ppc64Frame
impl Sync for Ppc64Frame
impl Unpin for Ppc64Frame
impl UnsafeUnpin for Ppc64Frame
impl UnwindSafe for Ppc64Frame
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