Home
last modified time | relevance | path

Searched refs:sources (Results 1 – 25 of 44) sorted by relevance

12

/dalvik/dx/src/com/android/dx/ssa/
DRegisterMapper.java48 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()
DLiteralOpUpgrader.java97 RegisterSpecList sources = insn.getSources(); in run()
102 if (sources.size() != 2 ) { in run()
111 if (isConstIntZeroOrKnownNull(sources.get(0))) { in run()
112 replacePlainInsn(insn, sources.withoutFirst(), in run()
114 } else if (isConstIntZeroOrKnownNull(sources.get(1))) { in run()
115 replacePlainInsn(insn, sources.withoutLast(), in run()
119 opcode, sources.get(0), sources.get(1))) { in run()
123 opcode, sources.get(1), sources.get(0))) { in run()
130 sources.get(1), sources.get(0))); in run()
DPhiInsn.java51 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 …]
DDeadCodeRemover.java95 RegisterSpecList sources = insnS.getSources(); in run() local
97 int sz = sources.size(); in run()
100 RegisterSpec source = sources.get(i); in run()
136 RegisterSpecList sources = insn.getSources(); in pruneDeadInstructions() local
137 int sourcesSize = sources.size(); in pruneDeadInstructions()
146 RegisterSpec source = sources.get(j); in pruneDeadInstructions()
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DRop.java62 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 …]
DPlainInsn.java40 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()
DInsn.java43 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 …]
DDexTranslationAdvice.java92 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()
DPlainCstInsn.java40 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()
DThrowingCstInsn.java42 RegisterSpecList sources, in ThrowingCstInsn() argument
44 super(opcode, position, null, sources, cst); in ThrowingCstInsn()
96 RegisterSpecList sources) { in withNewRegisters() argument
99 sources, in withNewRegisters()
DFillArrayDataInsn.java52 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()
DSwitchInsn.java42 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()
DThrowingInsn.java63 RegisterSpecList sources, in ThrowingInsn() argument
65 super(opcode, position, null, sources); in ThrowingInsn()
114 RegisterSpecList sources) { in withNewRegisters() argument
117 sources, in withNewRegisters()
DCstInsn.java39 RegisterSpecList sources, Constant cst) { in CstInsn() argument
40 super(opcode, position, result, sources); in CstInsn()
/dalvik/dx/src/com/android/dx/rop/code/
DRop.java62 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 …]
DPlainInsn.java41 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()
DInsn.java41 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()
158 assignment = sources.get(0); in getLocalAssignment()
182 return sources; in getSources()
283 && equalsHandleNulls(sources, b.getSources()) in contentEquals()
296 RegisterSpecList sources); in withNewRegisters() argument
325 sb.append(sources); in toStringWithInline()
360 int sz = sources.size(); in toHumanWithInline()
[all …]
DDexTranslationAdvice.java103 RegisterSpecList sources) { in requiresSourcesInOrder() argument
106 && totalRopWidth(sources) >= MIN_INVOKE_IN_ORDER; in requiresSourcesInOrder()
115 private int totalRopWidth(RegisterSpecList sources) { in totalRopWidth() argument
116 int sz = sources.size(); in totalRopWidth()
120 total += sources.get(i).getCategory(); in totalRopWidth()
DPlainCstInsn.java40 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()
DFillArrayDataInsn.java51 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()
DSwitchInsn.java42 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()
DThrowingInsn.java63 RegisterSpecList sources, in ThrowingInsn() argument
65 super(opcode, position, null, sources); in ThrowingInsn()
114 RegisterSpecList sources) { in withNewRegisters() argument
117 sources, in withNewRegisters()
DThrowingCstInsn.java43 RegisterSpecList sources, in ThrowingCstInsn() argument
45 super(opcode, position, null, sources, cst); in ThrowingCstInsn()
101 RegisterSpecList sources) { in withNewRegisters() argument
104 sources, in withNewRegisters()
DCstInsn.java39 RegisterSpecList sources, Constant cst) { in CstInsn() argument
40 super(opcode, position, result, sources); in CstInsn()
/dalvik/dx/src/com/android/dx/cf/code/
DRopperMachine.java302 RegisterSpecList sources = getSources(opcode, stackPointer); in run() local
303 int sourceCount = sources.size(); in run()
349 RegisterSpec src = sources.get(i); in run()
389 insn = new ThrowingCstInsn(rop, pos, sources, catches, in run()
474 sources = RegisterSpecList.make(objectReg); in run()
491 rop = Rops.ropFor(ropOpcode, destType, sources, cst); in run()
534 TypeBearer firstType = sources.get(0).getTypeBearer(); in run()
535 TypeBearer lastType = sources.get(1).getTypeBearer(); in run()
538 advice.hasConstantOperation(rop, sources.get(0), in run()
539 sources.get(1))) { in run()
[all …]

12