store pushes in instruction context too

This commit is contained in:
Adam
2015-06-24 14:48:30 -04:00
parent 85fc94dd57
commit 1eee5a48ae
129 changed files with 316 additions and 1 deletions

View File

@@ -9,7 +9,8 @@ public class InstructionContext
{
private Instruction ins;
private Frame frame;
private List<StackContext> pops = new ArrayList<>();
private List<StackContext> pops = new ArrayList<>(); // stack contexts popped by instruction execution
private List<StackContext> pushes = new ArrayList<>(); // stack contexts pushed by instruction execution
private List<VariableContext> reads = new ArrayList<>(); // lvt reads
public InstructionContext(Instruction i, Frame f)
@@ -24,6 +25,12 @@ public class InstructionContext
pops.add(c);
}
public void push(StackContext... ctx)
{
for (StackContext c : ctx)
pushes.add(c);
}
public void read(VariableContext... ctx)
{
for (VariableContext c : ctx)