Merge branch 'master' into master+arith
Conflicts: src/main/java/net/runelite/deob/attributes/code/instructions/GetStatic.java
This commit is contained in:
@@ -237,11 +237,6 @@ public class ClassFile
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void buildInstructionGraph()
|
|
||||||
{
|
|
||||||
methods.buildInstructionGraph();
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean instanceOf(ClassFile other)
|
public boolean instanceOf(ClassFile other)
|
||||||
{
|
{
|
||||||
return this == other || interfaces.instanceOf(other) || (getParent() != null && getParent().instanceOf(other));
|
return this == other || interfaces.instanceOf(other) || (getParent() != null && getParent().instanceOf(other));
|
||||||
|
|||||||
@@ -47,10 +47,4 @@ public class ClassGroup
|
|||||||
for (ClassFile c : classes)
|
for (ClassFile c : classes)
|
||||||
c.buildClassGraph();
|
c.buildClassGraph();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void buildInstructionGraph()
|
|
||||||
{
|
|
||||||
for (ClassFile c : classes)
|
|
||||||
c.buildInstructionGraph();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,8 +28,6 @@ public class Field
|
|||||||
private Type type;
|
private Type type;
|
||||||
private Attributes attributes;
|
private Attributes attributes;
|
||||||
|
|
||||||
private ArrayList<Instruction> instructions = new ArrayList<Instruction>(); // instructions which reference this field
|
|
||||||
|
|
||||||
Field(Fields fields) throws IOException
|
Field(Fields fields) throws IOException
|
||||||
{
|
{
|
||||||
this.fields = fields;
|
this.fields = fields;
|
||||||
@@ -97,9 +95,4 @@ public class Field
|
|||||||
{
|
{
|
||||||
return attributes;
|
return attributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addReference(Instruction ins)
|
|
||||||
{
|
|
||||||
instructions.add(ins);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -116,14 +116,6 @@ public class Method
|
|||||||
return (Code) attributes.findType(AttributeType.CODE);
|
return (Code) attributes.findType(AttributeType.CODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void buildInstructionGraph()
|
|
||||||
{
|
|
||||||
Code code = getCode();
|
|
||||||
|
|
||||||
if (code != null)
|
|
||||||
code.buildInstructionGraph();
|
|
||||||
}
|
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public <T extends Instruction & LVTInstruction> List<T> findLVTInstructionsForVariable(int index)
|
public <T extends Instruction & LVTInstruction> List<T> findLVTInstructionsForVariable(int index)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -72,10 +72,4 @@ public class Methods
|
|||||||
return m;
|
return m;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void buildInstructionGraph()
|
|
||||||
{
|
|
||||||
for (Method m : methods)
|
|
||||||
m.buildInstructionGraph();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,9 +111,4 @@ public class Code extends Attribute
|
|||||||
{
|
{
|
||||||
this.instructions = instructions;
|
this.instructions = instructions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void buildInstructionGraph()
|
|
||||||
{
|
|
||||||
instructions.buildInstructionGraph();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -202,10 +202,6 @@ public abstract class Instruction
|
|||||||
to.from.add(this);
|
to.from.add(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void buildInstructionGraph()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract void execute(Frame e);
|
public abstract void execute(Frame e);
|
||||||
|
|
||||||
/* does this terminate a block? */
|
/* does this terminate a block? */
|
||||||
|
|||||||
@@ -211,12 +211,6 @@ public class Instructions
|
|||||||
((JumpingInstruction) i).buildJumpGraph();
|
((JumpingInstruction) i).buildJumpGraph();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void buildInstructionGraph()
|
|
||||||
{
|
|
||||||
for (Instruction i : instructions)
|
|
||||||
i.buildInstructionGraph();
|
|
||||||
}
|
|
||||||
|
|
||||||
public Code getCode()
|
public Code getCode()
|
||||||
{
|
{
|
||||||
return code;
|
return code;
|
||||||
|
|||||||
@@ -66,14 +66,6 @@ public class GetStatic extends Instruction implements GetFieldInstruction
|
|||||||
frame.addInstructionContext(ins);
|
frame.addInstructionContext(ins);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void buildInstructionGraph()
|
|
||||||
{
|
|
||||||
net.runelite.deob.Field f = getMyField();
|
|
||||||
if (f != null)
|
|
||||||
f.addReference(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Field getField()
|
public Field getField()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ public class FieldMover implements Deobfuscator
|
|||||||
}
|
}
|
||||||
|
|
||||||
to.getCode().getInstructions().buildJumpGraph();
|
to.getCode().getInstructions().buildJumpGraph();
|
||||||
frame.getMethod().getCode().getInstructions().buildInstructionGraph();
|
frame.getMethod().getCode().getInstructions().buildJumpGraph();
|
||||||
|
|
||||||
for (Instruction i : orderedIns.values())
|
for (Instruction i : orderedIns.values())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user