Class Frame
Represents a single function call frame during virtual machine execution. Stores the return address, local variables, and number of passed arguments.
Inherited Members
Namespace: VM.Core
Assembly: VM.dll
Syntax
public class Frame
Properties
ArgumentCount
Number of arguments passed to the function. Used to track stack layout.
Declaration
public int ArgumentCount { get; set; }
Property Value
Type | Description |
---|---|
int |
Locals
Map of local variable slots (indexed by variable index) to values.
Declaration
public Dictionary<int, VmValue> Locals { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<int, VmValue> |
ReturnAddress
The instruction pointer to return to after function call completes.
Declaration
public int ReturnAddress { get; set; }
Property Value
Type | Description |
---|---|
int |