Add failing test, I think this should be passing

This commit is contained in:
Adam
2015-11-01 19:07:13 -05:00
parent 5e652a8799
commit 483bdbc165
5 changed files with 103 additions and 6 deletions

View File

@@ -13,10 +13,15 @@ import net.runelite.deob.attributes.code.instruction.types.DupInstruction;
public class Dup2_X1 extends Instruction implements DupInstruction
{
public Dup2_X1(Instructions instructions, InstructionType type, int pc) throws IOException
public Dup2_X1(Instructions instructions, InstructionType type, int pc)
{
super(instructions, type, pc);
}
public Dup2_X1(Instructions instructions)
{
super(instructions, InstructionType.DUP2_X1, -1);
}
@Override
public void execute(Frame frame)

View File

@@ -14,10 +14,15 @@ import java.io.IOException;
public class LConst_1 extends Instruction implements PushConstantInstruction
{
public LConst_1(Instructions instructions, InstructionType type, int pc) throws IOException
public LConst_1(Instructions instructions, InstructionType type, int pc)
{
super(instructions, type, pc);
}
public LConst_1(Instructions instructions)
{
super(instructions, InstructionType.LCONST_1, -1);
}
@Override
public void execute(Frame frame)

View File

@@ -83,4 +83,9 @@ public class LDC2_W extends Instruction implements PushConstantInstruction
value = entry;
return this;
}
public long getConstantAsLong()
{
return (long) value.getObject();
}
}

View File

@@ -16,10 +16,15 @@ import java.io.IOException;
public class LStore_0 extends Instruction implements LVTInstruction
{
public LStore_0(Instructions instructions, InstructionType type, int pc) throws IOException
public LStore_0(Instructions instructions, InstructionType type, int pc)
{
super(instructions, type, pc);
}
public LStore_0(Instructions instructions)
{
super(instructions, InstructionType.LSTORE_0, -1);
}
@Override
public void execute(Frame frame)