use of net.runelite.asm.execution.Frame in project runelite by runelite.
the class If0 method map.
// duplicated from If
@Override
public void map(ParallelExecutorMapping mapping, InstructionContext ctx, InstructionContext other) {
Frame branch1 = ctx.getBranches().get(0), branch2 = other.getBranches().get(0);
assert branch1.other == null;
assert branch2.other == null;
branch1.setOther(branch2);
branch2.setOther(branch1);
this.mapArguments(mapping, ctx, other);
}
use of net.runelite.asm.execution.Frame in project runelite by runelite.
the class If0 method mapOtherBranch.
// duplicated from If
protected void mapOtherBranch(ParallelExecutorMapping mapping, InstructionContext ctx, InstructionContext other) {
Frame f1 = ctx.getFrame(), f2 = other.getFrame(), branch1 = ctx.getBranches().get(0), branch2 = other.getBranches().get(0);
assert branch1.other == null;
assert branch2.other == null;
// currently f1 <-> f2
assert f1.other == f2;
assert f2.other == f1;
// change to f1 <-> branch2, f2 <-> branch1
f1.other = branch2;
branch2.other = f1;
f2.other = branch1;
branch1.other = f2;
this.mapArguments(mapping, ctx, other);
}
Aggregations