pub struct CallFrame {
pub bp: usize,
pub blocks: Vec<CodeBlock>,
pub stack: Vec<Value>,
pub arg_stack: Vec<Value>,
}
Expand description
CallFrame Stores register values, Blocks of code, registers and arguments stack
Fields§
§bp: usize
pointer to current block
blocks: Vec<CodeBlock>
blocks
stack: Vec<Value>
registers stored in stack, default size of stack
is 4096
arg_stack: Vec<Value>
arguments stack, used by Call instruction