Commit 416c88f6 authored by Eric Bruneton's avatar Eric Bruneton

Merge branch 'retronymm/asm-unfork/set-stack'

parents c2d59677 638dca4f
......@@ -178,6 +178,17 @@ public class Frame<V extends Value> {
return values[nLocals + index];
}
/**
* Sets the value of the given stack slot.
*
* @param index 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 index, final V value) throws IndexOutOfBoundsException {
values[nLocals + index] = value;
}
/** Clears the operand stack of this frame. */
public void clearStack() {
nStack = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment