-
getVar(varNo) → {*}
-
Get the value of a variable in this stack frame.
Parameters:
Name |
Type |
Description |
varNo |
number
|
the index of the variable's location. |
- Source:
Returns:
The value obtained from the specified variable index.
-
Type
-
*
-
peek() → {*}
-
Return the top value of the stack without modifying the frame's state.
- Source:
Returns:
The value retrieved from the top of the stack.
-
Type
-
*
-
pop() → {*}
-
Pop off the top value from the stack, and return it.
- Source:
Returns:
The value retrieved from the top of the stack.
-
Type
-
*
-
-
Push a new value to the top of the stack.
Parameters:
Name |
Type |
Description |
value |
*
|
the value to place onto the top of the stack. |
- Source:
Returns:
Returns self to allow for some degree of method chaining.
-
Type
-
MVM.StackFrame
-
-
Set a variable in this stack frame to a given value.
Parameters:
Name |
Type |
Description |
varNo |
number
|
the index of the variable's location. |
value |
*
|
the value to place into the variable store. |
- Source:
Returns:
Returns self to allow for some degree of method chaining.
-
Type
-
MVM.StackFrame