/dalvik/dx/src/com/android/dx/io/instructions/ |
D | FillArrayDataPayloadDecodedInstruction.java | 39 int opcode, Object data, int size, int elementWidth) { in FillArrayDataPayloadDecodedInstruction() argument 40 super(format, opcode, 0, null, 0, 0L); in FillArrayDataPayloadDecodedInstruction() 51 int opcode, byte[] data) { in FillArrayDataPayloadDecodedInstruction() argument 52 this(format, opcode, data, data.length, 1); in FillArrayDataPayloadDecodedInstruction() 59 int opcode, short[] data) { in FillArrayDataPayloadDecodedInstruction() argument 60 this(format, opcode, data, data.length, 2); in FillArrayDataPayloadDecodedInstruction() 67 int opcode, int[] data) { in FillArrayDataPayloadDecodedInstruction() argument 68 this(format, opcode, data, data.length, 4); in FillArrayDataPayloadDecodedInstruction() 75 int opcode, long[] data) { in FillArrayDataPayloadDecodedInstruction() argument 76 this(format, opcode, data, data.length, 8); in FillArrayDataPayloadDecodedInstruction()
|
D | InstructionCodec.java | 51 int opcode = byte0(opcodeUnit); in FORMAT_10X() local 54 this, opcode, 0, null, in FORMAT_10X() 66 int opcode = byte0(opcodeUnit); in FORMAT_12X() local 70 this, opcode, 0, null, in FORMAT_12X() 85 int opcode = byte0(opcodeUnit); in FORMAT_11N() local 89 this, opcode, 0, null, in FORMAT_11N() 104 int opcode = byte0(opcodeUnit); in FORMAT_11X() local 107 this, opcode, 0, null, in FORMAT_11X() 121 int opcode = byte0(opcodeUnit); in FORMAT_10T() local 124 this, opcode, 0, null, in FORMAT_10T() [all …]
|
/dalvik/libdex/ |
D | InstrUtils.h | 139 Opcode opcode; member 146 DEX_INLINE size_t dexGetWidthFromOpcode(Opcode opcode) in dexGetWidthFromOpcode() argument 148 assert((u4) opcode < kNumPackedOpcodes); in dexGetWidthFromOpcode() 149 return gDexOpcodeInfo.widths[opcode]; in dexGetWidthFromOpcode() 162 DEX_INLINE OpcodeFlags dexGetFlagsFromOpcode(Opcode opcode) in dexGetFlagsFromOpcode() argument 164 assert((u4) opcode < kNumPackedOpcodes); in dexGetFlagsFromOpcode() 165 return gDexOpcodeInfo.flags[opcode]; in dexGetFlagsFromOpcode() 179 DEX_INLINE InstructionFormat dexGetFormatFromOpcode(Opcode opcode) in dexGetFormatFromOpcode() argument 181 assert((u4) opcode < kNumPackedOpcodes); in dexGetFormatFromOpcode() 182 return (InstructionFormat) gDexOpcodeInfo.formats[opcode]; in dexGetFormatFromOpcode() [all …]
|
/dalvik/opcode-gen/ |
D | regen-all | 37 ${progdir}/opcode-gen dx/src/com/android/dx/dex/code/Dops.java 38 ${progdir}/opcode-gen dx/src/com/android/dx/dex/code/RopToDop.java 39 ${progdir}/opcode-gen dx/src/com/android/dx/io/OpcodeInfo.java 40 ${progdir}/opcode-gen dx/src/com/android/dx/io/Opcodes.java 41 ${progdir}/opcode-gen libdex/DexOpcodes.cpp 42 ${progdir}/opcode-gen libdex/DexOpcodes.h 43 ${progdir}/opcode-gen libdex/InstrUtils.cpp 47 ${progdir}/opcode-gen \ 49 ${progdir}/opcode-gen \
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
D | Rop.java | 53 private final int opcode; field in Rop 94 public Rop(int opcode, Type result, TypeList sources, in Rop() argument 118 this.opcode = opcode; in Rop() 141 public Rop(int opcode, Type result, TypeList sources, in Rop() argument 143 this(opcode, result, sources, exceptions, branchingness, false, in Rop() 159 public Rop(int opcode, Type result, TypeList sources, int branchingness, in Rop() argument 161 this(opcode, result, sources, StdTypeList.EMPTY, branchingness, false, in Rop() 176 public Rop(int opcode, Type result, TypeList sources, String nickname) { in Rop() argument 177 this(opcode, result, sources, StdTypeList.EMPTY, Rop.BRANCH_NONE, in Rop() 194 public Rop(int opcode, Type result, TypeList sources, TypeList exceptions, in Rop() argument [all …]
|
D | RegOps.java | 312 public static String opName(int opcode) { in opName() argument 313 switch (opcode) { in opName() 372 return "unknown-" + Hex.u1(opcode); in opName() 382 public static int flippedIfOpcode(final int opcode) { in flippedIfOpcode() argument 383 switch (opcode) { in flippedIfOpcode() 386 return opcode; in flippedIfOpcode() 396 throw new RuntimeException("Unrecognized IF regop: " + opcode); in flippedIfOpcode()
|
D | Insn.java | 34 private final Rop opcode; field in Insn 53 public Insn(Rop opcode, SourcePosition position, RegisterSpec result, in Insn() argument 55 if (opcode == null) { in Insn() 67 this.opcode = opcode; in Insn() 127 return opcode; in getOpcode() 159 if (opcode.getOpcode() == RegOps.MARK_LOCAL) { in getLocalAssignment() 194 return opcode.canThrow(); in canThrow() 281 return opcode == b.getOpcode() in contentEquals() 313 sb.append(opcode); in toStringWithInline() 345 sb.append(opcode.getNickname()); in toHumanWithInline()
|
D | PlainInsn.java | 39 public PlainInsn(Rop opcode, SourcePosition position, in PlainInsn() argument 41 super(opcode, position, result, sources); in PlainInsn() 43 switch (opcode.getBranchingness()) { in PlainInsn() 50 if (result != null && opcode.getBranchingness() != Rop.BRANCH_NONE) { in PlainInsn() 65 public PlainInsn(Rop opcode, SourcePosition position, RegisterSpec result, in PlainInsn() argument 67 this(opcode, position, result, RegisterSpecList.make(source)); in PlainInsn()
|
/dalvik/dx/src/com/android/dx/rop/code/ |
D | Rop.java | 53 private final int opcode; field in Rop 94 public Rop(int opcode, Type result, TypeList sources, in Rop() argument 118 this.opcode = opcode; in Rop() 141 public Rop(int opcode, Type result, TypeList sources, in Rop() argument 143 this(opcode, result, sources, exceptions, branchingness, false, in Rop() 159 public Rop(int opcode, Type result, TypeList sources, int branchingness, in Rop() argument 161 this(opcode, result, sources, StdTypeList.EMPTY, branchingness, false, in Rop() 176 public Rop(int opcode, Type result, TypeList sources, String nickname) { in Rop() argument 177 this(opcode, result, sources, StdTypeList.EMPTY, Rop.BRANCH_NONE, in Rop() 194 public Rop(int opcode, Type result, TypeList sources, TypeList exceptions, in Rop() argument [all …]
|
D | PlainInsn.java | 40 public PlainInsn(Rop opcode, SourcePosition position, in PlainInsn() argument 42 super(opcode, position, result, sources); in PlainInsn() 44 switch (opcode.getBranchingness()) { in PlainInsn() 47 …throw new IllegalArgumentException("opcode with invalid branchingness: " + opcode.getBranchingness… in PlainInsn() 51 if (result != null && opcode.getBranchingness() != Rop.BRANCH_NONE) { in PlainInsn() 66 public PlainInsn(Rop opcode, SourcePosition position, RegisterSpec result, in PlainInsn() argument 68 this(opcode, position, result, RegisterSpecList.make(source)); in PlainInsn() 130 int opcode = getOpcode().getOpcode(); in withSourceLiteral() local 131 if (opcode == RegOps.SUB && cst instanceof CstInteger) { in withSourceLiteral() 132 opcode = RegOps.ADD; in withSourceLiteral() [all …]
|
D | RegOps.java | 328 public static String opName(int opcode) { in opName() argument 329 switch (opcode) { in opName() 390 return "unknown-" + Hex.u1(opcode); in opName() 400 public static int flippedIfOpcode(final int opcode) { in flippedIfOpcode() argument 401 switch (opcode) { in flippedIfOpcode() 404 return opcode; in flippedIfOpcode() 414 throw new RuntimeException("Unrecognized IF regop: " + opcode); in flippedIfOpcode()
|
D | Insn.java | 32 private final Rop opcode; field in Insn 51 public Insn(Rop opcode, SourcePosition position, RegisterSpec result, in Insn() argument 53 if (opcode == null) { in Insn() 65 this.opcode = opcode; in Insn() 125 return opcode; in getOpcode() 157 if (opcode.getOpcode() == RegOps.MARK_LOCAL) { in getLocalAssignment() 192 return opcode.canThrow(); in canThrow() 279 return opcode == b.getOpcode() in contentEquals() 311 sb.append(opcode); in toStringWithInline() 343 sb.append(opcode.getNickname()); in toHumanWithInline()
|
D | DexTranslationAdvice.java | 57 public boolean hasConstantOperation(Rop opcode, in hasConstantOperation() argument 67 opcode.getOpcode() == RegOps.SUB) { in hasConstantOperation() 77 switch (opcode.getOpcode()) { in hasConstantOperation() 102 public boolean requiresSourcesInOrder(Rop opcode, in requiresSourcesInOrder() argument 105 return !disableSourcesInOrder && opcode.isCallLike() in requiresSourcesInOrder()
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | CodeObserver.java | 65 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument 70 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument 75 public void visitLocal(int opcode, int offset, int length, in visitLocal() argument 81 if (opcode == ByteOps.IINC) { in visitLocal() 97 public void visitConstant(int opcode, int offset, int length, in visitConstant() argument 101 visitNoArgs(opcode, offset, length, null); in visitConstant() 106 visitLiteralInt(opcode, offset, length, value); in visitConstant() 111 visitLiteralLong(opcode, offset, length, in visitConstant() 117 visitLiteralFloat(opcode, offset, length, in visitConstant() 123 visitLiteralDouble(opcode, offset, length, in visitConstant() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
D | Dop.java | 24 private final int opcode; field in Dop 49 public Dop(int opcode, int family, InsnFormat format, in Dop() argument 51 if ((opcode < DalvOps.MIN_VALUE) || (opcode > DalvOps.MAX_VALUE)) { in Dop() 67 this.opcode = opcode; in Dop() 86 return opcode; in getOpcode() 133 switch (opcode) { in getOppositeTest()
|
D | TargetInsn.java | 41 public TargetInsn(Dop opcode, SourcePosition position, in TargetInsn() argument 43 super(opcode, position, registers); in TargetInsn() 54 public DalvInsn withOpcode(Dop opcode) { in withOpcode() argument 55 return new TargetInsn(opcode, getPosition(), getRegisters(), target); in withOpcode() 75 Dop opcode = getOpcode().getOppositeTest(); in withNewTargetAndReversed() local 77 return new TargetInsn(opcode, getPosition(), getRegisters(), target); in withNewTargetAndReversed()
|
D | DalvInsn.java | 37 private final Dop opcode; field in DalvInsn 59 Dop opcode; in makeMove() local 62 opcode = reference ? Dops.MOVE_OBJECT : in makeMove() 65 opcode = reference ? Dops.MOVE_OBJECT_FROM16 : in makeMove() 68 opcode = reference ? Dops.MOVE_OBJECT_16 : in makeMove() 72 return new SimpleInsn(opcode, position, in makeMove() 92 public DalvInsn(Dop opcode, SourcePosition position, in DalvInsn() argument 94 if (opcode == null) { in DalvInsn() 107 this.opcode = opcode; in DalvInsn() 122 sb.append(opcode.getName()); in toString() [all …]
|
D | SimpleInsn.java | 37 public SimpleInsn(Dop opcode, SourcePosition position, in SimpleInsn() argument 39 super(opcode, position, registers); in SimpleInsn() 44 public DalvInsn withOpcode(Dop opcode) { in withOpcode() argument 45 return new SimpleInsn(opcode, getPosition(), getRegisters()); in withOpcode()
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | Dop.java | 27 private final int opcode; field in Dop 60 public Dop(int opcode, int family, int nextOpcode, InsnFormat format, in Dop() argument 62 if (!Opcodes.isValidShape(opcode)) { in Dop() 78 this.opcode = opcode; in Dop() 97 return opcode; in getOpcode() 134 return OpcodeInfo.getName(opcode); in getName() 156 switch (opcode) { in getOppositeTest()
|
D | TargetInsn.java | 41 public TargetInsn(Dop opcode, SourcePosition position, in TargetInsn() argument 43 super(opcode, position, registers); in TargetInsn() 54 public DalvInsn withOpcode(Dop opcode) { in withOpcode() argument 55 return new TargetInsn(opcode, getPosition(), getRegisters(), target); in withOpcode() 75 Dop opcode = getOpcode().getOppositeTest(); in withNewTargetAndReversed() local 77 return new TargetInsn(opcode, getPosition(), getRegisters(), target); in withNewTargetAndReversed()
|
D | SimpleInsn.java | 37 public SimpleInsn(Dop opcode, SourcePosition position, in SimpleInsn() argument 39 super(opcode, position, registers); in SimpleInsn() 44 public DalvInsn withOpcode(Dop opcode) { in withOpcode() argument 45 return new SimpleInsn(opcode, getPosition(), getRegisters()); in withOpcode()
|
D | DalvInsn.java | 40 private final Dop opcode; field in DalvInsn 62 Dop opcode; in makeMove() local 65 opcode = reference ? Dops.MOVE_OBJECT : in makeMove() 68 opcode = reference ? Dops.MOVE_OBJECT_FROM16 : in makeMove() 71 opcode = reference ? Dops.MOVE_OBJECT_16 : in makeMove() 75 return new SimpleInsn(opcode, position, in makeMove() 95 public DalvInsn(Dop opcode, SourcePosition position, in DalvInsn() argument 97 if (opcode == null) { in DalvInsn() 110 this.opcode = opcode; in DalvInsn() 125 sb.append(opcode.getName()); in toString() [all …]
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | BytecodeArray.java | 224 int opcode = bytes.getUnsignedByte(offset); in parseInstruction() local 225 int info = ByteOps.opInfo(opcode); in parseInstruction() 228 switch (opcode) { in parseInstruction() 230 visitor.visitNoArgs(opcode, offset, 1, Type.VOID); in parseInstruction() 376 int idx = opcode - ByteOps.ILOAD_0; in parseInstruction() 385 int idx = opcode - ByteOps.LLOAD_0; in parseInstruction() 394 int idx = opcode - ByteOps.FLOAD_0; in parseInstruction() 403 int idx = opcode - ByteOps.DLOAD_0; in parseInstruction() 412 int idx = opcode - ByteOps.ALOAD_0; in parseInstruction() 491 int idx = opcode - ByteOps.ISTORE_0; in parseInstruction() [all …]
|
D | Simulator.java | 241 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument 242 throw new SimException("invalid opcode " + Hex.u1(opcode)); in visitInvalid() 246 public void visitNoArgs(int opcode, int offset, int length, in visitNoArgs() argument 248 switch (opcode) { in visitNoArgs() 421 if (opcode == ByteOps.DUP2) { in visitNoArgs() 535 visitInvalid(opcode, offset, length); in visitNoArgs() 541 machine.run(frame, offset, opcode); in visitNoArgs() 567 public void visitLocal(int opcode, int offset, int length, in visitLocal() argument 584 (opcode == ByteOps.ISTORE) ? (offset + length) : offset; in visitLocal() 601 switch (opcode) { in visitLocal() [all …]
|
/dalvik/dx/src/com/android/dx/ssa/ |
D | LiteralOpUpgrader.java | 96 Rop opcode = originalRopInsn.getOpcode(); in run() 107 if (opcode.getBranchingness() == Rop.BRANCH_IF) { in run() 113 RegOps.flippedIfOpcode(opcode.getOpcode()), null); in run() 116 opcode.getOpcode(), null); in run() 119 opcode, sources.get(0), sources.get(1))) { in run() 121 } else if (opcode.isCommutative() in run() 123 opcode, sources.get(1), sources.get(0))) { in run() 147 Rop opcode = originalRopInsn.getOpcode(); in tryReplacingWithConstant() local 151 opcode.getOpcode() != RegOps.CONST) { in tryReplacingWithConstant() 159 if (opcode.getOpcode() == RegOps.MOVE_RESULT_PSEUDO) { in tryReplacingWithConstant()
|