pub struct FunctionFrame {
pub label: String,
pub comment: String,
pub num_parameters: usize,
pub num_definitions: usize,
pub epilogue_label: String,
pub parameter_names: Vec<String>,
}Expand description
Everything end_function needs to splice prologue and epilogue around a
finished body (design §6.1).
Fields§
§label: String§comment: StringHuman-readable signature for the label comment, e.g. fn add(a, b).
num_parameters: usizeParameters already counting a method’s implicit this; spilled from
x1..x{n} into symbol slots 0..n-1.
num_definitions: usizeSymbolTable::num_definitions of the finished scope.
epilogue_label: StringLabel the body’s return paths branch to; the epilogue lands here.
parameter_names: Vec<String>Comments for the spilled parameter slots (name per parameter).
Auto Trait Implementations§
impl Freeze for FunctionFrame
impl RefUnwindSafe for FunctionFrame
impl Send for FunctionFrame
impl Sync for FunctionFrame
impl Unpin for FunctionFrame
impl UnsafeUnpin for FunctionFrame
impl UnwindSafe for FunctionFrame
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