Home | History | Annotate | Download | only in instruction

Lines Matching refs:opcode

34 import org.jf.dexlib2.Opcode;
45 @Nonnull public final Opcode opcode;
49 @Nonnull Opcode opcode,
52 this.opcode = opcode;
56 @Nonnull public Opcode getOpcode() { return opcode; }
57 @Override public int getCodeUnits() { return opcode.format.size / 2; }
67 Opcode opcode = reader.dexBuf.getOpcodes().getOpcodeByValue(opcodeValue);
69 Instruction instruction = buildInstruction(reader.dexBuf, opcode, reader.getOffset());
74 private static DexBackedInstruction buildInstruction(@Nonnull DexBackedDexFile dexFile, @Nullable Opcode opcode,
76 if (opcode == null) {
79 switch (opcode.format) {
81 return new DexBackedInstruction10t(dexFile, opcode, instructionStartOffset);
83 return new DexBackedInstruction10x(dexFile, opcode, instructionStartOffset);
85 return new DexBackedInstruction11n(dexFile, opcode, instructionStartOffset);
87 return new DexBackedInstruction11x(dexFile, opcode, instructionStartOffset);
89 return new DexBackedInstruction12x(dexFile, opcode, instructionStartOffset);
91 return new DexBackedInstruction20bc(dexFile, opcode, instructionStartOffset);
93 return new DexBackedInstruction20t(dexFile, opcode, instructionStartOffset);
95 return new DexBackedInstruction21c(dexFile, opcode, instructionStartOffset);
97 return new DexBackedInstruction21ih(dexFile, opcode, instructionStartOffset);
99 return new DexBackedInstruction21lh(dexFile, opcode, instructionStartOffset);
101 return new DexBackedInstruction21s(dexFile, opcode, instructionStartOffset);
103 return new DexBackedInstruction21t(dexFile, opcode, instructionStartOffset);
105 return new DexBackedInstruction22b(dexFile, opcode, instructionStartOffset);
107 return new DexBackedInstruction22c(dexFile, opcode, instructionStartOffset);
109 return new DexBackedInstruction22cs(dexFile, opcode, instructionStartOffset);
111 return new DexBackedInstruction22s(dexFile, opcode, instructionStartOffset);
113 return new DexBackedInstruction22t(dexFile, opcode, instructionStartOffset);
115 return new DexBackedInstruction22x(dexFile, opcode, instructionStartOffset);
117 return new DexBackedInstruction23x(dexFile, opcode, instructionStartOffset);
119 return new DexBackedInstruction30t(dexFile, opcode, instructionStartOffset);
121 return new DexBackedInstruction31c(dexFile, opcode, instructionStartOffset);
123 return new DexBackedInstruction31i(dexFile, opcode, instructionStartOffset);
125 return new DexBackedInstruction31t(dexFile, opcode, instructionStartOffset);
127 return new DexBackedInstruction32x(dexFile, opcode, instructionStartOffset);
129 return new DexBackedInstruction35c(dexFile, opcode, instructionStartOffset);
131 return new DexBackedInstruction35ms(dexFile, opcode, instructionStartOffset);
133 return new DexBackedInstruction35mi(dexFile, opcode, instructionStartOffset);
135 return new DexBackedInstruction3rc(dexFile, opcode, instructionStartOffset);
137 return new DexBackedInstruction3rmi(dexFile, opcode, instructionStartOffset);
139 return new DexBackedInstruction3rms(dexFile, opcode, instructionStartOffset);
141 return new DexBackedInstruction51l(dexFile, opcode, instructionStartOffset);
149 throw new ExceptionWithContext("Unexpected opcode format: %s", opcode.format.toString());