Show / Hide Table of Contents

Class Frame

Represents a single function call frame during virtual machine execution. Stores the return address, local variables, and number of passed arguments.

Inheritance
object
Frame
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
In this article
Back to top Generated by DocFX