/dalvik/dx/src/com/android/dx/ssa/ |
D | RegisterMapper.java | 48 public final RegisterSpecList map(RegisterSpecList sources) { in map() argument 49 int sz = sources.size(); in map() 53 newSources.set(i, map(sources.get(i))); in map() 59 return newSources.equals(sources) ? sources : newSources; in map() 67 public final RegisterSpecSet map(RegisterSpecSet sources) { in map() argument 68 int sz = sources.getMaxSize(); in map() 72 RegisterSpec registerSpec = sources.get(i); in map() 81 return newSources.equals(sources) ? sources : newSources; in map()
|
D | LiteralOpUpgrader.java | 100 RegisterSpecList sources = insn.getSources(); in run() 105 if (sources.size() != 2 ) { in run() 114 if (isConstIntZeroOrKnownNull(sources.get(0))) { in run() 115 replacePlainInsn(insn, sources.withoutFirst(), in run() 117 } else if (isConstIntZeroOrKnownNull(sources.get(1))) { in run() 118 replacePlainInsn(insn, sources.withoutLast(), in run() 122 opcode, sources.get(0), sources.get(1))) { in run() 126 opcode, sources.get(1), sources.get(0))) { in run() 133 sources.get(1), sources.get(0))); in run()
|
D | PhiInsn.java | 51 private RegisterSpecList sources; field in PhiInsn 103 sources = null; in updateSourcesToDefinitions() 138 sources = null; in addPhiOperand() 157 sources = null; in removePhiRegister() 209 if (sources != null) { in getSources() 210 return sources; in getSources() 219 sources = new RegisterSpecList(szSources); in getSources() 224 sources.set(i, o.regSpec); in getSources() 227 sources.setImmutable(); in getSources() 228 return sources; in getSources() [all …]
|
D | DeadCodeRemover.java | 95 RegisterSpecList sources = insnS.getSources(); in run() local 97 int sz = sources.size(); in run() 100 RegisterSpec source = sources.get(i); in run() 139 RegisterSpecList sources = insn.getSources(); in pruneDeadInstructions() local 140 int sourcesSize = sources.size(); in pruneDeadInstructions() 149 RegisterSpec source = sources.get(j); in pruneDeadInstructions()
|
D | SCCP.java | 166 RegisterSpecList sources = insn.getSources(); in simulatePhi() local 169 int sourceSize = sources.size(); in simulatePhi() 173 int sourceReg = sources.get(i).getReg(); in simulatePhi() 242 RegisterSpecList sources = insn.getSources(); in simulateBranch() local 252 RegisterSpec specA = sources.get(0); in simulateBranch() 259 if (sources.size() == 2) { in simulateBranch() 260 RegisterSpec specB = sources.get(1); in simulateBranch() 269 if (cA != null && sources.size() == 1) { in simulateBranch() 368 RegisterSpecList sources = insn.getSources(); in simulateMath() local 369 int regA = sources.get(0).getReg(); in simulateMath() [all …]
|
D | PhiTypeResolver.java | 129 RegisterSpecList sources = insn.getSources(); in resolveResultType() local 135 int szSources = sources.size(); in resolveResultType() 137 RegisterSpec rs = sources.get(i); in resolveResultType() 158 RegisterSpec rs = sources.get(i); in resolveResultType() 179 sb.append(sources.get(i).toString()); in resolveResultType()
|
/dalvik/dx/src/com/android/dx/rop/code/ |
D | Rop.java | 62 private final TypeList sources; field in Rop 94 public Rop(int opcode, Type result, TypeList sources, in Rop() argument 101 if (sources == null) { in Rop() 120 this.sources = sources; 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() [all …]
|
D | PlainInsn.java | 41 RegisterSpec result, RegisterSpecList sources) { in PlainInsn() argument 42 super(opcode, position, result, sources); in PlainInsn() 100 RegisterSpecList sources = getSources(); in withSourceLiteral() local 101 int szSources = sources.size(); in withSourceLiteral() 107 TypeBearer lastType = sources.get(szSources - 1).getTypeBearer(); in withSourceLiteral() 111 TypeBearer firstType = sources.get(0).getTypeBearer(); in withSourceLiteral() 114 RegisterSpecList newSources = sources.withoutFirst(); in withSourceLiteral() 125 RegisterSpecList newSources = sources.withoutLast(); in withSourceLiteral() 150 RegisterSpecList sources) { in withNewRegisters() argument 154 sources); in withNewRegisters()
|
D | Insn.java | 41 private final RegisterSpecList sources; field in Insn 52 RegisterSpecList sources) { in Insn() argument 61 if (sources == null) { in Insn() 68 this.sources = sources; in Insn() 159 assignment = sources.get(0); in getLocalAssignment() 183 return sources; in getSources() 284 && equalsHandleNulls(sources, b.getSources()) in contentEquals() 297 RegisterSpecList sources); in withNewRegisters() argument 326 sb.append(sources); in toStringWithInline() 361 int sz = sources.size(); in toHumanWithInline() [all …]
|
D | DexTranslationAdvice.java | 105 RegisterSpecList sources) { in requiresSourcesInOrder() argument 108 && totalRopWidth(sources) >= MIN_INVOKE_IN_ORDER; in requiresSourcesInOrder() 117 private int totalRopWidth(RegisterSpecList sources) { in totalRopWidth() argument 118 int sz = sources.size(); in totalRopWidth() 122 total += sources.get(i).getCategory(); in totalRopWidth()
|
D | PlainCstInsn.java | 40 RegisterSpec result, RegisterSpecList sources, in PlainCstInsn() argument 42 super(opcode, position, result, sources, cst); in PlainCstInsn() 79 RegisterSpecList sources) { in withNewRegisters() argument 83 sources, in withNewRegisters()
|
D | SwitchInsn.java | 42 RegisterSpecList sources, IntList cases) { in SwitchInsn() argument 43 super(opcode, position, result, sources); in SwitchInsn() 103 RegisterSpecList sources) { in withNewRegisters() argument 107 sources, in withNewRegisters()
|
D | FillArrayDataInsn.java | 51 RegisterSpecList sources, in FillArrayDataInsn() argument 54 super(opcode, position, null, sources); in FillArrayDataInsn() 110 RegisterSpecList sources) { in withNewRegisters() argument 113 sources, initValues, arrayType); in withNewRegisters()
|
D | ThrowingInsn.java | 63 RegisterSpecList sources, in ThrowingInsn() argument 65 super(opcode, position, null, sources); in ThrowingInsn() 114 RegisterSpecList sources) { in withNewRegisters() argument 117 sources, in withNewRegisters()
|
D | ThrowingCstInsn.java | 43 RegisterSpecList sources, in ThrowingCstInsn() argument 45 super(opcode, position, null, sources, cst); in ThrowingCstInsn() 101 RegisterSpecList sources) { in withNewRegisters() argument 104 sources, in withNewRegisters()
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
D | Rop.java | 62 private final TypeList sources; field in Rop 94 public Rop(int opcode, Type result, TypeList sources, in Rop() argument 101 if (sources == null) { in Rop() 120 this.sources = sources; 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() [all …]
|
D | PlainInsn.java | 40 RegisterSpec result, RegisterSpecList sources) { in PlainInsn() argument 41 super(opcode, position, result, sources); in PlainInsn() 99 RegisterSpecList sources = getSources(); in withLastSourceLiteral() local 100 int szSources = sources.size(); in withLastSourceLiteral() 106 TypeBearer lastType = sources.get(szSources - 1).getTypeBearer(); in withLastSourceLiteral() 114 RegisterSpecList newSources = sources.withoutLast(); in withLastSourceLiteral() 133 RegisterSpecList sources) { in withNewRegisters() argument 137 sources); in withNewRegisters()
|
D | Insn.java | 43 private final RegisterSpecList sources; field in Insn 54 RegisterSpecList sources) { in Insn() argument 63 if (sources == null) { in Insn() 70 this.sources = sources; in Insn() 160 assignment = sources.get(0); in getLocalAssignment() 184 return sources; in getSources() 285 && equalsHandleNulls(sources, b.getSources()) in contentEquals() 298 RegisterSpecList sources); in withNewRegisters() argument 327 sb.append(sources); in toStringWithInline() 362 int sz = sources.size(); in toHumanWithInline() [all …]
|
D | DexTranslationAdvice.java | 92 RegisterSpecList sources) { in requiresSourcesInOrder() argument 95 && totalRopWidth(sources) >= MIN_INVOKE_IN_ORDER; in requiresSourcesInOrder() 104 private int totalRopWidth(RegisterSpecList sources) { in totalRopWidth() argument 105 int sz = sources.size(); in totalRopWidth() 109 total += sources.get(i).getCategory(); in totalRopWidth()
|
D | PlainCstInsn.java | 40 RegisterSpec result, RegisterSpecList sources, in PlainCstInsn() argument 42 super(opcode, position, result, sources, cst); in PlainCstInsn() 79 RegisterSpecList sources) { in withNewRegisters() argument 83 sources, in withNewRegisters()
|
D | ThrowingCstInsn.java | 42 RegisterSpecList sources, in ThrowingCstInsn() argument 44 super(opcode, position, null, sources, cst); in ThrowingCstInsn() 96 RegisterSpecList sources) { in withNewRegisters() argument 99 sources, in withNewRegisters()
|
D | SwitchInsn.java | 42 RegisterSpecList sources, IntList cases) { in SwitchInsn() argument 43 super(opcode, position, result, sources); in SwitchInsn() 103 RegisterSpecList sources) { in withNewRegisters() argument 107 sources, in withNewRegisters()
|
D | FillArrayDataInsn.java | 52 RegisterSpecList sources, in FillArrayDataInsn() argument 55 super(opcode, position, null, sources); in FillArrayDataInsn() 111 RegisterSpecList sources) { in withNewRegisters() argument 114 sources, initValues, arrayType); in withNewRegisters()
|
D | ThrowingInsn.java | 63 RegisterSpecList sources, in ThrowingInsn() argument 65 super(opcode, position, null, sources); in ThrowingInsn() 114 RegisterSpecList sources) { in withNewRegisters() argument 117 sources, in withNewRegisters()
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | RopperMachine.java | 303 RegisterSpecList sources = getSources(opcode, stackPointer); in run() local 304 int sourceCount = sources.size(); in run() 350 RegisterSpec src = sources.get(i); in run() 390 insn = new ThrowingCstInsn(rop, pos, sources, catches, in run() 475 sources = RegisterSpecList.make(objectReg); in run() 492 rop = Rops.ropFor(ropOpcode, destType, sources, cst); in run() 540 TypeBearer firstType = sources.get(0).getTypeBearer(); in run() 541 TypeBearer lastType = sources.get(1).getTypeBearer(); in run() 544 advice.hasConstantOperation(rop, sources.get(0), in run() 545 sources.get(1))) { in run() [all …]
|