Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,20 @@ public V getStack(final int index) {
return values[nLocals + index];
}

/**
* Sets the value of the given stack slot.
*
* @param i
* the index of an operand stack slot.
* @param value
* the new value of the stack slot.
* @throws IndexOutOfBoundsException
* if the stack slot does not exist.
*/
public void setStack(final int i, final V value) throws IndexOutOfBoundsException {
values[i + nLocals] = value;
}

/** Clears the operand stack of this frame. */
public void clearStack() {
nStack = 0;
Expand Down