use crate::constant::Constant;
pub struct StackFrame {
pub registers: Vec<Constant>,
}
impl From<u32> for StackFrame
{
fn from(size: u32) -> Self {
let mut new_frame = StackFrame {
registers: Vec::new()
};
new_frame.registers.resize(size as usize, Constant::Int(0));
new_frame
}
}