mirror of
https://github.com/revanced/smali.git
synced 2025-05-20 16:07:05 +02:00
Add support back for jumbo instructions
Support for these is no longer controlled by the api, but rather by the -J option.
This commit is contained in:
parent
03935b392e
commit
9a9a664af2
@ -34,6 +34,7 @@ import org.jf.util.IndentingWriter;
|
||||
import org.jf.dexlib.*;
|
||||
import org.jf.dexlib.Code.Analysis.ValidationException;
|
||||
import org.jf.dexlib.Code.Format.Instruction21c;
|
||||
import org.jf.dexlib.Code.Format.Instruction41c;
|
||||
import org.jf.dexlib.Code.Instruction;
|
||||
import org.jf.dexlib.EncodedValue.EncodedValue;
|
||||
import org.jf.dexlib.Util.AccessFlags;
|
||||
@ -86,6 +87,18 @@ public class ClassDefinition {
|
||||
fieldsSetInStaticConstructor.put(fieldIdItem.getIndex(), fieldIdItem);
|
||||
break;
|
||||
}
|
||||
case SPUT_JUMBO:
|
||||
case SPUT_BOOLEAN_JUMBO:
|
||||
case SPUT_BYTE_JUMBO:
|
||||
case SPUT_CHAR_JUMBO:
|
||||
case SPUT_OBJECT_JUMBO:
|
||||
case SPUT_SHORT_JUMBO:
|
||||
case SPUT_WIDE_JUMBO: {
|
||||
Instruction41c ins = (Instruction41c)instruction;
|
||||
FieldIdItem fieldIdItem = (FieldIdItem)ins.getReferencedItem();
|
||||
fieldsSetInStaticConstructor.put(fieldIdItem.getIndex(), fieldIdItem);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -106,6 +106,7 @@ public class InstructionMethodItem<T extends Instruction> extends MethodItem {
|
||||
return true;
|
||||
case Format21c:
|
||||
case Format31c:
|
||||
case Format41c:
|
||||
writeOpcode(writer);
|
||||
writer.write(' ');
|
||||
writeFirstRegister(writer);
|
||||
@ -141,6 +142,7 @@ public class InstructionMethodItem<T extends Instruction> extends MethodItem {
|
||||
writeLiteral(writer);
|
||||
return true;
|
||||
case Format22c:
|
||||
case Format52c:
|
||||
writeOpcode(writer);
|
||||
writer.write(' ');
|
||||
writeFirstRegister(writer);
|
||||
@ -206,6 +208,7 @@ public class InstructionMethodItem<T extends Instruction> extends MethodItem {
|
||||
writeVtableIndex(writer);
|
||||
return true;
|
||||
case Format3rc:
|
||||
case Format5rc:
|
||||
writeOpcode(writer);
|
||||
writer.write(' ');
|
||||
writeInvokeRangeRegisters(writer);
|
||||
|
@ -127,6 +127,7 @@ public class main {
|
||||
List<String> bootClassPathDirs = new ArrayList<String>();
|
||||
bootClassPathDirs.add(".");
|
||||
String inlineTable = null;
|
||||
boolean jumboInstructions = false;
|
||||
|
||||
String[] remainingArgs = commandLine.getArgs();
|
||||
|
||||
@ -232,6 +233,9 @@ public class main {
|
||||
case 'I':
|
||||
ignoreErrors = true;
|
||||
break;
|
||||
case 'J':
|
||||
jumboInstructions = true;
|
||||
break;
|
||||
case 'W':
|
||||
write = true;
|
||||
outputDexFileName = commandLine.getOptionValue("W");
|
||||
@ -270,7 +274,7 @@ public class main {
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
Opcode.updateMapsForApiLevel(apiLevel);
|
||||
Opcode.updateMapsForApiLevel(apiLevel, jumboInstructions);
|
||||
|
||||
//Read in and parse the dex file
|
||||
DexFile dexFile = new DexFile(dexFileFile, !fixRegisters, false);
|
||||
@ -453,6 +457,12 @@ public class main {
|
||||
" behavior is to stop disassembling and exit once an error is encountered")
|
||||
.create("I");
|
||||
|
||||
Option jumboInstructionsOption = OptionBuilder.withLongOpt("jumbo-instructions")
|
||||
.withDescription("adds support for the jumbo opcodes that were temporarily available around the" +
|
||||
" ics timeframe. Note that support for these opcodes was removed from newer version of" +
|
||||
" dalvik. You shouldn't use this option unless you know the dex file contains these jumbo" +
|
||||
" opcodes.")
|
||||
.create("J");
|
||||
|
||||
Option noDisassemblyOption = OptionBuilder.withLongOpt("no-disassembly")
|
||||
.withDescription("suppresses the output of the disassembly")
|
||||
@ -500,6 +510,7 @@ public class main {
|
||||
|
||||
debugOptions.addOption(dumpOption);
|
||||
debugOptions.addOption(ignoreErrorsOption);
|
||||
debugOptions.addOption(jumboInstructionsOption);
|
||||
debugOptions.addOption(noDisassemblyOption);
|
||||
debugOptions.addOption(writeDexOption);
|
||||
debugOptions.addOption(sortOption);
|
||||
|
@ -703,28 +703,34 @@ public class MethodAnalyzer {
|
||||
analyzeConstString(analyzedInstruction);
|
||||
return true;
|
||||
case CONST_CLASS:
|
||||
case CONST_CLASS_JUMBO:
|
||||
analyzeConstClass(analyzedInstruction);
|
||||
return true;
|
||||
case MONITOR_ENTER:
|
||||
case MONITOR_EXIT:
|
||||
return true;
|
||||
case CHECK_CAST:
|
||||
case CHECK_CAST_JUMBO:
|
||||
analyzeCheckCast(analyzedInstruction);
|
||||
return true;
|
||||
case INSTANCE_OF:
|
||||
case INSTANCE_OF_JUMBO:
|
||||
analyzeInstanceOf(analyzedInstruction);
|
||||
return true;
|
||||
case ARRAY_LENGTH:
|
||||
analyzeArrayLength(analyzedInstruction);
|
||||
return true;
|
||||
case NEW_INSTANCE:
|
||||
case NEW_INSTANCE_JUMBO:
|
||||
analyzeNewInstance(analyzedInstruction);
|
||||
return true;
|
||||
case NEW_ARRAY:
|
||||
case NEW_ARRAY_JUMBO:
|
||||
analyzeNewArray(analyzedInstruction);
|
||||
return true;
|
||||
case FILLED_NEW_ARRAY:
|
||||
case FILLED_NEW_ARRAY_RANGE:
|
||||
case FILLED_NEW_ARRAY_JUMBO:
|
||||
return true;
|
||||
case FILL_ARRAY_DATA:
|
||||
analyzeArrayDataOrSwitch(analyzedInstruction);
|
||||
@ -787,58 +793,86 @@ public class MethodAnalyzer {
|
||||
case APUT_OBJECT:
|
||||
return true;
|
||||
case IGET:
|
||||
case IGET_JUMBO:
|
||||
analyze32BitPrimitiveIget(analyzedInstruction, RegisterType.Category.Integer);
|
||||
return true;
|
||||
case IGET_BOOLEAN:
|
||||
case IGET_BOOLEAN_JUMBO:
|
||||
analyze32BitPrimitiveIget(analyzedInstruction, RegisterType.Category.Boolean);
|
||||
return true;
|
||||
case IGET_BYTE:
|
||||
case IGET_BYTE_JUMBO:
|
||||
analyze32BitPrimitiveIget(analyzedInstruction, RegisterType.Category.Byte);
|
||||
return true;
|
||||
case IGET_CHAR:
|
||||
case IGET_CHAR_JUMBO:
|
||||
analyze32BitPrimitiveIget(analyzedInstruction, RegisterType.Category.Char);
|
||||
return true;
|
||||
case IGET_SHORT:
|
||||
case IGET_SHORT_JUMBO:
|
||||
analyze32BitPrimitiveIget(analyzedInstruction, RegisterType.Category.Short);
|
||||
return true;
|
||||
case IGET_WIDE:
|
||||
case IGET_WIDE_JUMBO:
|
||||
case IGET_OBJECT:
|
||||
case IGET_OBJECT_JUMBO:
|
||||
analyzeIgetWideObject(analyzedInstruction);
|
||||
return true;
|
||||
case IPUT:
|
||||
case IPUT_JUMBO:
|
||||
case IPUT_BOOLEAN:
|
||||
case IPUT_BOOLEAN_JUMBO:
|
||||
case IPUT_BYTE:
|
||||
case IPUT_BYTE_JUMBO:
|
||||
case IPUT_CHAR:
|
||||
case IPUT_CHAR_JUMBO:
|
||||
case IPUT_SHORT:
|
||||
case IPUT_SHORT_JUMBO:
|
||||
case IPUT_WIDE:
|
||||
case IPUT_WIDE_JUMBO:
|
||||
case IPUT_OBJECT:
|
||||
case IPUT_OBJECT_JUMBO:
|
||||
return true;
|
||||
case SGET:
|
||||
case SGET_JUMBO:
|
||||
analyze32BitPrimitiveSget(analyzedInstruction, RegisterType.Category.Integer);
|
||||
return true;
|
||||
case SGET_BOOLEAN:
|
||||
case SGET_BOOLEAN_JUMBO:
|
||||
analyze32BitPrimitiveSget(analyzedInstruction, RegisterType.Category.Boolean);
|
||||
return true;
|
||||
case SGET_BYTE:
|
||||
case SGET_BYTE_JUMBO:
|
||||
analyze32BitPrimitiveSget(analyzedInstruction, RegisterType.Category.Byte);
|
||||
return true;
|
||||
case SGET_CHAR:
|
||||
case SGET_CHAR_JUMBO:
|
||||
analyze32BitPrimitiveSget(analyzedInstruction, RegisterType.Category.Char);
|
||||
return true;
|
||||
case SGET_SHORT:
|
||||
case SGET_SHORT_JUMBO:
|
||||
analyze32BitPrimitiveSget(analyzedInstruction, RegisterType.Category.Short);
|
||||
return true;
|
||||
case SGET_WIDE:
|
||||
case SGET_WIDE_JUMBO:
|
||||
case SGET_OBJECT:
|
||||
case SGET_OBJECT_JUMBO:
|
||||
analyzeSgetWideObject(analyzedInstruction);
|
||||
return true;
|
||||
case SPUT:
|
||||
case SPUT_JUMBO:
|
||||
case SPUT_BOOLEAN:
|
||||
case SPUT_BOOLEAN_JUMBO:
|
||||
case SPUT_BYTE:
|
||||
case SPUT_BYTE_JUMBO:
|
||||
case SPUT_CHAR:
|
||||
case SPUT_CHAR_JUMBO:
|
||||
case SPUT_SHORT:
|
||||
case SPUT_SHORT_JUMBO:
|
||||
case SPUT_WIDE:
|
||||
case SPUT_WIDE_JUMBO:
|
||||
case SPUT_OBJECT:
|
||||
case SPUT_OBJECT_JUMBO:
|
||||
return true;
|
||||
case INVOKE_VIRTUAL:
|
||||
case INVOKE_SUPER:
|
||||
@ -849,13 +883,18 @@ public class MethodAnalyzer {
|
||||
case INVOKE_STATIC:
|
||||
case INVOKE_INTERFACE:
|
||||
case INVOKE_VIRTUAL_RANGE:
|
||||
case INVOKE_VIRTUAL_JUMBO:
|
||||
case INVOKE_SUPER_RANGE:
|
||||
case INVOKE_SUPER_JUMBO:
|
||||
return true;
|
||||
case INVOKE_DIRECT_RANGE:
|
||||
case INVOKE_DIRECT_JUMBO:
|
||||
analyzeInvokeDirectRange(analyzedInstruction);
|
||||
return true;
|
||||
case INVOKE_STATIC_RANGE:
|
||||
case INVOKE_STATIC_JUMBO:
|
||||
case INVOKE_INTERFACE_RANGE:
|
||||
case INVOKE_INTERFACE_JUMBO:
|
||||
return true;
|
||||
case NEG_INT:
|
||||
case NOT_INT:
|
||||
@ -1076,6 +1115,23 @@ public class MethodAnalyzer {
|
||||
case SPUT_OBJECT_VOLATILE:
|
||||
analyzePutGetVolatile(analyzedInstruction);
|
||||
return true;
|
||||
case INVOKE_OBJECT_INIT_JUMBO:
|
||||
analyzeInvokeObjectInitJumbo(analyzedInstruction);
|
||||
return true;
|
||||
case IGET_VOLATILE_JUMBO:
|
||||
case IGET_WIDE_VOLATILE_JUMBO:
|
||||
case IGET_OBJECT_VOLATILE_JUMBO:
|
||||
case IPUT_VOLATILE_JUMBO:
|
||||
case IPUT_WIDE_VOLATILE_JUMBO:
|
||||
case IPUT_OBJECT_VOLATILE_JUMBO:
|
||||
case SGET_VOLATILE_JUMBO:
|
||||
case SGET_WIDE_VOLATILE_JUMBO:
|
||||
case SGET_OBJECT_VOLATILE_JUMBO:
|
||||
case SPUT_VOLATILE_JUMBO:
|
||||
case SPUT_WIDE_VOLATILE_JUMBO:
|
||||
case SPUT_OBJECT_VOLATILE_JUMBO:
|
||||
analyzePutGetVolatile(analyzedInstruction);
|
||||
return true;
|
||||
default:
|
||||
assert false;
|
||||
return true;
|
||||
@ -1141,6 +1197,7 @@ public class MethodAnalyzer {
|
||||
case CONST_STRING_JUMBO:
|
||||
return;
|
||||
case CONST_CLASS:
|
||||
case CONST_CLASS_JUMBO:
|
||||
verifyConstClass(analyzedInstruction);
|
||||
return;
|
||||
case MONITOR_ENTER:
|
||||
@ -1148,15 +1205,18 @@ public class MethodAnalyzer {
|
||||
verifyMonitor(analyzedInstruction);
|
||||
return;
|
||||
case CHECK_CAST:
|
||||
case CHECK_CAST_JUMBO:
|
||||
verifyCheckCast(analyzedInstruction);
|
||||
return;
|
||||
case INSTANCE_OF:
|
||||
case INSTANCE_OF_JUMBO:
|
||||
verifyInstanceOf(analyzedInstruction);
|
||||
return;
|
||||
case ARRAY_LENGTH:
|
||||
verifyArrayLength(analyzedInstruction);
|
||||
return;
|
||||
case NEW_INSTANCE:
|
||||
case NEW_INSTANCE_JUMBO:
|
||||
verifyNewInstance(analyzedInstruction);
|
||||
return;
|
||||
case NEW_ARRAY:
|
||||
@ -1566,6 +1626,19 @@ public class MethodAnalyzer {
|
||||
case IPUT_OBJECT_VOLATILE:
|
||||
case SGET_OBJECT_VOLATILE:
|
||||
case SPUT_OBJECT_VOLATILE:
|
||||
case INVOKE_OBJECT_INIT_JUMBO:
|
||||
case IGET_VOLATILE_JUMBO:
|
||||
case IGET_WIDE_VOLATILE_JUMBO:
|
||||
case IGET_OBJECT_VOLATILE_JUMBO:
|
||||
case IPUT_VOLATILE_JUMBO:
|
||||
case IPUT_WIDE_VOLATILE_JUMBO:
|
||||
case IPUT_OBJECT_VOLATILE_JUMBO:
|
||||
case SGET_VOLATILE_JUMBO:
|
||||
case SGET_WIDE_VOLATILE_JUMBO:
|
||||
case SGET_OBJECT_VOLATILE_JUMBO:
|
||||
case SPUT_VOLATILE_JUMBO:
|
||||
case SPUT_WIDE_VOLATILE_JUMBO:
|
||||
case SPUT_OBJECT_VOLATILE_JUMBO:
|
||||
//TODO: throw validation exception?
|
||||
default:
|
||||
assert false;
|
||||
@ -3622,12 +3695,23 @@ public class MethodAnalyzer {
|
||||
|
||||
if (analyzedInstruction.instruction.opcode.isOdexedStaticVolatile()) {
|
||||
SingleRegisterInstruction instruction = (SingleRegisterInstruction)analyzedInstruction.instruction;
|
||||
deodexedInstruction = new Instruction21c(opcode, (byte)instruction.getRegisterA(), fieldIdItem);
|
||||
if (analyzedInstruction.instruction.opcode.format == Format.Format21c) {
|
||||
deodexedInstruction = new Instruction21c(opcode, (byte)instruction.getRegisterA(), fieldIdItem);
|
||||
} else {
|
||||
assert(analyzedInstruction.instruction.opcode.format == Format.Format41c);
|
||||
deodexedInstruction = new Instruction41c(opcode, (byte)instruction.getRegisterA(), fieldIdItem);
|
||||
}
|
||||
} else {
|
||||
TwoRegisterInstruction instruction = (TwoRegisterInstruction)analyzedInstruction.instruction;
|
||||
|
||||
deodexedInstruction = new Instruction22c(opcode, (byte)instruction.getRegisterA(),
|
||||
(byte)instruction.getRegisterB(), fieldIdItem);
|
||||
if (analyzedInstruction.instruction.opcode.format == Format.Format22c) {
|
||||
deodexedInstruction = new Instruction22c(opcode, (byte)instruction.getRegisterA(),
|
||||
(byte)instruction.getRegisterB(), fieldIdItem);
|
||||
} else {
|
||||
assert(analyzedInstruction.instruction.opcode.format == Format.Format52c);
|
||||
deodexedInstruction = new Instruction52c(opcode, (byte)instruction.getRegisterA(),
|
||||
(byte)instruction.getRegisterB(), fieldIdItem);
|
||||
}
|
||||
}
|
||||
|
||||
analyzedInstruction.setDeodexedInstruction(deodexedInstruction);
|
||||
@ -3638,6 +3722,17 @@ public class MethodAnalyzer {
|
||||
return true;
|
||||
}
|
||||
|
||||
private void analyzeInvokeObjectInitJumbo(AnalyzedInstruction analyzedInstruction) {
|
||||
Instruction5rc instruction = (Instruction5rc)analyzedInstruction.instruction;
|
||||
|
||||
Instruction5rc deodexedInstruction = new Instruction5rc(Opcode.INVOKE_DIRECT_JUMBO,
|
||||
instruction.getRegCount(), instruction.getStartRegister(), instruction.getReferencedItem());
|
||||
|
||||
analyzedInstruction.setDeodexedInstruction(deodexedInstruction);
|
||||
|
||||
analyzeInstruction(analyzedInstruction);
|
||||
}
|
||||
|
||||
private static boolean checkArrayFieldAssignment(RegisterType.Category arrayFieldCategory,
|
||||
RegisterType.Category instructionCategory) {
|
||||
if (arrayFieldCategory == instructionCategory) {
|
||||
|
@ -178,6 +178,107 @@ public class OdexedFieldInstructionMapper {
|
||||
}
|
||||
};
|
||||
|
||||
private static Opcode[][][][] jumboOpcodeMap = new Opcode[][][][] {
|
||||
//get opcodes
|
||||
new Opcode[][][] {
|
||||
//iget volatile
|
||||
new Opcode[][] {
|
||||
//odexed
|
||||
new Opcode[] {
|
||||
/*Z*/ Opcode.IGET_VOLATILE_JUMBO,
|
||||
/*B*/ Opcode.IGET_VOLATILE_JUMBO,
|
||||
/*S*/ Opcode.IGET_VOLATILE_JUMBO,
|
||||
/*C*/ Opcode.IGET_VOLATILE_JUMBO,
|
||||
/*I,F*/ Opcode.IGET_VOLATILE_JUMBO,
|
||||
/*J,D*/ Opcode.IGET_WIDE_VOLATILE_JUMBO,
|
||||
/*L,[*/ Opcode.IGET_OBJECT_VOLATILE_JUMBO
|
||||
},
|
||||
//deodexed
|
||||
new Opcode[] {
|
||||
/*Z*/ Opcode.IGET_BOOLEAN_JUMBO,
|
||||
/*B*/ Opcode.IGET_BYTE_JUMBO,
|
||||
/*S*/ Opcode.IGET_SHORT_JUMBO,
|
||||
/*C*/ Opcode.IGET_CHAR_JUMBO,
|
||||
/*I,F*/ Opcode.IGET_JUMBO,
|
||||
/*J,D*/ Opcode.IGET_WIDE_JUMBO,
|
||||
/*L,[*/ Opcode.IGET_OBJECT_JUMBO
|
||||
}
|
||||
},
|
||||
//sget volatile
|
||||
new Opcode[][] {
|
||||
//odexed
|
||||
new Opcode[] {
|
||||
/*Z*/ Opcode.SGET_VOLATILE_JUMBO,
|
||||
/*B*/ Opcode.SGET_VOLATILE_JUMBO,
|
||||
/*S*/ Opcode.SGET_VOLATILE_JUMBO,
|
||||
/*C*/ Opcode.SGET_VOLATILE_JUMBO,
|
||||
/*I,F*/ Opcode.SGET_VOLATILE_JUMBO,
|
||||
/*J,D*/ Opcode.SGET_WIDE_VOLATILE_JUMBO,
|
||||
/*L,[*/ Opcode.SGET_OBJECT_VOLATILE_JUMBO
|
||||
},
|
||||
//deodexed
|
||||
new Opcode[] {
|
||||
/*Z*/ Opcode.SGET_BOOLEAN_JUMBO,
|
||||
/*B*/ Opcode.SGET_BYTE_JUMBO,
|
||||
/*S*/ Opcode.SGET_SHORT_JUMBO,
|
||||
/*C*/ Opcode.SGET_CHAR_JUMBO,
|
||||
/*I,F*/ Opcode.SGET_JUMBO,
|
||||
/*J,D*/ Opcode.SGET_WIDE_JUMBO,
|
||||
/*L,[*/ Opcode.SGET_OBJECT_JUMBO
|
||||
}
|
||||
}
|
||||
},
|
||||
//put opcodes
|
||||
new Opcode[][][] {
|
||||
//iput volatile
|
||||
new Opcode[][] {
|
||||
//odexed
|
||||
new Opcode[] {
|
||||
/*Z*/ Opcode.IPUT_VOLATILE_JUMBO,
|
||||
/*B*/ Opcode.IPUT_VOLATILE_JUMBO,
|
||||
/*S*/ Opcode.IPUT_VOLATILE_JUMBO,
|
||||
/*C*/ Opcode.IPUT_VOLATILE_JUMBO,
|
||||
/*I,F*/ Opcode.IPUT_VOLATILE_JUMBO,
|
||||
/*J,D*/ Opcode.IPUT_WIDE_VOLATILE_JUMBO,
|
||||
/*L,[*/ Opcode.IPUT_OBJECT_VOLATILE_JUMBO
|
||||
},
|
||||
//deodexed
|
||||
new Opcode[] {
|
||||
/*Z*/ Opcode.IPUT_BOOLEAN_JUMBO,
|
||||
/*B*/ Opcode.IPUT_BYTE_JUMBO,
|
||||
/*S*/ Opcode.IPUT_SHORT_JUMBO,
|
||||
/*C*/ Opcode.IPUT_CHAR_JUMBO,
|
||||
/*I,F*/ Opcode.IPUT_JUMBO,
|
||||
/*J,D*/ Opcode.IPUT_WIDE_JUMBO,
|
||||
/*L,[*/ Opcode.IPUT_OBJECT_JUMBO
|
||||
}
|
||||
},
|
||||
//sput volatile
|
||||
new Opcode[][] {
|
||||
//odexed
|
||||
new Opcode[] {
|
||||
/*Z*/ Opcode.SPUT_VOLATILE_JUMBO,
|
||||
/*B*/ Opcode.SPUT_VOLATILE_JUMBO,
|
||||
/*S*/ Opcode.SPUT_VOLATILE_JUMBO,
|
||||
/*C*/ Opcode.SPUT_VOLATILE_JUMBO,
|
||||
/*I,F*/ Opcode.SPUT_VOLATILE_JUMBO,
|
||||
/*J,D*/ Opcode.SPUT_WIDE_VOLATILE_JUMBO,
|
||||
/*L,[*/ Opcode.SPUT_OBJECT_VOLATILE_JUMBO
|
||||
},
|
||||
//deodexed
|
||||
new Opcode[] {
|
||||
/*Z*/ Opcode.SPUT_BOOLEAN_JUMBO,
|
||||
/*B*/ Opcode.SPUT_BYTE_JUMBO,
|
||||
/*S*/ Opcode.SPUT_SHORT_JUMBO,
|
||||
/*C*/ Opcode.SPUT_CHAR_JUMBO,
|
||||
/*I,F*/ Opcode.SPUT_JUMBO,
|
||||
/*J,D*/ Opcode.SPUT_WIDE_JUMBO,
|
||||
/*L,[*/ Opcode.SPUT_OBJECT_JUMBO
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private static int getTypeIndex(char type) {
|
||||
switch (type) {
|
||||
case 'Z':
|
||||
@ -214,14 +315,20 @@ public class OdexedFieldInstructionMapper {
|
||||
}
|
||||
|
||||
static Opcode getAndCheckDeodexedOpcodeForOdexedOpcode(String fieldType, Opcode odexedOpcode) {
|
||||
boolean jumbo = odexedOpcode.isJumboOpcode();
|
||||
int opcodeType = odexedOpcode.setsRegister()?0:1;
|
||||
int opcodeSubType = getOpcodeSubtype(odexedOpcode);
|
||||
int typeIndex = getTypeIndex(fieldType.charAt(0));
|
||||
|
||||
Opcode correctOdexedOpcode, deodexedOpcode;
|
||||
|
||||
correctOdexedOpcode = opcodeMap[opcodeType][opcodeSubType][0][typeIndex];
|
||||
deodexedOpcode = opcodeMap[opcodeType][opcodeSubType][1][typeIndex];
|
||||
if (jumbo) {
|
||||
correctOdexedOpcode = jumboOpcodeMap[opcodeType][opcodeSubType-1][0][typeIndex];
|
||||
deodexedOpcode = jumboOpcodeMap[opcodeType][opcodeSubType-1][1][typeIndex];
|
||||
} else {
|
||||
correctOdexedOpcode = opcodeMap[opcodeType][opcodeSubType][0][typeIndex];
|
||||
deodexedOpcode = opcodeMap[opcodeType][opcodeSubType][1][typeIndex];
|
||||
}
|
||||
|
||||
if (correctOdexedOpcode != odexedOpcode) {
|
||||
throw new ValidationException(String.format("Incorrect field type \"%s\" for %s", fieldType,
|
||||
|
@ -60,7 +60,10 @@ public enum Format {
|
||||
Format3rc(Instruction3rc.Factory, 6),
|
||||
Format3rmi(Instruction3rmi.Factory, 6),
|
||||
Format3rms(Instruction3rms.Factory, 6),
|
||||
Format41c(Instruction41c.Factory, 8),
|
||||
Format51l(Instruction51l.Factory, 10),
|
||||
Format52c(Instruction52c.Factory, 10),
|
||||
Format5rc(Instruction5rc.Factory, 10),
|
||||
ArrayData(null, -1, true),
|
||||
PackedSwitchData(null, -1, true),
|
||||
SparseSwitchData(null, -1, true),
|
||||
|
@ -100,7 +100,11 @@ public class Instruction21c extends InstructionWithReference implements SingleRe
|
||||
return null;
|
||||
}
|
||||
|
||||
return new Instruction31c(jumboOpcode, (short)getRegisterA(), getReferencedItem());
|
||||
if (jumboOpcode.format == Format.Format31c) {
|
||||
return new Instruction31c(jumboOpcode, (short)getRegisterA(), getReferencedItem());
|
||||
}
|
||||
|
||||
return new Instruction41c(jumboOpcode, getRegisterA(), getReferencedItem());
|
||||
}
|
||||
|
||||
private static class Factory implements Instruction.InstructionFactory {
|
||||
|
@ -37,7 +37,8 @@ import org.jf.dexlib.Item;
|
||||
import org.jf.dexlib.Util.AnnotatedOutput;
|
||||
import org.jf.dexlib.Util.NumberUtils;
|
||||
|
||||
public class Instruction22c extends InstructionWithReference implements TwoRegisterInstruction {
|
||||
public class Instruction22c extends InstructionWithReference implements TwoRegisterInstruction,
|
||||
InstructionWithJumboVariant {
|
||||
public static final Instruction.InstructionFactory Factory = new Factory();
|
||||
private byte regA;
|
||||
private byte regB;
|
||||
@ -88,6 +89,15 @@ public class Instruction22c extends InstructionWithReference implements TwoRegis
|
||||
return regB;
|
||||
}
|
||||
|
||||
public Instruction makeJumbo() {
|
||||
Opcode jumboOpcode = opcode.getJumboOpcode();
|
||||
if (jumboOpcode == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new Instruction52c(jumboOpcode, getRegisterA(), getRegisterB(), getReferencedItem());
|
||||
}
|
||||
|
||||
private static class Factory implements Instruction.InstructionFactory {
|
||||
public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
|
||||
return new Instruction22c(dexFile, opcode, buffer, bufferIndex);
|
||||
|
@ -41,7 +41,8 @@ import org.jf.dexlib.Util.NumberUtils;
|
||||
|
||||
import static org.jf.dexlib.Code.Opcode.*;
|
||||
|
||||
public class Instruction3rc extends InstructionWithReference implements RegisterRangeInstruction {
|
||||
public class Instruction3rc extends InstructionWithReference implements RegisterRangeInstruction,
|
||||
InstructionWithJumboVariant {
|
||||
public static final Instruction.InstructionFactory Factory = new Factory();
|
||||
private byte regCount;
|
||||
private short startReg;
|
||||
@ -130,6 +131,15 @@ public class Instruction3rc extends InstructionWithReference implements Register
|
||||
}
|
||||
}
|
||||
|
||||
public Instruction makeJumbo() {
|
||||
Opcode jumboOpcode = opcode.getJumboOpcode();
|
||||
if (jumboOpcode == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new Instruction5rc(jumboOpcode, getRegCount(), getStartRegister(), getReferencedItem());
|
||||
}
|
||||
|
||||
private static class Factory implements Instruction.InstructionFactory {
|
||||
public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
|
||||
return new Instruction3rc(dexFile, opcode, buffer, bufferIndex);
|
||||
|
@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Copyright 2011, Google Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following disclaimer
|
||||
* in the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* * Neither the name of Google Inc. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package org.jf.dexlib.Code.Format;
|
||||
|
||||
import org.jf.dexlib.Code.Instruction;
|
||||
import org.jf.dexlib.Code.InstructionWithReference;
|
||||
import org.jf.dexlib.Code.Opcode;
|
||||
import org.jf.dexlib.Code.SingleRegisterInstruction;
|
||||
import org.jf.dexlib.DexFile;
|
||||
import org.jf.dexlib.Item;
|
||||
import org.jf.dexlib.TypeIdItem;
|
||||
import org.jf.dexlib.Util.AnnotatedOutput;
|
||||
import org.jf.dexlib.Util.NumberUtils;
|
||||
|
||||
public class Instruction41c extends InstructionWithJumboReference implements SingleRegisterInstruction {
|
||||
public static final InstructionFactory Factory = new Factory();
|
||||
private short regA;
|
||||
|
||||
public Instruction41c(Opcode opcode, int regA, Item referencedItem) {
|
||||
super(opcode, referencedItem);
|
||||
|
||||
if (regA >= 1 << 16) {
|
||||
throw new RuntimeException("The register number must be less than v65536");
|
||||
}
|
||||
|
||||
if (opcode == Opcode.NEW_INSTANCE_JUMBO) {
|
||||
assert referencedItem instanceof TypeIdItem;
|
||||
if (((TypeIdItem)referencedItem).getTypeDescriptor().charAt(0) != 'L') {
|
||||
throw new RuntimeException("Only class references can be used with the new-instance/jumbo opcode");
|
||||
}
|
||||
}
|
||||
|
||||
this.regA = (short)regA;
|
||||
}
|
||||
|
||||
private Instruction41c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
|
||||
super(dexFile, opcode, buffer, bufferIndex);
|
||||
|
||||
if (opcode == Opcode.NEW_INSTANCE_JUMBO &&
|
||||
((TypeIdItem)this.getReferencedItem()).getTypeDescriptor().charAt(0) != 'L') {
|
||||
|
||||
throw new RuntimeException("Only class references can be used with the new-instance/jumbo opcode");
|
||||
}
|
||||
|
||||
this.regA = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 6);
|
||||
}
|
||||
|
||||
protected void writeInstruction(AnnotatedOutput out, int currentCodeAddress) {
|
||||
out.writeByte(0xFF);
|
||||
out.writeByte(opcode.value);
|
||||
out.writeInt(getReferencedItem().getIndex());
|
||||
out.writeShort(getRegisterA());
|
||||
}
|
||||
|
||||
public Format getFormat() {
|
||||
return Format.Format41c;
|
||||
}
|
||||
|
||||
public int getRegisterA() {
|
||||
return regA & 0xFFFF;
|
||||
}
|
||||
|
||||
private static class Factory implements InstructionFactory {
|
||||
public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
|
||||
return new Instruction41c(dexFile, opcode, buffer, bufferIndex);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Copyright 2011, Google Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following disclaimer
|
||||
* in the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* * Neither the name of Google Inc. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package org.jf.dexlib.Code.Format;
|
||||
|
||||
import org.jf.dexlib.Code.Instruction;
|
||||
import org.jf.dexlib.Code.Opcode;
|
||||
import org.jf.dexlib.Code.TwoRegisterInstruction;
|
||||
import org.jf.dexlib.DexFile;
|
||||
import org.jf.dexlib.Item;
|
||||
import org.jf.dexlib.Util.AnnotatedOutput;
|
||||
import org.jf.dexlib.Util.NumberUtils;
|
||||
|
||||
public class Instruction52c extends InstructionWithJumboReference implements TwoRegisterInstruction {
|
||||
public static final InstructionFactory Factory = new Factory();
|
||||
private short regA;
|
||||
private short regB;
|
||||
|
||||
public Instruction52c(Opcode opcode, int regA, int regB, Item referencedItem) {
|
||||
super(opcode, referencedItem);
|
||||
|
||||
if (regA >= 1 << 16) {
|
||||
throw new RuntimeException("The register number must be less than v65536");
|
||||
}
|
||||
|
||||
if (regB >= 1 << 16) {
|
||||
throw new RuntimeException("The register number must be less than v65536");
|
||||
}
|
||||
|
||||
this.regA = (short)regA;
|
||||
this.regB = (short)regB;
|
||||
}
|
||||
|
||||
private Instruction52c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
|
||||
super(dexFile, opcode, buffer, bufferIndex);
|
||||
|
||||
this.regA = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 6);
|
||||
this.regB = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 8);
|
||||
}
|
||||
|
||||
protected void writeInstruction(AnnotatedOutput out, int currentCodeAddress) {
|
||||
out.writeByte(0xFF);
|
||||
out.writeByte(opcode.value);
|
||||
out.writeInt(getReferencedItem().getIndex());
|
||||
out.writeShort(getRegisterA());
|
||||
out.writeShort(getRegisterB());
|
||||
}
|
||||
|
||||
public Format getFormat() {
|
||||
return Format.Format52c;
|
||||
}
|
||||
|
||||
public int getRegisterA() {
|
||||
return regA & 0xFFFF;
|
||||
}
|
||||
|
||||
public int getRegisterB() {
|
||||
return regB & 0xFFFF;
|
||||
}
|
||||
|
||||
private static class Factory implements InstructionFactory {
|
||||
public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
|
||||
return new Instruction52c(dexFile, opcode, buffer, bufferIndex);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Copyright 2011, Google Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following disclaimer
|
||||
* in the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* * Neither the name of Google Inc. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package org.jf.dexlib.Code.Format;
|
||||
|
||||
import org.jf.dexlib.Code.Instruction;
|
||||
import org.jf.dexlib.Code.InstructionWithReference;
|
||||
import org.jf.dexlib.Code.Opcode;
|
||||
import org.jf.dexlib.Code.RegisterRangeInstruction;
|
||||
import org.jf.dexlib.DexFile;
|
||||
import org.jf.dexlib.Item;
|
||||
import org.jf.dexlib.MethodIdItem;
|
||||
import org.jf.dexlib.TypeIdItem;
|
||||
import org.jf.dexlib.Util.AnnotatedOutput;
|
||||
import org.jf.dexlib.Util.NumberUtils;
|
||||
|
||||
import static org.jf.dexlib.Code.Opcode.*;
|
||||
|
||||
public class Instruction5rc extends InstructionWithJumboReference implements RegisterRangeInstruction {
|
||||
public static final InstructionFactory Factory = new Factory();
|
||||
private short regCount;
|
||||
private short startReg;
|
||||
|
||||
public Instruction5rc(Opcode opcode, int regCount, int startReg, Item referencedItem) {
|
||||
super(opcode, referencedItem);
|
||||
|
||||
if (regCount >= 1 << 16) {
|
||||
throw new RuntimeException("regCount must be less than 65536");
|
||||
}
|
||||
if (regCount < 0) {
|
||||
throw new RuntimeException("regCount cannot be negative");
|
||||
}
|
||||
|
||||
if (startReg >= 1 << 16) {
|
||||
throw new RuntimeException("The beginning register of the range must be less than 65536");
|
||||
}
|
||||
if (startReg < 0) {
|
||||
throw new RuntimeException("The beginning register of the range cannot be negative");
|
||||
}
|
||||
|
||||
this.regCount = (short)regCount;
|
||||
this.startReg = (short)startReg;
|
||||
|
||||
checkItem(opcode, referencedItem, regCount);
|
||||
}
|
||||
|
||||
private Instruction5rc(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
|
||||
super(dexFile, opcode, buffer, bufferIndex);
|
||||
|
||||
this.regCount = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 6);
|
||||
this.startReg = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 8);
|
||||
|
||||
checkItem(opcode, getReferencedItem(), getRegCount());
|
||||
}
|
||||
|
||||
protected void writeInstruction(AnnotatedOutput out, int currentCodeAddress) {
|
||||
out.writeByte(0xff);
|
||||
out.writeByte(opcode.value);
|
||||
out.writeInt(this.getReferencedItem().getIndex());
|
||||
out.writeShort(regCount);
|
||||
out.writeShort(startReg);
|
||||
}
|
||||
|
||||
public Format getFormat() {
|
||||
return Format.Format5rc;
|
||||
}
|
||||
|
||||
public int getRegCount() {
|
||||
return regCount & 0xFFFF;
|
||||
}
|
||||
|
||||
public int getStartRegister() {
|
||||
return startReg & 0xFFFF;
|
||||
}
|
||||
|
||||
private static void checkItem(Opcode opcode, Item item, int regCount) {
|
||||
if (opcode == FILLED_NEW_ARRAY_JUMBO) {
|
||||
//check data for filled-new-array/jumbo opcode
|
||||
String type = ((TypeIdItem) item).getTypeDescriptor();
|
||||
if (type.charAt(0) != '[') {
|
||||
throw new RuntimeException("The type must be an array type");
|
||||
}
|
||||
if (type.charAt(1) == 'J' || type.charAt(1) == 'D') {
|
||||
throw new RuntimeException("The type cannot be an array of longs or doubles");
|
||||
}
|
||||
} else if (opcode.value >= INVOKE_VIRTUAL_JUMBO.value && opcode.value <= INVOKE_INTERFACE_JUMBO.value ||
|
||||
opcode == INVOKE_OBJECT_INIT_JUMBO) {
|
||||
//check data for invoke-*/range opcodes
|
||||
MethodIdItem methodIdItem = (MethodIdItem) item;
|
||||
int parameterRegisterCount = methodIdItem.getPrototype().getParameterRegisterCount();
|
||||
if (opcode != INVOKE_STATIC_JUMBO) {
|
||||
parameterRegisterCount++;
|
||||
}
|
||||
if (parameterRegisterCount != regCount) {
|
||||
throw new RuntimeException("regCount does not match the number of arguments of the method");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static class Factory implements InstructionFactory {
|
||||
public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
|
||||
return new Instruction5rc(dexFile, opcode, buffer, bufferIndex);
|
||||
}
|
||||
}
|
||||
}
|
@ -62,16 +62,16 @@ public enum Opcode
|
||||
CONST_WIDE_HIGH16((short)0x19, "const-wide/high16", ReferenceType.none, Format.Format21h, Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER),
|
||||
CONST_STRING((short)0x1a, "const-string", ReferenceType.string, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0x1b),
|
||||
CONST_STRING_JUMBO((short)0x1b, "const-string/jumbo", ReferenceType.string, Format.Format31c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
CONST_CLASS((short)0x1c, "const-class", ReferenceType.type, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
CONST_CLASS((short)0x1c, "const-class", ReferenceType.type, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff00),
|
||||
MONITOR_ENTER((short)0x1d, "monitor-enter", ReferenceType.none, Format.Format11x, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
MONITOR_EXIT((short)0x1e, "monitor-exit", ReferenceType.none, Format.Format11x, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
CHECK_CAST((short)0x1f, "check-cast", ReferenceType.type, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
INSTANCE_OF((short)0x20, "instance-of", ReferenceType.type, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
CHECK_CAST((short)0x1f, "check-cast", ReferenceType.type, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff01),
|
||||
INSTANCE_OF((short)0x20, "instance-of", ReferenceType.type, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff02),
|
||||
ARRAY_LENGTH((short)0x21, "array-length", ReferenceType.none, Format.Format12x, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
NEW_INSTANCE((short)0x22, "new-instance", ReferenceType.type, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
NEW_ARRAY((short)0x23, "new-array", ReferenceType.type, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
NEW_INSTANCE((short)0x22, "new-instance", ReferenceType.type, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff03),
|
||||
NEW_ARRAY((short)0x23, "new-array", ReferenceType.type, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff04),
|
||||
FILLED_NEW_ARRAY((short)0x24, "filled-new-array", ReferenceType.type, Format.Format35c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT),
|
||||
FILLED_NEW_ARRAY_RANGE((short)0x25, "filled-new-array/range", ReferenceType.type, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT),
|
||||
FILLED_NEW_ARRAY_RANGE((short)0x25, "filled-new-array/range", ReferenceType.type, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT, (short)0xff05),
|
||||
FILL_ARRAY_DATA((short)0x26, "fill-array-data", ReferenceType.none, Format.Format31t, Opcode.CAN_CONTINUE),
|
||||
THROW((short)0x27, "throw", ReferenceType.none, Format.Format11x, Opcode.CAN_THROW),
|
||||
GOTO((short)0x28, "goto", ReferenceType.none, Format.Format10t),
|
||||
@ -110,44 +110,44 @@ public enum Opcode
|
||||
APUT_BYTE((short)0x4f, "aput-byte", ReferenceType.none, Format.Format23x, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
APUT_CHAR((short)0x50, "aput-char", ReferenceType.none, Format.Format23x, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
APUT_SHORT((short)0x51, "aput-short", ReferenceType.none, Format.Format23x, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
IGET((short)0x52, "iget", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
IGET_WIDE((short)0x53, "iget-wide", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER),
|
||||
IGET_OBJECT((short)0x54, "iget-object", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
IGET_BOOLEAN((short)0x55, "iget-boolean", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
IGET_BYTE((short)0x56, "iget-byte", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
IGET_CHAR((short)0x57, "iget-char", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
IGET_SHORT((short)0x58, "iget-short", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
IPUT((short)0x59, "iput", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
IPUT_WIDE((short)0x5a, "iput-wide", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
IPUT_OBJECT((short)0x5b, "iput-object", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
IPUT_BOOLEAN((short)0x5c, "iput-boolean", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
IPUT_BYTE((short)0x5d, "iput-byte", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
IPUT_CHAR((short)0x5e, "iput-char", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
IPUT_SHORT((short)0x5f, "iput-short", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
SGET((short)0x60, "sget", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
SGET_WIDE((short)0x61, "sget-wide", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER),
|
||||
SGET_OBJECT((short)0x62, "sget-object", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
SGET_BOOLEAN((short)0x63, "sget-boolean", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
SGET_BYTE((short)0x64, "sget-byte", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
SGET_CHAR((short)0x65, "sget-char", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
SGET_SHORT((short)0x66, "sget-short", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
SPUT((short)0x67, "sput", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
SPUT_WIDE((short)0x68, "sput-wide", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
SPUT_OBJECT((short)0x69, "sput-object", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
SPUT_BOOLEAN((short)0x6a, "sput-boolean", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
SPUT_BYTE((short)0x6b, "sput-byte", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
SPUT_CHAR((short)0x6c, "sput-char", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
SPUT_SHORT((short)0x6d, "sput-short", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
IGET((short)0x52, "iget", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff06),
|
||||
IGET_WIDE((short)0x53, "iget-wide", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER, (short)0xff07),
|
||||
IGET_OBJECT((short)0x54, "iget-object", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff08),
|
||||
IGET_BOOLEAN((short)0x55, "iget-boolean", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff09),
|
||||
IGET_BYTE((short)0x56, "iget-byte", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff0a),
|
||||
IGET_CHAR((short)0x57, "iget-char", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff0b),
|
||||
IGET_SHORT((short)0x58, "iget-short", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff0c),
|
||||
IPUT((short)0x59, "iput", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff0d),
|
||||
IPUT_WIDE((short)0x5a, "iput-wide", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff0e),
|
||||
IPUT_OBJECT((short)0x5b, "iput-object", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff0f),
|
||||
IPUT_BOOLEAN((short)0x5c, "iput-boolean", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff10),
|
||||
IPUT_BYTE((short)0x5d, "iput-byte", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff11),
|
||||
IPUT_CHAR((short)0x5e, "iput-char", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff12),
|
||||
IPUT_SHORT((short)0x5f, "iput-short", ReferenceType.field, Format.Format22c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff13),
|
||||
SGET((short)0x60, "sget", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff14),
|
||||
SGET_WIDE((short)0x61, "sget-wide", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER, (short)0xff15),
|
||||
SGET_OBJECT((short)0x62, "sget-object", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff16),
|
||||
SGET_BOOLEAN((short)0x63, "sget-boolean", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff17),
|
||||
SGET_BYTE((short)0x64, "sget-byte", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff18),
|
||||
SGET_CHAR((short)0x65, "sget-char", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff19),
|
||||
SGET_SHORT((short)0x66, "sget-short", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER, (short)0xff1a),
|
||||
SPUT((short)0x67, "sput", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff1b),
|
||||
SPUT_WIDE((short)0x68, "sput-wide", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff1c),
|
||||
SPUT_OBJECT((short)0x69, "sput-object", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff1d),
|
||||
SPUT_BOOLEAN((short)0x6a, "sput-boolean", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff1e),
|
||||
SPUT_BYTE((short)0x6b, "sput-byte", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff1f),
|
||||
SPUT_CHAR((short)0x6c, "sput-char", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff20),
|
||||
SPUT_SHORT((short)0x6d, "sput-short", ReferenceType.field, Format.Format21c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE, (short)0xff21),
|
||||
INVOKE_VIRTUAL((short)0x6e, "invoke-virtual", ReferenceType.method, Format.Format35c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT),
|
||||
INVOKE_SUPER((short)0x6f, "invoke-super", ReferenceType.method, Format.Format35c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT),
|
||||
INVOKE_DIRECT((short)0x70, "invoke-direct", ReferenceType.method, Format.Format35c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT | Opcode.CAN_INITIALIZE_REFERENCE),
|
||||
INVOKE_STATIC((short)0x71, "invoke-static", ReferenceType.method, Format.Format35c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT),
|
||||
INVOKE_INTERFACE((short)0x72, "invoke-interface", ReferenceType.method, Format.Format35c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT),
|
||||
INVOKE_VIRTUAL_RANGE((short)0x74, "invoke-virtual/range", ReferenceType.method, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT),
|
||||
INVOKE_SUPER_RANGE((short)0x75, "invoke-super/range", ReferenceType.method, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT),
|
||||
INVOKE_DIRECT_RANGE((short)0x76, "invoke-direct/range", ReferenceType.method, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT | Opcode.CAN_INITIALIZE_REFERENCE),
|
||||
INVOKE_STATIC_RANGE((short)0x77, "invoke-static/range", ReferenceType.method, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT),
|
||||
INVOKE_INTERFACE_RANGE((short)0x78, "invoke-interface/range", ReferenceType.method, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT),
|
||||
INVOKE_VIRTUAL_RANGE((short)0x74, "invoke-virtual/range", ReferenceType.method, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT, (short)0xff22),
|
||||
INVOKE_SUPER_RANGE((short)0x75, "invoke-super/range", ReferenceType.method, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT, (short)0xff23),
|
||||
INVOKE_DIRECT_RANGE((short)0x76, "invoke-direct/range", ReferenceType.method, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT | Opcode.CAN_INITIALIZE_REFERENCE, (short)0xff24),
|
||||
INVOKE_STATIC_RANGE((short)0x77, "invoke-static/range", ReferenceType.method, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT, (short)0xff25),
|
||||
INVOKE_INTERFACE_RANGE((short)0x78, "invoke-interface/range", ReferenceType.method, Format.Format3rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT, (short)0xff26),
|
||||
NEG_INT((short)0x7b, "neg-int", ReferenceType.none, Format.Format12x, Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
NOT_INT((short)0x7c, "not-int", ReferenceType.none, Format.Format12x, Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
NEG_LONG((short)0x7d, "neg-long", ReferenceType.none, Format.Format12x, Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER),
|
||||
@ -282,7 +282,61 @@ public enum Opcode
|
||||
|
||||
IPUT_OBJECT_VOLATILE((short)0xfc, "iput-object-volatile", ReferenceType.field, Format.Format22c, Opcode.ODEX_ONLY | Opcode.ODEXED_INSTANCE_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
SGET_OBJECT_VOLATILE((short)0xfd, "sget-object-volatile", ReferenceType.field, Format.Format21c, Opcode.ODEX_ONLY | Opcode.ODEXED_STATIC_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER),
|
||||
SPUT_OBJECT_VOLATILE((short)0xfe, "sput-object-volatile", ReferenceType.field, Format.Format21c, Opcode.ODEX_ONLY | Opcode.ODEXED_STATIC_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE);
|
||||
SPUT_OBJECT_VOLATILE((short)0xfe, "sput-object-volatile", ReferenceType.field, Format.Format21c, Opcode.ODEX_ONLY | Opcode.ODEXED_STATIC_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE),
|
||||
|
||||
CONST_CLASS_JUMBO((short)0xff00, "const-class/jumbo", ReferenceType.type, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
CHECK_CAST_JUMBO((short)0xff01, "check-cast/jumbo", ReferenceType.type, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
INSTANCE_OF_JUMBO((short)0xff02, "instance-of/jumbo", ReferenceType.type, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
NEW_INSTANCE_JUMBO((short)0xff03, "new-instance/jumbo", ReferenceType.type, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
NEW_ARRAY_JUMBO((short)0xff04, "new-array/jumbo", ReferenceType.type, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
FILLED_NEW_ARRAY_JUMBO((short)0xff05, "filled-new-array/jumbo", ReferenceType.type, Format.Format5rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT | Opcode.JUMBO_OPCODE),
|
||||
IGET_JUMBO((short)0xff06, "iget/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
IGET_WIDE_JUMBO((short)0xff07, "iget-wide/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
IGET_OBJECT_JUMBO((short)0xff08, "iget-object/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
IGET_BOOLEAN_JUMBO((short)0xff09, "iget-boolean/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
IGET_BYTE_JUMBO((short)0xff0a, "iget-byte/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
IGET_CHAR_JUMBO((short)0xff0b, "iget-char/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
IGET_SHORT_JUMBO((short)0xff0c, "iget-short/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
IPUT_JUMBO((short)0xff0d, "iput/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
IPUT_WIDE_JUMBO((short)0xff0e, "iput-wide/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
IPUT_OBJECT_JUMBO((short)0xff0f, "iput-object/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
IPUT_BOOLEAN_JUMBO((short)0xff10, "iput-boolean/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
IPUT_BYTE_JUMBO((short)0xff11, "iput-byte/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
IPUT_CHAR_JUMBO((short)0xff12, "iput-char/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
IPUT_SHORT_JUMBO((short)0xff13, "iput-short/jumbo", ReferenceType.field, Format.Format52c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
SGET_JUMBO((short)0xff14, "sget/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
SGET_WIDE_JUMBO((short)0xff15, "sget-wide/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
SGET_OBJECT_JUMBO((short)0xff16, "sget-object/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
SGET_BOOLEAN_JUMBO((short)0xff17, "sget-boolean/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
SGET_BYTE_JUMBO((short)0xff18, "sget-byte/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
SGET_CHAR_JUMBO((short)0xff19, "sget-char/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
SGET_SHORT_JUMBO((short)0xff1a, "sget-short/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
SPUT_JUMBO((short)0xff1b, "sput/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
SPUT_WIDE_JUMBO((short)0xff1c, "sput-wide/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
SPUT_OBJECT_JUMBO((short)0xff1d, "sput-object/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
SPUT_BOOLEAN_JUMBO((short)0xff1e, "sput-boolean/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
SPUT_BYTE_JUMBO((short)0xff1f, "sput-byte/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
SPUT_CHAR_JUMBO((short)0xff20, "sput-char/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
SPUT_SHORT_JUMBO((short)0xff21, "sput-short/jumbo", ReferenceType.field, Format.Format41c, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
INVOKE_VIRTUAL_JUMBO((short)0xff22, "invoke-virtual/jumbo", ReferenceType.method, Format.Format5rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT | Opcode.JUMBO_OPCODE),
|
||||
INVOKE_SUPER_JUMBO((short)0xff23, "invoke-super/jumbo", ReferenceType.method, Format.Format5rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT | Opcode.JUMBO_OPCODE),
|
||||
INVOKE_DIRECT_JUMBO((short)0xff24, "invoke-direct/jumbo", ReferenceType.method, Format.Format5rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT | Opcode.JUMBO_OPCODE | Opcode.CAN_INITIALIZE_REFERENCE),
|
||||
INVOKE_STATIC_JUMBO((short)0xff25, "invoke-static/jumbo", ReferenceType.method, Format.Format5rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT | Opcode.JUMBO_OPCODE),
|
||||
INVOKE_INTERFACE_JUMBO((short)0xff26, "invoke-interface/jumbo", ReferenceType.method, Format.Format5rc, Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT | Opcode.JUMBO_OPCODE),
|
||||
|
||||
INVOKE_OBJECT_INIT_JUMBO((short)0xfff2, "invoke-object-init/jumbo", ReferenceType.method, Format.Format5rc, Opcode.ODEX_ONLY | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_RESULT | Opcode.JUMBO_OPCODE | Opcode.CAN_INITIALIZE_REFERENCE),
|
||||
IGET_VOLATILE_JUMBO((short)0xfff3, "iget-volatile/jumbo", ReferenceType.field, Format.Format52c, Opcode.ODEX_ONLY | Opcode.ODEXED_INSTANCE_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
IGET_WIDE_VOLATILE_JUMBO((short)0xfff4, "iget-wide-volatile/jumbo", ReferenceType.field, Format.Format52c, Opcode.ODEX_ONLY | Opcode.ODEXED_INSTANCE_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
IGET_OBJECT_VOLATILE_JUMBO((short)0xfff5, "iget-object-volatile/jumbo", ReferenceType.field, Format.Format52c, Opcode.ODEX_ONLY | Opcode.ODEXED_INSTANCE_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
IPUT_VOLATILE_JUMBO((short)0xfff6, "iput-volatile/jumbo", ReferenceType.field, Format.Format52c, Opcode.ODEX_ONLY | Opcode.ODEXED_INSTANCE_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
IPUT_WIDE_VOLATILE_JUMBO((short)0xfff7, "iput-wide-volatile/jumbo", ReferenceType.field, Format.Format52c, Opcode.ODEX_ONLY | Opcode.ODEXED_INSTANCE_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
IPUT_OBJECT_VOLATILE_JUMBO((short)0xfff8, "iput-object-volatile/jumbo", ReferenceType.field, Format.Format52c, Opcode.ODEX_ONLY | Opcode.ODEXED_INSTANCE_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
SGET_VOLATILE_JUMBO((short)0xfff9, "sget-volatile/jumbo", ReferenceType.field, Format.Format41c, Opcode.ODEX_ONLY | Opcode.ODEXED_STATIC_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
SGET_WIDE_VOLATILE_JUMBO((short)0xfffa, "sget-wide-volatile/jumbo", ReferenceType.field, Format.Format41c, Opcode.ODEX_ONLY | Opcode.ODEXED_STATIC_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.SETS_WIDE_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
SGET_OBJECT_VOLATILE_JUMBO((short)0xfffb, "sget-object-volatile/jumbo", ReferenceType.field, Format.Format41c, Opcode.ODEX_ONLY | Opcode.ODEXED_STATIC_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.SETS_REGISTER | Opcode.JUMBO_OPCODE),
|
||||
SPUT_VOLATILE_JUMBO((short)0xfffc, "sput-volatile/jumbo", ReferenceType.field, Format.Format41c, Opcode.ODEX_ONLY | Opcode.ODEXED_STATIC_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
SPUT_WIDE_VOLATILE_JUMBO((short)0xfffd, "sput-wide-volatile/jumbo", ReferenceType.field, Format.Format41c, Opcode.ODEX_ONLY | Opcode.ODEXED_STATIC_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE),
|
||||
SPUT_OBJECT_VOLATILE_JUMBO((short)0xfffe, "sput-object-volatile/jumbo", ReferenceType.field, Format.Format41c, Opcode.ODEX_ONLY | Opcode.ODEXED_STATIC_VOLATILE | Opcode.CAN_THROW | Opcode.CAN_CONTINUE | Opcode.JUMBO_OPCODE);
|
||||
|
||||
private static Opcode[] opcodesByValue;
|
||||
private static Opcode[] expandedOpcodesByValue;
|
||||
@ -372,7 +426,7 @@ public enum Opcode
|
||||
* based on the idiosyncrasies of that api level
|
||||
* @param apiLevel
|
||||
*/
|
||||
public static void updateMapsForApiLevel(int apiLevel) {
|
||||
public static void updateMapsForApiLevel(int apiLevel, boolean includeJumbo) {
|
||||
if (apiLevel < 5) {
|
||||
removeOpcodes(THROW_VERIFICATION_ERROR);
|
||||
}
|
||||
@ -391,6 +445,21 @@ public enum Opcode
|
||||
removeOpcodes(INVOKE_OBJECT_INIT_RANGE);
|
||||
addOpcodes(INVOKE_DIRECT_EMPTY);
|
||||
}
|
||||
if (apiLevel < 14 || !includeJumbo) {
|
||||
removeOpcodes(CONST_CLASS_JUMBO, CHECK_CAST_JUMBO, INSTANCE_OF_JUMBO, NEW_INSTANCE_JUMBO,
|
||||
NEW_ARRAY_JUMBO, FILLED_NEW_ARRAY_JUMBO, IGET_JUMBO, IGET_WIDE_JUMBO, IGET_OBJECT_JUMBO,
|
||||
IGET_BOOLEAN_JUMBO, IGET_BYTE_JUMBO, IGET_CHAR_JUMBO, IGET_SHORT_JUMBO, IPUT_JUMBO, IPUT_WIDE_JUMBO,
|
||||
IPUT_OBJECT_JUMBO, IPUT_BOOLEAN_JUMBO, IPUT_BYTE_JUMBO, IPUT_CHAR_JUMBO, IPUT_SHORT_JUMBO,
|
||||
SGET_JUMBO, SGET_WIDE_JUMBO, SGET_OBJECT_JUMBO, SGET_BOOLEAN_JUMBO, SGET_BYTE_JUMBO,
|
||||
SGET_CHAR_JUMBO, SGET_SHORT_JUMBO, SPUT_JUMBO, SPUT_WIDE_JUMBO, SPUT_OBJECT_JUMBO,
|
||||
SPUT_BOOLEAN_JUMBO, SPUT_BYTE_JUMBO, SPUT_CHAR_JUMBO, SPUT_SHORT_JUMBO, INVOKE_VIRTUAL_JUMBO,
|
||||
INVOKE_SUPER_JUMBO, INVOKE_DIRECT_JUMBO, INVOKE_STATIC_JUMBO, INVOKE_INTERFACE_JUMBO,
|
||||
INVOKE_OBJECT_INIT_JUMBO, IGET_VOLATILE_JUMBO, IGET_WIDE_VOLATILE_JUMBO,
|
||||
IGET_OBJECT_VOLATILE_JUMBO, IPUT_VOLATILE_JUMBO, IPUT_WIDE_VOLATILE_JUMBO,
|
||||
IPUT_OBJECT_VOLATILE_JUMBO, SGET_VOLATILE_JUMBO, SGET_WIDE_VOLATILE_JUMBO,
|
||||
SGET_OBJECT_VOLATILE_JUMBO, SPUT_VOLATILE_JUMBO, SPUT_WIDE_VOLATILE_JUMBO,
|
||||
SPUT_OBJECT_VOLATILE_JUMBO);
|
||||
}
|
||||
}
|
||||
|
||||
public final short value;
|
||||
|
@ -0,0 +1,41 @@
|
||||
.class public LAssert;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Assert.smali"
|
||||
|
||||
#junit's Assert doesn't have an AssertEquals method for ints, only longs
|
||||
.method public static assertEquals(II)V
|
||||
.registers 4
|
||||
|
||||
int-to-long v0, p1
|
||||
int-to-long p0, p0
|
||||
|
||||
invoke-static {v0, v1, p0, p1}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
#junit's Assert doesn't have an AssertEquals method for floats, only doubles
|
||||
.method public static assertEquals(FF)V
|
||||
.registers 6
|
||||
|
||||
float-to-double v0, p0
|
||||
float-to-double v2, p1
|
||||
|
||||
const-wide v4, .00001
|
||||
|
||||
invoke-static/range {v0..v5}, Lorg/junit/Assert;->assertEquals(DDD)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
#convenience method that supplies a default "Delta" argument
|
||||
.method public static assertEquals(DD)V
|
||||
.registers 6
|
||||
|
||||
move-wide v0, p0
|
||||
move-wide v2, p2
|
||||
|
||||
const-wide v4, .00001
|
||||
|
||||
invoke-static/range {v0..v5}, Lorg/junit/Assert;->assertEquals(DDD)V
|
||||
|
||||
return-void
|
||||
.end method
|
@ -0,0 +1,167 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LFormat41c;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Format41c.smali"
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-sget-jumbo()V
|
||||
.registers 258
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 23
|
||||
move/16 v256, v0
|
||||
sput/jumbo v256, LManyStaticFields;->field99999:I
|
||||
|
||||
sget/jumbo v257, LManyStaticFields;->field99999:I
|
||||
|
||||
invoke-static/range {v256 .. v257}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-object-sget-object-jumbo()V
|
||||
.registers 258
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Ljava/lang/Object;
|
||||
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
move-object/16 v256, v0
|
||||
|
||||
sput-object/jumbo v256, LManyStaticFields;->field99999Object:Ljava/lang/Object;
|
||||
|
||||
sget-object/jumbo v257, LManyStaticFields;->field99999Object:Ljava/lang/Object;
|
||||
|
||||
invoke-static/range {v256 .. v257}, Lorg/junit/Assert;->assertEquals(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-wide-sget-wide-jumbo()V
|
||||
.registers 260
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const-wide v0, 0x200000000L
|
||||
move-wide/16 v256, v0
|
||||
|
||||
sput-wide/jumbo v256, LManyStaticFields;->field99999Wide:J
|
||||
|
||||
sget-wide/jumbo v258, LManyStaticFields;->field99999Wide:J
|
||||
|
||||
invoke-static/range {v256 .. v259}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-boolean-sget-boolean-true-jumbo()V
|
||||
.registers 258
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 1
|
||||
move/16 v256, v0
|
||||
|
||||
sput-boolean/jumbo v256, LManyStaticFields;->field99999Boolean:Z
|
||||
|
||||
sget-boolean/jumbo v257, LManyStaticFields;->field99999Boolean:Z
|
||||
|
||||
invoke-static/range {v257}, Lorg/junit/Assert;->assertTrue(Z)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-boolean-sget-boolean-false-jumbo()V
|
||||
.registers 258
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 0
|
||||
move/16 v256, v0
|
||||
|
||||
sput-boolean/jumbo v256, LManyStaticFields;->field99999Boolean:Z
|
||||
|
||||
sget-boolean/jumbo v257, LManyStaticFields;->field99999Boolean:Z
|
||||
|
||||
invoke-static/range {v257}, Lorg/junit/Assert;->assertFalse(Z)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-byte-sget-byte-jumbo()V
|
||||
.registers 258
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 120T
|
||||
move/16 v256, v0
|
||||
|
||||
sput-byte/jumbo v256, LManyStaticFields;->field99999Byte:B
|
||||
|
||||
sget-byte/jumbo v257, LManyStaticFields;->field99999Byte:B
|
||||
|
||||
invoke-static/range {v256 .. v257}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-char-sget-char-jumbo()V
|
||||
.registers 258
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 'a'
|
||||
move/16 v256, v0
|
||||
|
||||
sput-char/jumbo v256, LManyStaticFields;->field99999Char:C
|
||||
|
||||
sget-char/jumbo v257, LManyStaticFields;->field99999Char:C
|
||||
|
||||
invoke-static/range {v256 .. v257}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-short-sget-short-jumbo()V
|
||||
.registers 258
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 1234S
|
||||
move/16 v256, v0
|
||||
|
||||
sput-short/jumbo v256, LManyStaticFields;->field99999Short:S
|
||||
|
||||
sget-short/jumbo v257, LManyStaticFields;->field99999Short:S
|
||||
|
||||
invoke-static/range {v256 .. v257}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
@ -0,0 +1,158 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LFormat41c_autofix;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Format41c_autofix.smali"
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-sget-jumbo()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 23
|
||||
sput v0, LManyStaticFields;->field99999:I
|
||||
|
||||
sget v1, LManyStaticFields;->field99999:I
|
||||
|
||||
invoke-static/range {v0 .. v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-object-sget-object-jumbo()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Ljava/lang/Object;
|
||||
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
sput-object v0, LManyStaticFields;->field99999Object:Ljava/lang/Object;
|
||||
|
||||
sget-object v1, LManyStaticFields;->field99999Object:Ljava/lang/Object;
|
||||
|
||||
invoke-static/range {v0 .. v1}, Lorg/junit/Assert;->assertEquals(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-wide-sget-wide-jumbo()V
|
||||
.registers 4
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const-wide v0, 0x200000000L
|
||||
|
||||
sput-wide v0, LManyStaticFields;->field99999Wide:J
|
||||
|
||||
sget-wide v2, LManyStaticFields;->field99999Wide:J
|
||||
|
||||
invoke-static/range {v0 .. v3}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-boolean-sget-boolean-true-jumbo()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 1
|
||||
|
||||
sput-boolean v0, LManyStaticFields;->field99999Boolean:Z
|
||||
|
||||
sget-boolean v1, LManyStaticFields;->field99999Boolean:Z
|
||||
|
||||
invoke-static/range {v1}, Lorg/junit/Assert;->assertTrue(Z)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-boolean-sget-boolean-false-jumbo()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 0
|
||||
|
||||
sput-boolean v0, LManyStaticFields;->field99999Boolean:Z
|
||||
|
||||
sget-boolean v1, LManyStaticFields;->field99999Boolean:Z
|
||||
|
||||
invoke-static/range {v1}, Lorg/junit/Assert;->assertFalse(Z)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-byte-sget-byte-jumbo()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 120T
|
||||
|
||||
sput-byte v0, LManyStaticFields;->field99999Byte:B
|
||||
|
||||
sget-byte v1, LManyStaticFields;->field99999Byte:B
|
||||
|
||||
invoke-static/range {v0 .. v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-char-sget-char-jumbo()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 'a'
|
||||
|
||||
sput-char v0, LManyStaticFields;->field99999Char:C
|
||||
|
||||
sget-char v1, LManyStaticFields;->field99999Char:C
|
||||
|
||||
invoke-static/range {v0 .. v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-sput-short-sget-short-jumbo()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 1234S
|
||||
|
||||
sput-short v0, LManyStaticFields;->field99999Short:S
|
||||
|
||||
sget-short v1, LManyStaticFields;->field99999Short:S
|
||||
|
||||
invoke-static/range {v0 .. v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
@ -0,0 +1,199 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LFormat52c;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Format52c.smali"
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-iget-jumbo()V
|
||||
.registers 259
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, LzzzInstanceFields;
|
||||
invoke-direct/range {v0}, LzzzInstanceFields;-><init>()V
|
||||
move-object/16 v258, v0
|
||||
|
||||
const v0, 23
|
||||
move/16 v256, v0
|
||||
iput/jumbo v256, v258, LzzzInstanceFields;->field99999:I
|
||||
|
||||
iget/jumbo v257, v258, LzzzInstanceFields;->field99999:I
|
||||
|
||||
invoke-static/range {v256 .. v257}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-object-iget-object-jumbo()V
|
||||
.registers 259
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, LzzzInstanceFields;
|
||||
invoke-direct/range {v0}, LzzzInstanceFields;-><init>()V
|
||||
move-object/16 v258, v0
|
||||
|
||||
new-instance v0, Ljava/lang/Object;
|
||||
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
move-object/16 v256, v0
|
||||
|
||||
iput-object/jumbo v256, v258, LzzzInstanceFields;->field99999Object:Ljava/lang/Object;
|
||||
|
||||
iget-object/jumbo v257, v258, LzzzInstanceFields;->field99999Object:Ljava/lang/Object;
|
||||
|
||||
invoke-static/range {v256 .. v257}, Lorg/junit/Assert;->assertEquals(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-wide-iget-wide-jumbo()V
|
||||
.registers 261
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, LzzzInstanceFields;
|
||||
invoke-direct/range {v0}, LzzzInstanceFields;-><init>()V
|
||||
move-object/16 v260, v0
|
||||
|
||||
const-wide v0, 0x200000000L
|
||||
move-wide/16 v256, v0
|
||||
|
||||
iput-wide/jumbo v256, v260, LzzzInstanceFields;->field99999Wide:J
|
||||
|
||||
iget-wide/jumbo v258, v260, LzzzInstanceFields;->field99999Wide:J
|
||||
|
||||
invoke-static/range {v256 .. v259}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-boolean-iget-boolean-true-jumbo()V
|
||||
.registers 259
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, LzzzInstanceFields;
|
||||
invoke-direct/range {v0}, LzzzInstanceFields;-><init>()V
|
||||
move-object/16 v258, v0
|
||||
|
||||
const v0, 1
|
||||
move/16 v256, v0
|
||||
|
||||
iput-boolean/jumbo v256, v258, LzzzInstanceFields;->field99999Boolean:Z
|
||||
|
||||
iget-boolean/jumbo v257, v258, LzzzInstanceFields;->field99999Boolean:Z
|
||||
|
||||
invoke-static/range {v257}, Lorg/junit/Assert;->assertTrue(Z)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-boolean-iget-boolean-false-jumbo()V
|
||||
.registers 259
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, LzzzInstanceFields;
|
||||
invoke-direct/range {v0}, LzzzInstanceFields;-><init>()V
|
||||
move-object/16 v258, v0
|
||||
|
||||
const v0, 0
|
||||
move/16 v256, v0
|
||||
|
||||
iput-boolean/jumbo v256, v258, LzzzInstanceFields;->field99999Boolean:Z
|
||||
|
||||
iget-boolean/jumbo v257, v258, LzzzInstanceFields;->field99999Boolean:Z
|
||||
|
||||
invoke-static/range {v257}, Lorg/junit/Assert;->assertFalse(Z)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-byte-iget-byte-jumbo()V
|
||||
.registers 259
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, LzzzInstanceFields;
|
||||
invoke-direct/range {v0}, LzzzInstanceFields;-><init>()V
|
||||
move-object/16 v258, v0
|
||||
|
||||
const v0, 120T
|
||||
move/16 v256, v0
|
||||
|
||||
iput-byte/jumbo v256, v258, LzzzInstanceFields;->field99999Byte:B
|
||||
|
||||
iget-byte/jumbo v257, v258, LzzzInstanceFields;->field99999Byte:B
|
||||
|
||||
invoke-static/range {v256 .. v257}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-char-iget-char-jumbo()V
|
||||
.registers 259
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, LzzzInstanceFields;
|
||||
invoke-direct/range {v0}, LzzzInstanceFields;-><init>()V
|
||||
move-object/16 v258, v0
|
||||
|
||||
const v0, 'a'
|
||||
move/16 v256, v0
|
||||
|
||||
iput-char/jumbo v256, v258, LzzzInstanceFields;->field99999Char:C
|
||||
|
||||
iget-char/jumbo v257, v258, LzzzInstanceFields;->field99999Char:C
|
||||
|
||||
invoke-static/range {v256 .. v257}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-short-iget-short-jumbo()V
|
||||
.registers 259
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, LzzzInstanceFields;
|
||||
invoke-direct/range {v0}, LzzzInstanceFields;-><init>()V
|
||||
move-object/16 v258, v0
|
||||
|
||||
const v0, 1234S
|
||||
move/16 v256, v0
|
||||
|
||||
iput-short/jumbo v256, v258, LzzzInstanceFields;->field99999Short:S
|
||||
|
||||
iget-short/jumbo v257, v258, LzzzInstanceFields;->field99999Short:S
|
||||
|
||||
invoke-static/range {v256 .. v257}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
@ -0,0 +1,182 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LFormat52c_autofix;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Format52c_autofix.smali"
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-iget-jumbo()V
|
||||
.registers 3
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v2, LzzzInstanceFields;
|
||||
invoke-direct/range {v2}, LzzzInstanceFields;-><init>()V
|
||||
|
||||
const v0, 23
|
||||
iput v0, v2, LzzzInstanceFields;->field99999:I
|
||||
|
||||
iget v1, v2, LzzzInstanceFields;->field99999:I
|
||||
|
||||
invoke-static/range {v0 .. v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-object-iget-object-jumbo()V
|
||||
.registers 3
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v2, LzzzInstanceFields;
|
||||
invoke-direct/range {v2}, LzzzInstanceFields;-><init>()V
|
||||
|
||||
new-instance v0, Ljava/lang/Object;
|
||||
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object v0, v2, LzzzInstanceFields;->field99999Object:Ljava/lang/Object;
|
||||
|
||||
iget-object v1, v2, LzzzInstanceFields;->field99999Object:Ljava/lang/Object;
|
||||
|
||||
invoke-static/range {v0 .. v1}, Lorg/junit/Assert;->assertEquals(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-wide-iget-wide-jumbo()V
|
||||
.registers 5
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v4, LzzzInstanceFields;
|
||||
invoke-direct/range {v4}, LzzzInstanceFields;-><init>()V
|
||||
|
||||
const-wide v0, 0x200000000L
|
||||
|
||||
iput-wide v0, v4, LzzzInstanceFields;->field99999Wide:J
|
||||
|
||||
iget-wide v2, v4, LzzzInstanceFields;->field99999Wide:J
|
||||
|
||||
invoke-static/range {v0 .. v3}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-boolean-iget-boolean-true-jumbo()V
|
||||
.registers 3
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v2, LzzzInstanceFields;
|
||||
invoke-direct/range {v2}, LzzzInstanceFields;-><init>()V
|
||||
|
||||
const v0, 1
|
||||
|
||||
iput-boolean v0, v2, LzzzInstanceFields;->field99999Boolean:Z
|
||||
|
||||
iget-boolean v1, v2, LzzzInstanceFields;->field99999Boolean:Z
|
||||
|
||||
invoke-static/range {v1}, Lorg/junit/Assert;->assertTrue(Z)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-boolean-iget-boolean-false-jumbo()V
|
||||
.registers 3
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v2, LzzzInstanceFields;
|
||||
invoke-direct/range {v2}, LzzzInstanceFields;-><init>()V
|
||||
|
||||
const v0, 0
|
||||
|
||||
iput-boolean v0, v2, LzzzInstanceFields;->field99999Boolean:Z
|
||||
|
||||
iget-boolean v1, v2, LzzzInstanceFields;->field99999Boolean:Z
|
||||
|
||||
invoke-static/range {v1}, Lorg/junit/Assert;->assertFalse(Z)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-byte-iget-byte-jumbo()V
|
||||
.registers 3
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v2, LzzzInstanceFields;
|
||||
invoke-direct/range {v2}, LzzzInstanceFields;-><init>()V
|
||||
|
||||
const v0, 120T
|
||||
|
||||
iput-byte v0, v2, LzzzInstanceFields;->field99999Byte:B
|
||||
|
||||
iget-byte v1, v2, LzzzInstanceFields;->field99999Byte:B
|
||||
|
||||
invoke-static/range {v0 .. v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-char-iget-char-jumbo()V
|
||||
.registers 3
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v2, LzzzInstanceFields;
|
||||
invoke-direct/range {v2}, LzzzInstanceFields;-><init>()V
|
||||
|
||||
const v0, 'a'
|
||||
|
||||
iput-char v0, v2, LzzzInstanceFields;->field99999Char:C
|
||||
|
||||
iget-char v1, v2, LzzzInstanceFields;->field99999Char:C
|
||||
|
||||
invoke-static/range {v0 .. v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-iput-short-iget-short-jumbo()V
|
||||
.registers 3
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v2, LzzzInstanceFields;
|
||||
invoke-direct/range {v2}, LzzzInstanceFields;-><init>()V
|
||||
|
||||
const v0, 1234S
|
||||
|
||||
iput-short v0, v2, LzzzInstanceFields;->field99999Short:S
|
||||
|
||||
iget-short v1, v2, LzzzInstanceFields;->field99999Short:S
|
||||
|
||||
invoke-static/range {v0 .. v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,43 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LAllTests;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
.annotation runtime Lorg/junit/runner/RunWith;
|
||||
value = Lorg/junit/runners/Suite;
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Lorg/junit/runners/Suite$SuiteClasses;
|
||||
value = { LFormat41c;,
|
||||
LFormat41c_autofix;,
|
||||
LFormat52c;,
|
||||
LFormat52c_autofix;
|
||||
}
|
||||
.end annotation
|
@ -0,0 +1,45 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LzzzInstanceFields;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.field public field99999:I
|
||||
.field public field99999Wide:J
|
||||
.field public field99999Object:Ljava/lang/Object;
|
||||
.field public field99999Boolean:Z
|
||||
.field public field99999Byte:B
|
||||
.field public field99999Char:C
|
||||
.field public field99999Short:S
|
@ -0,0 +1,41 @@
|
||||
.class public LAssert;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Assert.smali"
|
||||
|
||||
#junit's Assert doesn't have an AssertEquals method for ints, only longs
|
||||
.method public static assertEquals(II)V
|
||||
.registers 4
|
||||
|
||||
int-to-long v0, p1
|
||||
int-to-long p0, p0
|
||||
|
||||
invoke-static/jumbo {v0 .. p1}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
#junit's Assert doesn't have an AssertEquals method for floats, only doubles
|
||||
.method public static assertEquals(FF)V
|
||||
.registers 6
|
||||
|
||||
float-to-double v0, p0
|
||||
float-to-double v2, p1
|
||||
|
||||
const-wide v4, .00001
|
||||
|
||||
invoke-static/jumbo {v0..v5}, Lorg/junit/Assert;->assertEquals(DDD)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
#convenience method that supplies a default "Delta" argument
|
||||
.method public static assertEquals(DD)V
|
||||
.registers 6
|
||||
|
||||
move-wide v0, p0
|
||||
move-wide v2, p2
|
||||
|
||||
const-wide v4, .00001
|
||||
|
||||
invoke-static/jumbo {v0..v5}, Lorg/junit/Assert;->assertEquals(DDD)V
|
||||
|
||||
return-void
|
||||
.end method
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,176 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LFormat5rc_autofix;
|
||||
.super LzzzRangeMethodsSuper_autofix;
|
||||
.source "Format5rc_autofix.smali"
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct/range {p0}, LzzzRangeMethodsSuper_autofix;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public superMethodTest(IIIIII)I
|
||||
.registers 7
|
||||
|
||||
add-int v0, v1, v2
|
||||
add-int v0, v0, v3
|
||||
add-int v0, v0, v4
|
||||
add-int v0, v0, v5
|
||||
add-int v0, v0, v6
|
||||
|
||||
#add something extra, to make the test fail if this method is called instead of the super's method
|
||||
const v1, 1
|
||||
add-int v0, v0, v1
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method private directMethodTest(IIIIII)I
|
||||
.registers 7
|
||||
|
||||
add-int v0, v1, v2
|
||||
add-int v0, v0, v3
|
||||
add-int v0, v0, v4
|
||||
add-int v0, v0, v5
|
||||
add-int v0, v0, v6
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
|
||||
.method public test_invoke-virtual-range()V
|
||||
.registers 7
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, LzzzRangeMethods_autofix;
|
||||
invoke-direct/range {v0}, LzzzRangeMethods_autofix;-><init>()V
|
||||
|
||||
const v1, 1
|
||||
const v2, 2
|
||||
const v3, 3
|
||||
const v4, 4
|
||||
const v5, 5
|
||||
const v6, 6
|
||||
|
||||
invoke-virtual/range {v0 .. v6}, LzzzRangeMethods_autofix;->virtualMethodTest(IIIIII)I
|
||||
move-result v0
|
||||
|
||||
const v1, 21
|
||||
invoke-static {v0, v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_invoke-super-range()V
|
||||
.registers 7
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
move-object v0, p0
|
||||
const v1, 1
|
||||
const v2, 2
|
||||
const v3, 3
|
||||
const v4, 4
|
||||
const v5, 5
|
||||
const v6, 6
|
||||
|
||||
invoke-super/range {v0 .. v6}, LFormat5rc_autofix;->superMethodTest(IIIIII)I
|
||||
move-result v0
|
||||
|
||||
const v1, 21
|
||||
invoke-static {v0, v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_invoke-direct-range()V
|
||||
.registers 7
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
move-object v0, p0
|
||||
const v1, 1
|
||||
const v2, 2
|
||||
const v3, 3
|
||||
const v4, 4
|
||||
const v5, 5
|
||||
const v6, 6
|
||||
|
||||
invoke-direct/range {v0 .. v6}, LFormat5rc_autofix;->directMethodTest(IIIIII)I
|
||||
move-result v0
|
||||
|
||||
const v1, 21
|
||||
invoke-static {v0, v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_invoke-static-range()V
|
||||
.registers 7
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v1, 1
|
||||
const v2, 2
|
||||
const v3, 3
|
||||
const v4, 4
|
||||
const v5, 5
|
||||
const v6, 6
|
||||
|
||||
invoke-static/range {v1 .. v6}, LzzzRangeMethods_autofix;->staticMethodTest(IIIIII)I
|
||||
move-result v0
|
||||
|
||||
const v1, 21
|
||||
invoke-static {v0, v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_invoke-interface-range()V
|
||||
.registers 7
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
move-object v0, p0
|
||||
const v1, 1
|
||||
const v2, 2
|
||||
const v3, 3
|
||||
const v4, 4
|
||||
const v5, 5
|
||||
const v6, 6
|
||||
|
||||
new-instance v0, LzzzRangeMethods_autofix;
|
||||
invoke-direct/range {v0}, LzzzRangeMethods_autofix;-><init>()V
|
||||
|
||||
invoke-interface/range {v0 .. v6}, LzzzRangeMethodsInterface_autofix;->interfaceMethodTest(IIIIII)I
|
||||
move-result v0
|
||||
|
||||
const v1, 21
|
||||
invoke-static {v0, v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,40 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LAllTests;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
.annotation runtime Lorg/junit/runner/RunWith;
|
||||
value = Lorg/junit/runners/Suite;
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Lorg/junit/runners/Suite$SuiteClasses;
|
||||
value = { LFormat5rc;,
|
||||
LFormat5rc_autofix;}
|
||||
.end annotation
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public abstract interface LzzzRangeMethodsInterface;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
.method public abstract interfaceMethodTest(IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII)I
|
||||
.end method
|
@ -0,0 +1,34 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public abstract interface LzzzRangeMethodsInterface_autofix;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
.method public abstract interfaceMethodTest(IIIIII)I
|
||||
.end method
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,65 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LzzzRangeMethodsSuper_autofix;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct/range {p0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public superMethodTest(IIIIII)I
|
||||
.registers 7
|
||||
|
||||
add-int v0, v1, v2
|
||||
add-int v0, v0, v3
|
||||
add-int v0, v0, v4
|
||||
add-int v0, v0, v5
|
||||
add-int v0, v0, v6
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public virtualMethodTest(IIIIII)I
|
||||
.registers 7
|
||||
|
||||
add-int v0, v1, v2
|
||||
add-int v0, v0, v3
|
||||
add-int v0, v0, v4
|
||||
add-int v0, v0, v5
|
||||
add-int v0, v0, v6
|
||||
|
||||
#add something extra, to make the test fail if this method is called instead of the subclasses's method
|
||||
const v1, 1
|
||||
add-int v0, v0, v1
|
||||
|
||||
return v0
|
||||
.end method
|
@ -0,0 +1,74 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LzzzRangeMethods_autofix;
|
||||
.super LzzzRangeMethodsSuper_autofix;
|
||||
.implements LzzzRangeMethodsInterface_autofix;
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct/range {p0}, LzzzRangeMethodsSuper_autofix;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public virtualMethodTest(IIIIII)I
|
||||
.registers 7
|
||||
|
||||
add-int v0, v1, v2
|
||||
add-int v0, v0, v3
|
||||
add-int v0, v0, v4
|
||||
add-int v0, v0, v5
|
||||
add-int v0, v0, v6
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public static staticMethodTest(IIIIII)I
|
||||
.registers 7
|
||||
|
||||
add-int v0, v1, v2
|
||||
add-int v0, v0, v3
|
||||
add-int v0, v0, v4
|
||||
add-int v0, v0, v5
|
||||
add-int v0, v0, v6
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public interfaceMethodTest(IIIIII)I
|
||||
.registers 7
|
||||
|
||||
add-int v0, v1, v2
|
||||
add-int v0, v0, v3
|
||||
add-int v0, v0, v4
|
||||
add-int v0, v0, v5
|
||||
add-int v0, v0, v6
|
||||
|
||||
return v0
|
||||
.end method
|
@ -0,0 +1,41 @@
|
||||
.class public LAssert;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Assert.smali"
|
||||
|
||||
#junit's Assert doesn't have an AssertEquals method for ints, only longs
|
||||
.method public static assertEquals(II)V
|
||||
.registers 4
|
||||
|
||||
int-to-long v0, p1
|
||||
int-to-long p0, p0
|
||||
|
||||
invoke-static {v0, v1, p0, p1}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
#junit's Assert doesn't have an AssertEquals method for floats, only doubles
|
||||
.method public static assertEquals(FF)V
|
||||
.registers 6
|
||||
|
||||
float-to-double v0, p0
|
||||
float-to-double v2, p1
|
||||
|
||||
const-wide v4, .00001
|
||||
|
||||
invoke-static/range {v0..v5}, Lorg/junit/Assert;->assertEquals(DDD)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
#convenience method that supplies a default "Delta" argument
|
||||
.method public static assertEquals(DD)V
|
||||
.registers 6
|
||||
|
||||
move-wide v0, p0
|
||||
move-wide v2, p2
|
||||
|
||||
const-wide v4, .00001
|
||||
|
||||
invoke-static/range {v0..v5}, Lorg/junit/Assert;->assertEquals(DDD)V
|
||||
|
||||
return-void
|
||||
.end method
|
@ -0,0 +1,170 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LFormat41c;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Format41c.smali"
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_const-class-jumbo()V
|
||||
.registers 9
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const-class/jumbo v0, Lzzz99999;
|
||||
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
||||
move-result-object v0
|
||||
|
||||
#check for the initial 3 z's
|
||||
const v1, 3
|
||||
const v2, 0
|
||||
const-wide v3, 'z'
|
||||
|
||||
:loop
|
||||
invoke-virtual {v0, v2}, Ljava/lang/String;->charAt(I)C
|
||||
move-result v5
|
||||
|
||||
int-to-long v6, v5
|
||||
|
||||
invoke-static {v3, v4, v6, v7}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
|
||||
add-int/lit8 v2, v2, 1
|
||||
if-ne v1, v2, :loop
|
||||
|
||||
#and now for the final 9's
|
||||
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
||||
move-result v1
|
||||
const-wide v3, '9'
|
||||
|
||||
:loop2
|
||||
invoke-virtual {v0, v2}, Ljava/lang/String;->charAt(I)C
|
||||
move-result v5
|
||||
|
||||
int-to-long v6, v5
|
||||
|
||||
invoke-static {v3, v4, v6, v7}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
|
||||
add-int/lit8 v2, v2, 1
|
||||
if-ne v1, v2, :loop2
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_new-instance-jumbo-index()V
|
||||
.registers 3
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance/jumbo v1, Lzzz99999;
|
||||
|
||||
#there's no way to initialize the new object, due to type index constraints on a method_id_item
|
||||
#so just attempt to create the new object and call it good
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_new-instance-jumbo-register()V
|
||||
.registers 257
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const-string v0, "test"
|
||||
|
||||
#test using a large register
|
||||
new-instance/jumbo v256, LStringWrapper;
|
||||
move-object/16 v1, v256
|
||||
|
||||
invoke-direct {v1, v0}, LStringWrapper;-><init>(Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {v1}, LStringWrapper;->getValue()Ljava/lang/String;
|
||||
move-result-object v2
|
||||
|
||||
invoke-static {v0, v2}, Lorg/junit/Assert;->assertEquals(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_check-cast-jumbo-fail()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
:tryStart
|
||||
const-string v0, "test"
|
||||
|
||||
check-cast/jumbo v0, Lzzz99999;
|
||||
:tryEnd
|
||||
.catch Ljava/lang/ClassCastException; {:tryStart .. :tryEnd} :handler
|
||||
|
||||
#the check-cast didn't throw an exception as expected
|
||||
invoke-static {}, Lorg/junit/Assert;->fail()V
|
||||
|
||||
:handler
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
#there's no way to just a successful check-cast/jumbo with a jumbo type, because
|
||||
#it's impossible to create a class that is a subclass of a "jumbo" class, and
|
||||
#it's impossible to define a class that implements a "jumbo" interface
|
||||
#.method public test_check-cast-jumbo-success()V
|
||||
|
||||
.method public test_check-cast-success-jumbo-register()V
|
||||
.registers 257
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const-string v0, "test"
|
||||
|
||||
:tryStart
|
||||
new-instance/jumbo v256, LStringWrapper;
|
||||
move-object/16 v1, v256
|
||||
|
||||
invoke-direct {v1, v0}, LStringWrapper;-><init>(Ljava/lang/String;)V
|
||||
|
||||
check-cast/jumbo v256, Ljava/lang/Object;
|
||||
:tryEnd
|
||||
.catch Ljava/lang/ClassCastException; {:tryStart .. :tryEnd} :handler
|
||||
|
||||
#no exception. success
|
||||
|
||||
return-void
|
||||
|
||||
:handler
|
||||
|
||||
#the check-cast unexpectedly threw an exception
|
||||
invoke-static {}, Lorg/junit/Assert;->fail()V
|
||||
return-void
|
||||
.end method
|
||||
|
@ -0,0 +1,115 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LFormat41c_autofix;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Format41c_autofix.smali"
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_const-class-jumbo()V
|
||||
.registers 9
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const-class v0, Lzzz99999;
|
||||
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
||||
move-result-object v0
|
||||
|
||||
#check for the initial 3 z's
|
||||
const v1, 3
|
||||
const v2, 0
|
||||
const-wide v3, 'z'
|
||||
|
||||
:loop
|
||||
invoke-virtual {v0, v2}, Ljava/lang/String;->charAt(I)C
|
||||
move-result v5
|
||||
|
||||
int-to-long v6, v5
|
||||
|
||||
invoke-static {v3, v4, v6, v7}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
|
||||
add-int/lit8 v2, v2, 1
|
||||
if-ne v1, v2, :loop
|
||||
|
||||
#and now for the final 9's
|
||||
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
||||
move-result v1
|
||||
const-wide v3, '9'
|
||||
|
||||
:loop2
|
||||
invoke-virtual {v0, v2}, Ljava/lang/String;->charAt(I)C
|
||||
move-result v5
|
||||
|
||||
int-to-long v6, v5
|
||||
|
||||
invoke-static {v3, v4, v6, v7}, Lorg/junit/Assert;->assertEquals(JJ)V
|
||||
|
||||
add-int/lit8 v2, v2, 1
|
||||
if-ne v1, v2, :loop2
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_new-instance-jumbo-index()V
|
||||
.registers 3
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
new-instance v1, Lzzz99999;
|
||||
|
||||
#there's no way to initialize the new object, due to type index constraints on a method_id_item
|
||||
#so just attempt to create the new object and call it good
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_check-cast-jumbo-fail()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
:tryStart
|
||||
const-string v0, "test"
|
||||
|
||||
check-cast v0, Lzzz99999;
|
||||
:tryEnd
|
||||
.catch Ljava/lang/ClassCastException; {:tryStart .. :tryEnd} :handler
|
||||
|
||||
#the check-cast didn't throw an exception as expected
|
||||
invoke-static {}, Lorg/junit/Assert;->fail()V
|
||||
|
||||
:handler
|
||||
|
||||
return-void
|
||||
.end method
|
@ -0,0 +1,98 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
|
||||
|
||||
.class public LFormat52c;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Format52c.smali"
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-instance-of-jumbo-success()V
|
||||
.registers 258
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const-string v0, "test"
|
||||
|
||||
new-instance v1, LStringWrapper;
|
||||
invoke-direct {v1, v0}, LStringWrapper;-><init>(Ljava/lang/String;)V
|
||||
|
||||
move-object/16 v256, v1
|
||||
|
||||
instance-of/jumbo v257, v256, Ljava/lang/Object;
|
||||
|
||||
const v0, 1
|
||||
move/16 v256, v0
|
||||
|
||||
invoke-static/range {v256 .. v257}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-instance-of-jumbo-failure()V
|
||||
.registers 258
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const-string v0, "test"
|
||||
|
||||
new-instance v1, LStringWrapper;
|
||||
invoke-direct {v1, v0}, LStringWrapper;-><init>(Ljava/lang/String;)V
|
||||
|
||||
move-object/16 v256, v1
|
||||
|
||||
instance-of/jumbo v257, v256, Lzzz99999;
|
||||
|
||||
const v0, 0
|
||||
move/16 v256, v0
|
||||
|
||||
invoke-static/range {v256 .. v257}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-new-array-jumbo()V
|
||||
.registers 258
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 1
|
||||
move/16 v256, v0
|
||||
|
||||
new-array/jumbo v257, v256, [Lzzz99999;
|
||||
|
||||
move-object/16 v1, v257
|
||||
|
||||
array-length v2, v1
|
||||
|
||||
invoke-static {v0, v2}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
@ -0,0 +1,89 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
|
||||
|
||||
.class public LFormat52c_autofix;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Format52c_autofix.smali"
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-instance-of-jumbo-success()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const-string v0, "test"
|
||||
|
||||
new-instance v1, LStringWrapper;
|
||||
invoke-direct {v1, v0}, LStringWrapper;-><init>(Ljava/lang/String;)V
|
||||
|
||||
instance-of v0, v1, Ljava/lang/Object;
|
||||
|
||||
const v1, 1
|
||||
|
||||
invoke-static/range {v0 .. v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-instance-of-jumbo-failure()V
|
||||
.registers 2
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const-string v0, "test"
|
||||
|
||||
new-instance v1, LStringWrapper;
|
||||
invoke-direct {v1, v0}, LStringWrapper;-><init>(Ljava/lang/String;)V
|
||||
|
||||
instance-of v0, v1, Lzzz99999;
|
||||
|
||||
const v1, 0
|
||||
|
||||
invoke-static/range {v0 .. v1}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test-new-array-jumbo()V
|
||||
.registers 3
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 1
|
||||
|
||||
new-array v1, v0, [Lzzz99999;
|
||||
|
||||
array-length v2, v1
|
||||
|
||||
invoke-static {v0, v2}, LAssert;->assertEquals(II)V
|
||||
return-void
|
||||
.end method
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,86 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LFormat5rc_autofix;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Format5rc_autofix.smali"
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 1
|
||||
invoke-direct/range {p0}, Ljava/lang/Object;-><init>()V
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public test_filled-new-array-range()V
|
||||
.registers 6
|
||||
.annotation runtime Lorg/junit/Test;
|
||||
.end annotation
|
||||
|
||||
const v0, 1
|
||||
const v1, 2
|
||||
const v2, 3
|
||||
const v3, 4
|
||||
const v4, 5
|
||||
const v5, 6
|
||||
|
||||
filled-new-array/range {v0 .. v5}, [I
|
||||
move-result-object v0
|
||||
|
||||
const v1, 0
|
||||
aget v2, v0, v1
|
||||
const v1, 1
|
||||
invoke-static {v1, v2}, LAssert;->assertEquals(II)V
|
||||
|
||||
const v1, 1
|
||||
aget v2, v0, v1
|
||||
const v1, 2
|
||||
invoke-static {v1, v2}, LAssert;->assertEquals(II)V
|
||||
|
||||
const v1, 2
|
||||
aget v2, v0, v1
|
||||
const v1, 3
|
||||
invoke-static {v1, v2}, LAssert;->assertEquals(II)V
|
||||
|
||||
const v1, 3
|
||||
aget v2, v0, v1
|
||||
const v1, 4
|
||||
invoke-static {v1, v2}, LAssert;->assertEquals(II)V
|
||||
|
||||
const v1, 4
|
||||
aget v2, v0, v1
|
||||
const v1, 5
|
||||
invoke-static {v1, v2}, LAssert;->assertEquals(II)V
|
||||
|
||||
const v1, 5
|
||||
aget v2, v0, v1
|
||||
const v1, 6
|
||||
invoke-static {v1, v2}, LAssert;->assertEquals(II)V
|
||||
|
||||
return-void
|
||||
.end method
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
||||
.class public LStringWrapper;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
#the type_id_item index for this class should be <64k
|
||||
|
||||
.field private stringValue:Ljava/lang/String;
|
||||
|
||||
.method public constructor <init>()V
|
||||
.registers 2
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
const-string v0, "test"
|
||||
|
||||
iput-object v0, p0, LStringWrapper;->stringValue:Ljava/lang/String;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Ljava/lang/String;)V
|
||||
.registers 2
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, LStringWrapper;->stringValue:Ljava/lang/String;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public getValue()Ljava/lang/String;
|
||||
.registers 2
|
||||
|
||||
iget-object v0, p0, LStringWrapper;->stringValue:Ljava/lang/String;
|
||||
|
||||
return-object v0
|
||||
.end method
|
@ -0,0 +1,45 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public LAllTests;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
.annotation runtime Lorg/junit/runner/RunWith;
|
||||
value = Lorg/junit/runners/Suite;
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Lorg/junit/runners/Suite$SuiteClasses;
|
||||
value = { LFormat41c;,
|
||||
LFormat41c_autofix;,
|
||||
LFormat52c;,
|
||||
LFormat52c_autofix;,
|
||||
LFormat5rc;,
|
||||
LFormat5rc_autofix;
|
||||
}
|
||||
.end annotation
|
@ -0,0 +1,38 @@
|
||||
#Copyright 2011, Google Inc.
|
||||
#All rights reserved.
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are
|
||||
#met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
#notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
#copyright notice, this list of conditions and the following disclaimer
|
||||
#in the documentation and/or other materials provided with the
|
||||
#distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
#contributors may be used to endorse or promote products derived from
|
||||
#this software without specific prior written permission.
|
||||
#
|
||||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
#A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
#OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
#THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
#(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.class public Lzzz99999;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
#The index of the type_id_item for this class should be > 0xffff, to allow
|
||||
#for testing jumbo instructions that reference a type
|
||||
|
||||
#Note that this class can't actually be instantiated, because it's impossible
|
||||
#to call a method on it, due to the limitation of the type_id_item index in
|
||||
#method_id_item
|
@ -253,7 +253,13 @@ tokens {
|
||||
I_STATEMENT_FORMAT35c_TYPE;
|
||||
I_STATEMENT_FORMAT3rc_METHOD;
|
||||
I_STATEMENT_FORMAT3rc_TYPE;
|
||||
I_STATEMENT_FORMAT41c_TYPE;
|
||||
I_STATEMENT_FORMAT41c_FIELD;
|
||||
I_STATEMENT_FORMAT51l;
|
||||
I_STATEMENT_FORMAT52c_TYPE;
|
||||
I_STATEMENT_FORMAT52c_FIELD;
|
||||
I_STATEMENT_FORMAT5rc_METHOD;
|
||||
I_STATEMENT_FORMAT5rc_TYPE;
|
||||
I_STATEMENT_ARRAY_DATA;
|
||||
I_STATEMENT_PACKED_SWITCH;
|
||||
I_STATEMENT_SPARSE_SWITCH;
|
||||
@ -858,7 +864,16 @@ instruction returns [int size]
|
||||
| insn_format3rc_type { $size = $insn_format3rc_type.size; }
|
||||
| insn_format3rmi_method { $size = $insn_format3rmi_method.size; }
|
||||
| insn_format3rms_method { $size = $insn_format3rms_method.size; }
|
||||
| insn_format41c_type { $size = $insn_format41c_type.size; }
|
||||
| insn_format41c_field { $size = $insn_format41c_field.size; }
|
||||
| insn_format41c_field_odex { $size = $insn_format41c_field_odex.size; }
|
||||
| insn_format51l { $size = $insn_format51l.size; }
|
||||
| insn_format52c_type { $size = $insn_format52c_type.size; }
|
||||
| insn_format52c_field { $size = $insn_format52c_field.size; }
|
||||
| insn_format52c_field_odex { $size = $insn_format52c_field_odex.size; }
|
||||
| insn_format5rc_method { $size = $insn_format5rc_method.size; }
|
||||
| insn_format5rc_method_odex { $size = $insn_format5rc_method_odex.size; }
|
||||
| insn_format5rc_type { $size = $insn_format5rc_type.size; }
|
||||
| insn_array_data_directive { $size = $insn_array_data_directive.size; }
|
||||
| insn_packed_switch_directive { $size = $insn_packed_switch_directive.size; }
|
||||
| insn_sparse_switch_directive { $size = $insn_sparse_switch_directive.size; };
|
||||
@ -1106,11 +1121,62 @@ insn_format3rms_method returns [int size]
|
||||
throwOdexedInstructionException(input, $INSTRUCTION_FORMAT3rms_METHOD.text);
|
||||
};
|
||||
|
||||
insn_format41c_type returns [int size]
|
||||
: //e.g. const-class/jumbo v2, Lorg/jf/HelloWorld2/HelloWorld2;
|
||||
INSTRUCTION_FORMAT41c_TYPE REGISTER COMMA reference_type_descriptor {$size = Format.Format41c.size;}
|
||||
-> ^(I_STATEMENT_FORMAT41c_TYPE[$start, "I_STATEMENT_FORMAT41c"] INSTRUCTION_FORMAT41c_TYPE REGISTER reference_type_descriptor);
|
||||
|
||||
insn_format41c_field returns [int size]
|
||||
: //e.g. sget-object/jumbo v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
|
||||
INSTRUCTION_FORMAT41c_FIELD REGISTER COMMA fully_qualified_field {$size = Format.Format41c.size;}
|
||||
-> ^(I_STATEMENT_FORMAT41c_FIELD[$start, "I_STATEMENT_FORMAT41c_FIELD"] INSTRUCTION_FORMAT41c_FIELD REGISTER fully_qualified_field);
|
||||
|
||||
insn_format41c_field_odex returns [int size]
|
||||
: //e.g. sget-object-volatile/jumbo v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
|
||||
INSTRUCTION_FORMAT41c_FIELD_ODEX REGISTER COMMA fully_qualified_field {$size = Format.Format41c.size;}
|
||||
{
|
||||
throwOdexedInstructionException(input, $INSTRUCTION_FORMAT41c_FIELD_ODEX.text);
|
||||
};
|
||||
|
||||
insn_format51l returns [int size]
|
||||
: //e.g. const-wide v0, 5000000000L
|
||||
INSTRUCTION_FORMAT51l REGISTER COMMA fixed_literal {$size = Format.Format51l.size;}
|
||||
-> ^(I_STATEMENT_FORMAT51l[$start, "I_STATEMENT_FORMAT51l"] INSTRUCTION_FORMAT51l REGISTER fixed_literal);
|
||||
|
||||
insn_format52c_type returns [int size]
|
||||
: //e.g. instance-of/jumbo v0, v1, Ljava/lang/String;
|
||||
INSTRUCTION_FORMAT52c_TYPE REGISTER COMMA REGISTER COMMA nonvoid_type_descriptor {$size = Format.Format52c.size;}
|
||||
-> ^(I_STATEMENT_FORMAT52c_TYPE[$start, "I_STATEMENT_FORMAT52c_TYPE"] INSTRUCTION_FORMAT52c_TYPE REGISTER REGISTER nonvoid_type_descriptor);
|
||||
|
||||
insn_format52c_field returns [int size]
|
||||
: //e.g. iput-object/jumbo v1, v0 Lorg/jf/HelloWorld2/HelloWorld2;->helloWorld:Ljava/lang/String;
|
||||
INSTRUCTION_FORMAT52c_FIELD REGISTER COMMA REGISTER COMMA fully_qualified_field {$size = Format.Format52c.size;}
|
||||
-> ^(I_STATEMENT_FORMAT52c_FIELD[$start, "I_STATEMENT_FORMAT52c_FIELD"] INSTRUCTION_FORMAT52c_FIELD REGISTER REGISTER fully_qualified_field);
|
||||
|
||||
insn_format52c_field_odex returns [int size]
|
||||
: //e.g. iput-object-volatile/jumbo v1, v0 Lorg/jf/HelloWorld2/HelloWorld2;->helloWorld:Ljava/lang/String;
|
||||
INSTRUCTION_FORMAT52c_FIELD_ODEX REGISTER COMMA REGISTER COMMA fully_qualified_field {$size = Format.Format52c.size;}
|
||||
{
|
||||
throwOdexedInstructionException(input, $INSTRUCTION_FORMAT52c_FIELD_ODEX.text);
|
||||
};
|
||||
|
||||
insn_format5rc_method returns [int size]
|
||||
: //e.g. invoke-virtual/jumbo {v25..v26}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
INSTRUCTION_FORMAT5rc_METHOD OPEN_BRACE register_range CLOSE_BRACE COMMA fully_qualified_method {$size = Format.Format5rc.size;}
|
||||
-> ^(I_STATEMENT_FORMAT5rc_METHOD[$start, "I_STATEMENT_FORMAT5rc_METHOD"] INSTRUCTION_FORMAT5rc_METHOD register_range fully_qualified_method);
|
||||
|
||||
insn_format5rc_method_odex returns [int size]
|
||||
: //e.g. invoke-object-init/jumbo {v25}, Ljava/lang/Object-><init>()V
|
||||
INSTRUCTION_FORMAT5rc_METHOD_ODEX OPEN_BRACE register_range CLOSE_BRACE COMMA fully_qualified_method {$size = Format.Format5rc.size;}
|
||||
{
|
||||
throwOdexedInstructionException(input, $INSTRUCTION_FORMAT5rc_METHOD_ODEX.text);
|
||||
};
|
||||
|
||||
insn_format5rc_type returns [int size]
|
||||
: //e.g. filled-new-array/jumbo {v0..v6}, I
|
||||
INSTRUCTION_FORMAT5rc_TYPE OPEN_BRACE register_range CLOSE_BRACE COMMA nonvoid_type_descriptor {$size = Format.Format5rc.size;}
|
||||
-> ^(I_STATEMENT_FORMAT5rc_TYPE[$start, "I_STATEMENT_FORMAT5rc_TYPE"] INSTRUCTION_FORMAT5rc_TYPE register_range nonvoid_type_descriptor);
|
||||
|
||||
insn_array_data_directive returns [int size]
|
||||
@init {boolean needsNop = false;}
|
||||
: ARRAY_DATA_DIRECTIVE
|
||||
|
@ -938,7 +938,13 @@ instruction[int totalMethodRegisters, int methodParameterRegisters, List<Instruc
|
||||
| insn_format35c_type[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_format35c_type.outRegisters; }
|
||||
| insn_format3rc_method[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_format3rc_method.outRegisters; }
|
||||
| insn_format3rc_type[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_format3rc_type.outRegisters; }
|
||||
| insn_format41c_type[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_format41c_type.outRegisters; }
|
||||
| insn_format41c_field[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_format41c_field.outRegisters; }
|
||||
| insn_format51l_type[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_format51l_type.outRegisters; }
|
||||
| insn_format52c_type[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_format52c_type.outRegisters; }
|
||||
| insn_format52c_field[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_format52c_field.outRegisters; }
|
||||
| insn_format5rc_method[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_format5rc_method.outRegisters; }
|
||||
| insn_format5rc_type[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_format5rc_type.outRegisters; }
|
||||
| insn_array_data_directive[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_array_data_directive.outRegisters; }
|
||||
| insn_packed_switch_directive[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_packed_switch_directive.outRegisters; }
|
||||
| insn_sparse_switch_directive[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_sparse_switch_directive.outRegisters; };
|
||||
@ -1320,6 +1326,30 @@ insn_format3rc_type[int totalMethodRegisters, int methodParameterRegisters, List
|
||||
$instructions.add(new Instruction3rc(opcode, (short)registerCount, startRegister, typeIdItem));
|
||||
};
|
||||
|
||||
insn_format41c_type[int totalMethodRegisters, int methodParameterRegisters, List<Instruction> instructions] returns[int outRegisters]
|
||||
: //e.g. const-class/jumbo v2, org/jf/HelloWorld2/HelloWorld2
|
||||
^(I_STATEMENT_FORMAT41c_TYPE INSTRUCTION_FORMAT41c_TYPE REGISTER reference_type_descriptor)
|
||||
{
|
||||
Opcode opcode = Opcode.getOpcodeByName($INSTRUCTION_FORMAT41c_TYPE.text);
|
||||
int regA = parseRegister_short($REGISTER.text, $totalMethodRegisters, $methodParameterRegisters);
|
||||
|
||||
TypeIdItem typeIdItem = $reference_type_descriptor.type;
|
||||
|
||||
$instructions.add(new Instruction41c(opcode, regA, typeIdItem));
|
||||
};
|
||||
|
||||
insn_format41c_field[int totalMethodRegisters, int methodParameterRegisters, List<Instruction> instructions] returns[int outRegisters]
|
||||
: //e.g. sget-object/jumbo v0, Ljava/lang/System;->out:LJava/io/PrintStream;
|
||||
^(I_STATEMENT_FORMAT41c_FIELD INSTRUCTION_FORMAT41c_FIELD REGISTER fully_qualified_field)
|
||||
{
|
||||
Opcode opcode = Opcode.getOpcodeByName($INSTRUCTION_FORMAT41c_FIELD.text);
|
||||
int regA = parseRegister_short($REGISTER.text, $totalMethodRegisters, $methodParameterRegisters);
|
||||
|
||||
FieldIdItem fieldIdItem = $fully_qualified_field.fieldIdItem;
|
||||
|
||||
$instructions.add(new Instruction41c(opcode, regA, fieldIdItem));
|
||||
};
|
||||
|
||||
insn_format51l_type[int totalMethodRegisters, int methodParameterRegisters, List<Instruction> instructions] returns[int outRegisters]
|
||||
: //e.g. const-wide v0, 5000000000L
|
||||
^(I_STATEMENT_FORMAT51l INSTRUCTION_FORMAT51l REGISTER fixed_64bit_literal)
|
||||
@ -1332,6 +1362,64 @@ insn_format51l_type[int totalMethodRegisters, int methodParameterRegisters, List
|
||||
$instructions.add(new Instruction51l(opcode, regA, litB));
|
||||
};
|
||||
|
||||
insn_format52c_type[int totalMethodRegisters, int methodParameterRegisters, List<Instruction> instructions] returns[int outRegisters]
|
||||
: //e.g. instance-of/jumbo v0, v1, Ljava/lang/String;
|
||||
^(I_STATEMENT_FORMAT52c_TYPE INSTRUCTION_FORMAT52c_TYPE registerA=REGISTER registerB=REGISTER nonvoid_type_descriptor)
|
||||
{
|
||||
Opcode opcode = Opcode.getOpcodeByName($INSTRUCTION_FORMAT52c_TYPE.text);
|
||||
int regA = parseRegister_short($registerA.text, $totalMethodRegisters, $methodParameterRegisters);
|
||||
int regB = parseRegister_short($registerB.text, $totalMethodRegisters, $methodParameterRegisters);
|
||||
|
||||
TypeIdItem typeIdItem = $nonvoid_type_descriptor.type;
|
||||
|
||||
$instructions.add(new Instruction52c(opcode, regA, regB, typeIdItem));
|
||||
};
|
||||
|
||||
insn_format52c_field[int totalMethodRegisters, int methodParameterRegisters, List<Instruction> instructions] returns[int outRegisters]
|
||||
: //e.g. iput-object/jumbo v1, v0, Lorg/jf/HelloWorld2/HelloWorld2;->helloWorld:Ljava/lang/String;
|
||||
^(I_STATEMENT_FORMAT52c_FIELD INSTRUCTION_FORMAT52c_FIELD registerA=REGISTER registerB=REGISTER fully_qualified_field)
|
||||
{
|
||||
Opcode opcode = Opcode.getOpcodeByName($INSTRUCTION_FORMAT52c_FIELD.text);
|
||||
int regA = parseRegister_short($registerA.text, $totalMethodRegisters, $methodParameterRegisters);
|
||||
int regB = parseRegister_short($registerB.text, $totalMethodRegisters, $methodParameterRegisters);
|
||||
|
||||
FieldIdItem fieldIdItem = $fully_qualified_field.fieldIdItem;
|
||||
|
||||
$instructions.add(new Instruction52c(opcode, regA, regB, fieldIdItem));
|
||||
};
|
||||
|
||||
insn_format5rc_method[int totalMethodRegisters, int methodParameterRegisters, List<Instruction> instructions] returns[int outRegisters]
|
||||
: //e.g. invoke-virtual/jumbo {v25..v26} java/lang/StringBuilder/append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
^(I_STATEMENT_FORMAT5rc_METHOD INSTRUCTION_FORMAT5rc_METHOD register_range[$totalMethodRegisters, $methodParameterRegisters] fully_qualified_method)
|
||||
{
|
||||
Opcode opcode = Opcode.getOpcodeByName($INSTRUCTION_FORMAT5rc_METHOD.text);
|
||||
int startRegister = $register_range.startRegister;
|
||||
int endRegister = $register_range.endRegister;
|
||||
|
||||
int registerCount = endRegister-startRegister+1;
|
||||
$outRegisters = registerCount;
|
||||
|
||||
MethodIdItem methodIdItem = $fully_qualified_method.methodIdItem;
|
||||
|
||||
$instructions.add(new Instruction5rc(opcode, registerCount, startRegister, methodIdItem));
|
||||
};
|
||||
|
||||
insn_format5rc_type[int totalMethodRegisters, int methodParameterRegisters, List<Instruction> instructions] returns[int outRegisters]
|
||||
: //e.g. filled-new-array/jumbo {v0..v6} I
|
||||
^(I_STATEMENT_FORMAT5rc_TYPE INSTRUCTION_FORMAT5rc_TYPE register_range[$totalMethodRegisters, $methodParameterRegisters] nonvoid_type_descriptor)
|
||||
{
|
||||
Opcode opcode = Opcode.getOpcodeByName($INSTRUCTION_FORMAT5rc_TYPE.text);
|
||||
int startRegister = $register_range.startRegister;
|
||||
int endRegister = $register_range.endRegister;
|
||||
|
||||
int registerCount = endRegister-startRegister+1;
|
||||
$outRegisters = registerCount;
|
||||
|
||||
TypeIdItem typeIdItem = $nonvoid_type_descriptor.type;
|
||||
|
||||
$instructions.add(new Instruction5rc(opcode, registerCount, startRegister, typeIdItem));
|
||||
};
|
||||
|
||||
insn_array_data_directive[int totalMethodRegisters, int methodParameterRegisters, List<Instruction> instructions] returns[int outRegisters]
|
||||
: //e.g. .array-data 4 1000000 .end array-data
|
||||
^(I_STATEMENT_ARRAY_DATA ^(I_ARRAY_ELEMENT_SIZE short_integral_literal) array_elements)
|
||||
|
@ -100,7 +100,7 @@ public class main {
|
||||
|
||||
boolean allowOdex = false;
|
||||
boolean sort = false;
|
||||
boolean fixJumbo = true;
|
||||
boolean jumboInstructions = false;
|
||||
boolean fixGoto = true;
|
||||
boolean verboseErrors = false;
|
||||
boolean printTokens = false;
|
||||
@ -149,7 +149,7 @@ public class main {
|
||||
sort = true;
|
||||
break;
|
||||
case 'J':
|
||||
fixJumbo = false;
|
||||
jumboInstructions = true;
|
||||
break;
|
||||
case 'G':
|
||||
fixGoto = false;
|
||||
@ -187,7 +187,7 @@ public class main {
|
||||
}
|
||||
}
|
||||
|
||||
Opcode.updateMapsForApiLevel(apiLevel);
|
||||
Opcode.updateMapsForApiLevel(apiLevel, jumboInstructions);
|
||||
|
||||
DexFile dexFile = new DexFile();
|
||||
|
||||
@ -212,8 +212,8 @@ public class main {
|
||||
dexFile.setSortAllItems(true);
|
||||
}
|
||||
|
||||
if (fixJumbo || fixGoto) {
|
||||
fixInstructions(dexFile, fixJumbo, fixGoto);
|
||||
if (fixGoto) {
|
||||
fixInstructions(dexFile, true, fixGoto);
|
||||
}
|
||||
|
||||
dexFile.place();
|
||||
@ -399,8 +399,11 @@ public class main {
|
||||
.withDescription("sort the items in the dex file into a canonical order before writing")
|
||||
.create("S");
|
||||
|
||||
Option noFixJumboOption = OptionBuilder.withLongOpt("no-fix-jumbo")
|
||||
.withDescription("Don't automatically instructions with the /jumbo variant where appropriate")
|
||||
Option jumboInstructionsOption = OptionBuilder.withLongOpt("jumbo-instructions")
|
||||
.withDescription("adds support for the jumbo opcodes that were temporarily available around the" +
|
||||
" ics timeframe. Note that support for these opcodes was removed from newer version of" +
|
||||
" dalvik. You shouldn't use this option unless you know the dex file will only be used on a" +
|
||||
" device that supports these opcodes.")
|
||||
.create("J");
|
||||
|
||||
Option noFixGotoOption = OptionBuilder.withLongOpt("no-fix-goto")
|
||||
@ -423,7 +426,7 @@ public class main {
|
||||
|
||||
debugOptions.addOption(dumpOption);
|
||||
debugOptions.addOption(sortOption);
|
||||
debugOptions.addOption(noFixJumboOption);
|
||||
debugOptions.addOption(jumboInstructionsOption);
|
||||
debugOptions.addOption(noFixGotoOption);
|
||||
debugOptions.addOption(verboseErrorsOption);
|
||||
debugOptions.addOption(printTokensOption);
|
||||
|
@ -574,9 +574,52 @@ Type = {PrimitiveType} | {ClassDescriptor} | {ArrayDescriptor}
|
||||
return newToken(INSTRUCTION_FORMAT3rms_METHOD);
|
||||
}
|
||||
|
||||
"check-cast/jumbo" | "new-instance/jumbo" | "const-class/jumbo" {
|
||||
return newToken(INSTRUCTION_FORMAT41c_TYPE);
|
||||
}
|
||||
|
||||
"sget/jumbo" | "sget-wide/jumbo" | "sget-object/jumbo" | "sget-boolean/jumbo" | "sget-byte/jumbo" |
|
||||
"sget-char/jumbo" | "sget-short/jumbo" | "sput/jumbo" | "sput-wide/jumbo" | "sput-object/jumbo" |
|
||||
"sput-boolean/jumbo" | "sput-byte/jumbo" | "sput-char/jumbo" | "sput-short/jumbo" {
|
||||
return newToken(INSTRUCTION_FORMAT41c_FIELD);
|
||||
}
|
||||
|
||||
"sget-volatile/jumbo" | "sget-wide-volatile/jumbo" | "sget-object-volatile/jumbo" | "sput-volatile/jumbo" |
|
||||
"sput-wide-volatile/jumbo" | "sput-object-volatile/jumbo" {
|
||||
return newToken(INSTRUCTION_FORMAT41c_FIELD_ODEX);
|
||||
}
|
||||
|
||||
"const-wide" {
|
||||
return newToken(INSTRUCTION_FORMAT51l);
|
||||
}
|
||||
|
||||
"instance-of/jumbo" | "new-array/jumbo" {
|
||||
return newToken(INSTRUCTION_FORMAT52c_TYPE);
|
||||
}
|
||||
|
||||
"iget/jumbo" | "iget-wide/jumbo" | "iget-object/jumbo" | "iget-boolean/jumbo" | "iget-byte/jumbo" |
|
||||
"iget-char/jumbo" | "iget-short/jumbo" | "iput/jumbo" | "iput-wide/jumbo" | "iput-object/jumbo" |
|
||||
"iput-boolean/jumbo" | "iput-byte/jumbo" | "iput-char/jumbo" | "iput-short/jumbo" {
|
||||
return newToken(INSTRUCTION_FORMAT52c_FIELD);
|
||||
}
|
||||
|
||||
"iget-volatile/jumbo" | "iget-wide-volatile/jumbo" | "iget-object-volatile/jumbo" | "iput-volatile/jumbo" |
|
||||
"iput-wide-volatile/jumbo" | "iput-object-volatile/jumbo" {
|
||||
return newToken(INSTRUCTION_FORMAT52c_FIELD_ODEX);
|
||||
}
|
||||
|
||||
"invoke-virtual/jumbo" | "invoke-super/jumbo" | "invoke-direct/jumbo" | "invoke-static/jumbo" |
|
||||
"invoke-interface/jumbo" {
|
||||
return newToken(INSTRUCTION_FORMAT5rc_METHOD);
|
||||
}
|
||||
|
||||
"invoke-object-init/jumbo" {
|
||||
return newToken(INSTRUCTION_FORMAT5rc_METHOD_ODEX);
|
||||
}
|
||||
|
||||
"filled-new-array/jumbo" {
|
||||
return newToken(INSTRUCTION_FORMAT5rc_TYPE);
|
||||
}
|
||||
}
|
||||
|
||||
/*Types*/
|
||||
|
@ -225,4 +225,56 @@ filled-new-array/range
|
||||
execute-inline/range
|
||||
invoke-virtual-quick/range
|
||||
invoke-super-quick/range
|
||||
check-cast/jumbo
|
||||
new-instance/jumbo
|
||||
const-class/jumbo
|
||||
sget/jumbo
|
||||
sget-wide/jumbo
|
||||
sget-object/jumbo
|
||||
sget-boolean/jumbo
|
||||
sget-byte/jumbo
|
||||
sget-char/jumbo
|
||||
sget-short/jumbo
|
||||
sput/jumbo
|
||||
sput-wide/jumbo
|
||||
sput-object/jumbo
|
||||
sput-boolean/jumbo
|
||||
sput-byte/jumbo
|
||||
sput-char/jumbo
|
||||
sput-short/jumbo
|
||||
const-wide
|
||||
instance-of/jumbo
|
||||
new-array/jumbo
|
||||
iget/jumbo
|
||||
iget-wide/jumbo
|
||||
iget-object/jumbo
|
||||
iget-boolean/jumbo
|
||||
iget-byte/jumbo
|
||||
iget-char/jumbo
|
||||
iget-short/jumbo
|
||||
iput/jumbo
|
||||
iput-wide/jumbo
|
||||
iput-object/jumbo
|
||||
iput-boolean/jumbo
|
||||
iput-byte/jumbo
|
||||
iput-char/jumbo
|
||||
iput-short/jumbo
|
||||
invoke-virtual/jumbo
|
||||
invoke-super/jumbo
|
||||
invoke-direct/jumbo
|
||||
invoke-static/jumbo
|
||||
invoke-interface/jumbo
|
||||
filled-new-array/jumbo
|
||||
invoke-object-init/jumbo
|
||||
iget-volatile/jumbo
|
||||
iget-wide-volatile/jumbo
|
||||
iget-object-volatile/jumbo
|
||||
iput-volatile/jumbo
|
||||
iput-wide-volatile/jumbo
|
||||
iput-object-volatile/jumbo
|
||||
sget-volatile/jumbo
|
||||
sget-wide-volatile/jumbo
|
||||
sget-object-volatile/jumbo
|
||||
sput-volatile/jumbo
|
||||
sput-wide-volatile/jumbo
|
||||
sput-object-volatile/jumbo
|
||||
|
@ -225,4 +225,56 @@ INSTRUCTION_FORMAT3rc_TYPE("filled-new-array/range")
|
||||
INSTRUCTION_FORMAT3rmi_METHOD("execute-inline/range")
|
||||
INSTRUCTION_FORMAT3rms_METHOD("invoke-virtual-quick/range")
|
||||
INSTRUCTION_FORMAT3rms_METHOD("invoke-super-quick/range")
|
||||
INSTRUCTION_FORMAT41c_TYPE("check-cast/jumbo")
|
||||
INSTRUCTION_FORMAT41c_TYPE("new-instance/jumbo")
|
||||
INSTRUCTION_FORMAT41c_TYPE("const-class/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sget/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sget-wide/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sget-object/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sget-boolean/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sget-byte/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sget-char/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sget-short/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sput/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sput-wide/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sput-object/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sput-boolean/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sput-byte/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sput-char/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD("sput-short/jumbo")
|
||||
INSTRUCTION_FORMAT51l("const-wide")
|
||||
INSTRUCTION_FORMAT52c_TYPE("instance-of/jumbo")
|
||||
INSTRUCTION_FORMAT52c_TYPE("new-array/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iget/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iget-wide/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iget-object/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iget-boolean/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iget-byte/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iget-char/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iget-short/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iput/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iput-wide/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iput-object/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iput-boolean/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iput-byte/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iput-char/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD("iput-short/jumbo")
|
||||
INSTRUCTION_FORMAT5rc_METHOD("invoke-virtual/jumbo")
|
||||
INSTRUCTION_FORMAT5rc_METHOD("invoke-super/jumbo")
|
||||
INSTRUCTION_FORMAT5rc_METHOD("invoke-direct/jumbo")
|
||||
INSTRUCTION_FORMAT5rc_METHOD("invoke-static/jumbo")
|
||||
INSTRUCTION_FORMAT5rc_METHOD("invoke-interface/jumbo")
|
||||
INSTRUCTION_FORMAT5rc_TYPE("filled-new-array/jumbo")
|
||||
INSTRUCTION_FORMAT5rc_METHOD_ODEX("invoke-object-init/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD_ODEX("iget-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD_ODEX("iget-wide-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD_ODEX("iget-object-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD_ODEX("iput-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD_ODEX("iput-wide-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT52c_FIELD_ODEX("iput-object-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD_ODEX("sget-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD_ODEX("sget-wide-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD_ODEX("sget-object-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD_ODEX("sput-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD_ODEX("sput-wide-volatile/jumbo")
|
||||
INSTRUCTION_FORMAT41c_FIELD_ODEX("sput-object-volatile/jumbo")
|
||||
|
Loading…
x
Reference in New Issue
Block a user