/dalvik/vm/compiler/codegen/mips/ |
D | GlobalOptimizations.cpp | 34 if (!thisLIR->flags.isNop && thisLIR->opcode == kMipsB) { in applyRedundantBranchElimination() 54 if (!isPseudoOpCode(nextLIR->opcode) || in applyRedundantBranchElimination() 74 if (thisLIR->flags.isNop || thisLIR->opcode != kMipsMove) in applyCopyPropagation() 88 if (nextLIR->flags.isNop || nextLIR->opcode == kMips32BitData) in applyCopyPropagation() 91 if (isPseudoOpCode(nextLIR->opcode)) { in applyCopyPropagation() 92 if (nextLIR->opcode == kMipsPseudoDalvikByteCodeBoundary || in applyCopyPropagation() 93 nextLIR->opcode == kMipsPseudoBarrier || in applyCopyPropagation() 94 nextLIR->opcode == kMipsPseudoExtended || in applyCopyPropagation() 95 nextLIR->opcode == kMipsPseudoSSARep) in applyCopyPropagation() 97 else if (nextLIR->opcode == kMipsPseudoTargetLabel || in applyCopyPropagation() [all …]
|
D | CodegenCommon.cpp | 40 assert(EncodingMap[lir->opcode].flags & (IS_LOAD | IS_STORE)); in setMemRefType() 63 assert(!(EncodingMap[lir->opcode].flags & IS_STORE)); in setMemRefType() 146 int opcode = lir->opcode; in setupResourceMasks() local 149 if (opcode <= 0) { in setupResourceMasks() 154 flags = EncodingMap[lir->opcode].flags; in setupResourceMasks() 240 int flags = EncodingMap[lir->opcode].flags; in relaxBranchMasks() 272 static MipsLIR *newLIR0(CompilationUnit *cUnit, MipsOpCode opcode) in newLIR0() argument 275 assert(isPseudoOpCode(opcode) || (EncodingMap[opcode].flags & NO_OPERAND)); in newLIR0() 276 insn->opcode = opcode; in newLIR0() 282 static MipsLIR *newLIR1(CompilationUnit *cUnit, MipsOpCode opcode, in newLIR1() argument [all …]
|
/dalvik/vm/compiler/codegen/arm/Thumb/ |
D | Factory.cpp | 77 loadPcRel->opcode = kThumbLdrPcRel; in loadConstantNoClobber() 132 loadPcRel->opcode = kThumbLdrPcRel; in loadClassPointer() 145 ArmOpcode opcode = kThumbBkpt; in opNone() local 148 opcode = kThumbBUncond; in opNone() 154 return newLIR0(cUnit, opcode); in opNone() 164 ArmOpcode opcode = kThumbBkpt; in opImm() local 167 opcode = kThumbPush; in opImm() 170 opcode = kThumbPop; in opImm() 176 return newLIR1(cUnit, opcode, value); in opImm() 181 ArmOpcode opcode = kThumbBkpt; in opReg() local [all …]
|
/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 | 48 int opcode = byte0(opcodeUnit); in FORMAT_10X() local 51 this, opcode, 0, null, in FORMAT_10X() 63 int opcode = byte0(opcodeUnit); in FORMAT_12X() local 67 this, opcode, 0, null, in FORMAT_12X() 82 int opcode = byte0(opcodeUnit); in FORMAT_11N() local 86 this, opcode, 0, null, in FORMAT_11N() 101 int opcode = byte0(opcodeUnit); in FORMAT_11X() local 104 this, opcode, 0, null, in FORMAT_11X() 118 int opcode = byte0(opcodeUnit); in FORMAT_10T() local 121 this, opcode, 0, null, in FORMAT_10T() [all …]
|
/dalvik/vm/compiler/codegen/arm/Thumb2/ |
D | Factory.cpp | 71 loadPcRel->opcode = kThumb2Vldrs; in loadFPConstantValue() 179 loadPcRel->opcode = kThumb2LdrPcRel12; in loadConstantNoClobber() 230 loadPcRel->opcode = kThumb2LdrPcRel12; in loadClassPointer() 243 ArmOpcode opcode = kThumbBkpt; in opNone() local 246 opcode = kThumbBUncond; in opNone() 251 return newLIR0(cUnit, opcode); in opNone() 261 ArmOpcode opcode = kThumbBkpt; in opImm() local 265 opcode = kThumbPush; in opImm() 268 opcode = kThumbPush; in opImm() 271 opcode = kThumb2Push; in opImm() [all …]
|
/dalvik/vm/compiler/codegen/arm/ |
D | CodegenCommon.cpp | 39 assert(EncodingMap[lir->opcode].flags & (IS_LOAD | IS_STORE)); in setMemRefType() 61 assert(!(EncodingMap[lir->opcode].flags & IS_STORE)); in setMemRefType() 128 int opcode = lir->opcode; in setupResourceMasks() local 131 if (opcode <= 0) { in setupResourceMasks() 136 flags = EncodingMap[lir->opcode].flags; in setupResourceMasks() 217 if (opcode == kThumbPush || opcode == kThumbPop) { in setupResourceMasks() 219 if ((opcode == kThumbPush) && (lir->useMask & r8Mask)) { in setupResourceMasks() 222 } else if ((opcode == kThumbPop) && (lir->defMask & r8Mask)) { in setupResourceMasks() 234 int flags = EncodingMap[lir->opcode].flags; in relaxBranchMasks() 264 static ArmLIR *newLIR0(CompilationUnit *cUnit, ArmOpcode opcode) in newLIR0() argument [all …]
|
/dalvik/libdex/ |
D | InstrUtils.h | 135 Opcode opcode; member 142 DEX_INLINE size_t dexGetWidthFromOpcode(Opcode opcode) in dexGetWidthFromOpcode() argument 144 assert((u4) opcode < kNumPackedOpcodes); in dexGetWidthFromOpcode() 145 return gDexOpcodeInfo.widths[opcode]; in dexGetWidthFromOpcode() 158 DEX_INLINE OpcodeFlags dexGetFlagsFromOpcode(Opcode opcode) in dexGetFlagsFromOpcode() argument 160 assert((u4) opcode < kNumPackedOpcodes); in dexGetFlagsFromOpcode() 161 return gDexOpcodeInfo.flags[opcode]; in dexGetFlagsFromOpcode() 175 DEX_INLINE InstructionFormat dexGetFormatFromOpcode(Opcode opcode) in dexGetFormatFromOpcode() argument 177 assert((u4) opcode < kNumPackedOpcodes); in dexGetFormatFromOpcode() 178 return (InstructionFormat) gDexOpcodeInfo.formats[opcode]; in dexGetFormatFromOpcode() [all …]
|
/dalvik/vm/mterp/x86/ |
D | OP_DIV_LONG.S | 11 je .L${opcode}_check_zero 13 je .L${opcode}_check_neg1 14 .L${opcode}_notSpecial: 17 .L${opcode}_notSpecial1: 22 .L${opcode}_finish: 30 .L${opcode}_check_zero: 32 jne .L${opcode}_notSpecial 34 .L${opcode}_check_neg1: 36 jne .L${opcode}_notSpecial 40 jne .L${opcode}_notSpecial1 [all …]
|
D | OP_DIV_LONG_2ADDR.S | 12 je .L${opcode}_check_zero 14 je .L${opcode}_check_neg1 15 .L${opcode}_notSpecial: 18 .L${opcode}_notSpecial1: 23 .L${opcode}_finish: 31 .L${opcode}_check_zero: 33 jne .L${opcode}_notSpecial 35 .L${opcode}_check_neg1: 37 jne .L${opcode}_notSpecial 41 jne .L${opcode}_notSpecial1 [all …]
|
D | OP_CMPG_DOUBLE.S | 21 jp .L${opcode}_isNaN 22 je .L${opcode}_finish 24 jb .L${opcode}_finish 26 .L${opcode}_finish: 31 .L${opcode}_isNaN: 33 jmp .L${opcode}_finish
|
D | OP_CMP_LONG.S | 17 jl .L${opcode}_smaller 18 jg .L${opcode}_bigger 20 ja .L${opcode}_bigger 21 jb .L${opcode}_smaller 28 .L${opcode}_bigger: 36 .L${opcode}_smaller:
|
/dalvik/vm/compiler/codegen/mips/Mips32/ |
D | Factory.cpp | 57 res->opcode = kMipsFmovd; in fpRegCopy() 61 res->opcode = kMipsFmovs; in fpRegCopy() 64 res->opcode = kMipsMtc1; in fpRegCopy() 70 res->opcode = kMipsMfc1; in fpRegCopy() 158 MipsOpCode opcode = kMipsNop; in opNone() local 161 opcode = kMipsB; in opNone() 167 res = newLIR0(cUnit, opcode); in opNone() 188 MipsOpCode opcode = kMipsNop; in opReg() local 191 opcode = kMipsJalr; in opReg() 196 return newLIR2(cUnit, opcode, r_RA, rDestSrc); in opReg() [all …]
|
/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 …]
|
/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 …]
|
/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/dx/src/com/android/dx/cf/direct/ |
D | CodeObserver.java | 68 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument 73 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument 78 public void visitLocal(int opcode, int offset, int length, in visitLocal() argument 84 if (opcode == ByteOps.IINC) { in visitLocal() 100 public void visitConstant(int opcode, int offset, int length, in visitConstant() argument 104 visitNoArgs(opcode, offset, length, null); in visitConstant() 109 visitLiteralInt(opcode, offset, length, value); in visitConstant() 114 visitLiteralLong(opcode, offset, length, in visitConstant() 120 visitLiteralFloat(opcode, offset, length, in visitConstant() 126 visitLiteralDouble(opcode, offset, length, in visitConstant() [all …]
|
/dalvik/vm/compiler/codegen/arm/FP/ |
D | ThumbVFP.cpp | 68 TemplateOpcode opcode; in genArithOpFloat() local 74 switch (mir->dalvikInsn.opcode) { in genArithOpFloat() 77 opcode = TEMPLATE_ADD_FLOAT_VFP; in genArithOpFloat() 81 opcode = TEMPLATE_SUB_FLOAT_VFP; in genArithOpFloat() 85 opcode = TEMPLATE_DIV_FLOAT_VFP; in genArithOpFloat() 89 opcode = TEMPLATE_MUL_FLOAT_VFP; in genArithOpFloat() 102 genDispatchToHandler(cUnit, opcode); in genArithOpFloat() 114 TemplateOpcode opcode; in genArithOpDouble() local 116 switch (mir->dalvikInsn.opcode) { in genArithOpDouble() 119 opcode = TEMPLATE_ADD_DOUBLE_VFP; in genArithOpDouble() [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()
|
/dalvik/vm/mterp/mips/ |
D | OP_INSTANCE_OF.S | 20 beqz a0, .L${opcode}_store # null obj, not an instance, store a0 26 beqz a1, .L${opcode}_resolve # not resolved, do it now 27 .L${opcode}_resolved: # a0=obj->clazz, a1=resolved class 29 beq a0, a1, .L${opcode}_trivial # yes, trivial finish 30 b .L${opcode}_fullcheck # no, do full check 36 .L${opcode}_trivial: 43 .L${opcode}_store: 46 GET_INST_OPCODE(t0) # extract opcode from rINST 57 .L${opcode}_fullcheck: 59 move a0, v0 # fall through to ${opcode}_store [all …]
|
D | OP_CHECK_CAST.S | 18 beqz rOBJ, .L${opcode}_okay # null obj, cast always succeeds 22 beqz a1, .L${opcode}_resolve # not resolved, do it now 23 .L${opcode}_resolved: 25 bne a0, a1, .L${opcode}_fullcheck # no, do full check 26 .L${opcode}_okay: 28 GET_INST_OPCODE(t0) # extract opcode from rINST 37 .L${opcode}_fullcheck: 41 bnez v0, .L${opcode}_okay # no, success 42 b .L${opcode}_castfailure 45 .L${opcode}_castfailure: [all …]
|
/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()
|
/dalvik/vm/mterp/armv5te/ |
D | OP_INSTANCE_OF.S | 21 beq .L${opcode}_store @ null obj, not an instance, store r0 27 beq .L${opcode}_resolve @ not resolved, do it now 28 .L${opcode}_resolved: @ r0=obj->clazz, r1=resolved class 30 beq .L${opcode}_trivial @ yes, trivial finish 31 b .L${opcode}_fullcheck @ no, do full check 40 .L${opcode}_fullcheck: 42 @ fall through to ${opcode}_store 48 .L${opcode}_store: 51 GET_INST_OPCODE(ip) @ extract opcode from rINST 58 .L${opcode}_trivial: [all …]
|
/dalvik/vm/compiler/template/armv5te/ |
D | TEMPLATE_CMP_LONG.S | 23 blt .L${opcode}_less @ signed compare on high part 24 bgt .L${opcode}_greater 27 bhi .L${opcode}_greater @ unsigned compare on low part 28 .L${opcode}_less: 31 .L${opcode}_greater:
|