pulley_interpreter::encode

Function push_frame_save

Source
pub fn push_frame_save<E>(
    into: &mut E,
    amt: impl Into<u32>,
    regs: impl Into<RegSet<XReg>>,
)
where E: Extend<u8>,
Available on crate feature encode only.
Expand description

Macro-instruction to enter a function, allocate some stack, and then save some registers.

This is equivalent to push_frame, stack_alloc32 amt, then saving all of regs to the top of the stack just allocated.