Home
last modified time | relevance | path

Searched refs:Opcodes (Results 1 – 17 of 17) sorted by relevance

/dalvik/dx/src/com/android/dx/dex/code/
DDops.java47 import com.android.dx.io.Opcodes;
64 new Dop(Opcodes.SPECIAL_FORMAT, Opcodes.SPECIAL_FORMAT,
65 Opcodes.NO_NEXT, SpecialFormat.THE_ONE, false);
69 new Dop(Opcodes.NOP, Opcodes.NOP,
70 Opcodes.NO_NEXT, Form10x.THE_ONE, false);
73 new Dop(Opcodes.MOVE, Opcodes.MOVE,
74 Opcodes.MOVE_FROM16, Form12x.THE_ONE, true);
77 new Dop(Opcodes.MOVE_FROM16, Opcodes.MOVE,
78 Opcodes.MOVE_16, Form22x.THE_ONE, true);
81 new Dop(Opcodes.MOVE_16, Opcodes.MOVE,
[all …]
DDop.java20 import com.android.dx.io.Opcodes;
62 if (!Opcodes.isValidShape(opcode)) { in Dop()
66 if (!Opcodes.isValidShape(family)) { in Dop()
70 if (!Opcodes.isValidShape(nextOpcode)) { in Dop()
157 case Opcodes.IF_EQ: return Dops.IF_NE; in getOppositeTest()
158 case Opcodes.IF_NE: return Dops.IF_EQ; in getOppositeTest()
159 case Opcodes.IF_LT: return Dops.IF_GE; in getOppositeTest()
160 case Opcodes.IF_GE: return Dops.IF_LT; in getOppositeTest()
161 case Opcodes.IF_GT: return Dops.IF_LE; in getOppositeTest()
162 case Opcodes.IF_LE: return Dops.IF_GT; in getOppositeTest()
[all …]
DOddSpacer.java19 import com.android.dx.io.Opcodes;
51 out.writeShort(InsnFormat.codeUnit(Opcodes.NOP, 0)); in writeTo()
DSwitchData.java19 import com.android.dx.io.Opcodes;
112 out.writeShort(Opcodes.PACKED_SWITCH_PAYLOAD); in writeTo()
132 out.writeShort(Opcodes.SPARSE_SWITCH_PAYLOAD); in writeTo()
DDalvInsnList.java20 import com.android.dx.io.Opcodes;
203 (insn.getOpcode().getFamily() == Opcodes.INVOKE_STATIC); in getOutsSize()
210 if (insn.getOpcode().getFamily() != Opcodes.INVOKE_POLYMORPHIC) { in getOutsSize()
DRopTranslator.java20 import com.android.dx.io.Opcodes;
751 (opcode.getOpcode() != Opcodes.NEW_ARRAY)) { in visitThrowingCstInsn()
773 if (opcode.getOpcode() == Opcodes.INSTANCE_OF && previousDi != null) { in visitThrowingCstInsn()
775 if (prevOpcode == Opcodes.MOVE_OBJECT in visitThrowingCstInsn()
776 || prevOpcode == Opcodes.MOVE_OBJECT_FROM16 in visitThrowingCstInsn()
777 || prevOpcode == Opcodes.MOVE_OBJECT_16) { in visitThrowingCstInsn()
856 if (insn.getOpcode().getOpcode() != Opcodes.SPECIAL_FORMAT) { in getPrevNonSpecialInsn()
DArrayData.java19 import com.android.dx.io.Opcodes;
115 out.writeShort(Opcodes.FILL_ARRAY_DATA_PAYLOAD); in writeTo()
DOutputFinisher.java21 import com.android.dx.io.Opcodes;
576 guess.getOpcode() != Opcodes.CONST_STRING) { in findOpcodeForInsn()
787 if (opcode.getFamily() == Opcodes.GOTO) { in fixBranches()
/dalvik/dx/tests/135-invoke-custom/src/invokecustom/
DTestGenerator.java34 import org.objectweb.asm.Opcodes;
56 new ClassVisitor(Opcodes.ASM5, cw) { in generateTests()
77 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, in generateMethodMain()
80 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test1", "()V", false); in generateMethodMain()
81 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test2", "()V", false); in generateMethodMain()
82 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test3", "()V", false); in generateMethodMain()
83 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test4", "()V", false); in generateMethodMain()
84 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test5", "()V", false); in generateMethodMain()
85 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test6", "()V", false); in generateMethodMain()
86 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test7", "()V", false); in generateMethodMain()
[all …]
/dalvik/dx/tests/137-dexmerger-dex38/src/invokecustom/
DTestGenerator.java34 import org.objectweb.asm.Opcodes;
70 new ClassVisitor(Opcodes.ASM5, cw) { in generateTest()
96 Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "main", "([Ljava/lang/String;)V", null, null); in generateMethodMain()
98 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "1", "test1", "()V", false); in generateMethodMain()
99 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "2", "test2", "()V", false); in generateMethodMain()
100 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "3", "test3", "()V", false); in generateMethodMain()
102 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "5", "test5", "()V", false); in generateMethodMain()
103 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "6", "test6", "()V", false); in generateMethodMain()
104 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "7", "test7", "()V", false); in generateMethodMain()
105 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "8", "test8", "()V", false); in generateMethodMain()
[all …]
/dalvik/dx/src/com/android/dx/io/
DOpcodeInfo.java41 new Info(Opcodes.SPECIAL_FORMAT, "<special>",
47 new Info(Opcodes.PACKED_SWITCH_PAYLOAD, "packed-switch-payload",
52 new Info(Opcodes.SPARSE_SWITCH_PAYLOAD, "sparse-switch-payload",
57 new Info(Opcodes.FILL_ARRAY_DATA_PAYLOAD, "fill-array-data-payload",
63 new Info(Opcodes.NOP, "nop",
67 new Info(Opcodes.MOVE, "move",
71 new Info(Opcodes.MOVE_FROM16, "move/from16",
75 new Info(Opcodes.MOVE_16, "move/16",
79 new Info(Opcodes.MOVE_WIDE, "move-wide",
83 new Info(Opcodes.MOVE_WIDE_FROM16, "move-wide/from16",
[all …]
DOpcodes.java24 public final class Opcodes { class
292 private Opcodes() { in Opcodes() method in Opcodes
/dalvik/dx/tests/142-const-method-handle/src/constmethodhandle/
DTestGenerator.java34 import org.objectweb.asm.Opcodes;
56 new ClassVisitor(Opcodes.ASM5, cw) { in generateTests()
70 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, in generateMethodMain()
73 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test1", in generateMethodMain()
75 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, in generateMethodMain()
77 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test2", in generateMethodMain()
79 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "displayMethodType", in generateMethodMain()
81 mv.visitInsn(Opcodes.RETURN); in generateMethodMain()
89 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test1", in generateMethodTest1()
92 Handle mh = new Handle(Opcodes.H_INVOKEVIRTUAL, Type.getInternalName(Object.class), in generateMethodTest1()
[all …]
/dalvik/dx/src/com/android/dx/merge/
DInstructionTransformer.java22 import com.android.dx.io.Opcodes;
77 boolean isJumbo = (one.getOpcode() == Opcodes.CONST_STRING_JUMBO); in visit()
88 boolean isJumbo = (one.getOpcode() == Opcodes.CONST_STRING_JUMBO); in visit()
99 boolean isJumbo = (one.getOpcode() == Opcodes.CONST_STRING_JUMBO); in visit()
110 boolean isJumbo = (one.getOpcode() == Opcodes.CONST_STRING_JUMBO); in visit()
/dalvik/opcode-gen/
Dregen-all40 ${progdir}/opcode-gen dx/src/com/android/dx/io/Opcodes.java
50 ../libcore/dalvik/src/main/java/dalvik/bytecode/Opcodes.java
/dalvik/dx/src/com/android/dx/io/instructions/
DDecodedInstruction.java22 import com.android.dx.io.Opcodes;
71 int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit); in decode()
107 if (!Opcodes.isValidShape(opcode)) { in DecodedInstruction()
DInstructionCodec.java22 import com.android.dx.io.Opcodes;
260 literal <<= (opcode == Opcodes.CONST_HIGH16) ? 16 : 48; in FORMAT_21H()
272 int shift = (opcode == Opcodes.CONST_HIGH16) ? 16 : 48; in FORMAT_21H()
521 case Opcodes.PACKED_SWITCH: in FORMAT_31T()
522 case Opcodes.SPARSE_SWITCH: { in FORMAT_31T()
676 if (opcode != Opcodes.INVOKE_POLYMORPHIC) { in FORMAT_45CC()
720 if (opcode != Opcodes.INVOKE_POLYMORPHIC_RANGE) { in FORMAT_4RCC()