/dalvik/dx/src/com/android/dx/ssa/ |
D | DeadCodeRemover.java | 45 private final ArrayList<SsaInsn>[] useList; 76 HashSet<SsaInsn> deletedInsns = new HashSet<SsaInsn>(); in run() 88 SsaInsn insnS = ssaMeth.getDefinitionForRegister(regV); in run() 126 HashSet<SsaInsn> deletedInsns = new HashSet<SsaInsn>(); in pruneDeadInstructions() 138 SsaInsn insn = block.getInsns().get(i); in pruneDeadInstructions() 156 for (SsaInsn use : useList[result.getReg()]) { in pruneDeadInstructions() 183 for (SsaInsn use : useList[regV]) { in isCircularNoSideEffect() 196 for (SsaInsn use : useList[regV]) { in isCircularNoSideEffect() 215 private static boolean hasSideEffect(SsaInsn insn) { in hasSideEffect() 230 static private class NoSideEffectVisitor implements SsaInsn.Visitor {
|
D | SsaMethod.java | 75 private SsaInsn[] definitionList; 78 private ArrayList<SsaInsn>[] useList; 81 private List<SsaInsn>[] unmodifiableUseList; 224 private static SsaInsn getGoto(SsaBasicBlock block) { in getGoto() 370 for (SsaInsn insn : block.getInsns()) { in mapRegisters() 385 public SsaInsn getDefinitionForRegister(int reg) { in getDefinitionForRegister() 394 definitionList = new SsaInsn[getRegCount()]; in getDefinitionForRegister() 396 forEachInsn(new SsaInsn.Visitor() { in getDefinitionForRegister() 431 forEachInsn(new SsaInsn.Visitor() { in buildUseList() 451 private void addToUses(SsaInsn insn) { in buildUseList() [all …]
|
D | EscapeAnalysis.java | 142 private SsaInsn getInsnForMove(SsaInsn moveInsn) { in getInsnForMove() 144 ArrayList<SsaInsn> predInsns = ssaMeth.getBlocks().get(pred).getInsns(); in getInsnForMove() 155 private SsaInsn getMoveForInsn(SsaInsn insn) { in getMoveForInsn() 157 ArrayList<SsaInsn> succInsns = ssaMeth.getBlocks().get(succ).getInsns(); in getMoveForInsn() 217 private void processInsn(SsaInsn insn) { in processInsn() 251 private EscapeSet processMoveResultPseudoInsn(SsaInsn insn) { in processMoveResultPseudoInsn() 253 SsaInsn prevSsaInsn = getInsnForMove(insn); in processMoveResultPseudoInsn() 331 List<SsaInsn> useList = ssaMeth.getUseListForRegister(def.getReg()); in processRegister() 334 for (SsaInsn use : useList) { in processRegister() 358 private void processPhiUse(SsaInsn use, EscapeSet escSet, in processPhiUse() [all …]
|
D | SsaRenamer.java | 278 private class BlockRenamer implements SsaInsn.Visitor{ 295 private final HashSet<SsaInsn> movesToKeep; 301 private final HashMap<SsaInsn, SsaInsn> insnsToReplace; 314 movesToKeep = new HashSet<SsaInsn>(); in BlockRenamer() 315 insnsToReplace = new HashMap<SsaInsn, SsaInsn>(); in BlockRenamer() 380 ArrayList<SsaInsn> insns = block.getInsns(); in process() 384 SsaInsn insn = insns.get(i); in process() 385 SsaInsn replaceInsn; in process() 563 SsaInsn newInsn in visitMoveInsn() 564 = SsaInsn.makeFromRop( in visitMoveInsn() [all …]
|
D | SCCP.java | 59 private final ArrayList<SsaInsn> ssaWorklist; 65 private final ArrayList<SsaInsn> varyingWorklist; 67 private final ArrayList<SsaInsn> branchWorklist; 77 this.ssaWorklist = new ArrayList<SsaInsn>(); in SCCP() 78 this.varyingWorklist = new ArrayList<SsaInsn>(); in SCCP() 79 this.branchWorklist = new ArrayList<SsaInsn>(); in SCCP() 115 for (SsaInsn insn : ssaMeth.getUseListForRegister(reg)) { in addUsersToWorklist() 119 for (SsaInsn insn : ssaMeth.getUseListForRegister(reg)) { in addUsersToWorklist() 203 for (SsaInsn insn : block.getInsns()) { in simulateBlock() 217 for (SsaInsn insn : block.getInsns()) { in simulatePhiBlock() [all …]
|
D | SsaBasicBlock.java | 51 private final ArrayList<SsaInsn> insns; 118 this.insns = new ArrayList<SsaInsn>(); in SsaBasicBlock() 219 SsaInsn newInsn = SsaInsn.makeFromRop(insn, this); in addInsnToHead() 235 SsaInsn oldInsn = insns.get(insns.size() - 1); in replaceLastInsn() 236 SsaInsn newInsn = SsaInsn.makeFromRop(insn, this); in replaceLastInsn() 253 SsaInsn insn = insns.get(i); in forEachPhiInsn() 288 SsaInsn insn = insns.get(countPhiInsns); in getCountPhiInsns() 301 public ArrayList<SsaInsn> getInsns() { in getInsns() 308 public List<SsaInsn> getPhiInsns() { in getPhiInsns() 689 private void scheduleUseBeforeAssigned(List<SsaInsn> toSchedule) { in scheduleUseBeforeAssigned() [all …]
|
D | SsaInsn.java | 29 public abstract class SsaInsn implements ToHuman, Cloneable { class 43 protected SsaInsn(RegisterSpec result, SsaBasicBlock block) { in SsaInsn() method in SsaInsn 59 public static SsaInsn makeFromRop(Insn insn, SsaBasicBlock block) { in makeFromRop() 65 public SsaInsn clone() { in clone() 67 return (SsaInsn)super.clone(); in clone()
|
D | ConstCollector.java | 172 SsaInsn insn = ssaMeth.getDefinitionForRegister(i); in getConstsSortedByCountUse() 186 ArrayList<SsaInsn> predInsns; in getConstsSortedByCountUse() 281 for (SsaInsn use : ssaMeth.getUseListForRegister(origReg.getReg())) { in fixLocalAssignment() 303 SsaInsn newInsn in fixLocalAssignment() 304 = SsaInsn.makeFromRop( in fixLocalAssignment() 310 ArrayList<SsaInsn> insns = use.getBlock().getInsns(); in fixLocalAssignment() 334 final ArrayList<SsaInsn>[] useList = ssaMeth.getUseListCopy(); in updateConstUses() 337 SsaInsn insn = ssaMeth.getDefinitionForRegister(i); in updateConstUses() 391 for (SsaInsn use : useList[origReg.getReg()]) { in updateConstUses()
|
D | MoveParamCombiner.java | 58 final HashSet<SsaInsn> deletedInsns = new HashSet(); in run() 60 ssaMeth.forEachInsn(new SsaInsn.Visitor() { in run() 127 List<SsaInsn> uses in run() 132 SsaInsn use = uses.get(i); in run()
|
D | LocalVariableInfo.java | 49 private final HashMap<SsaInsn, RegisterSpec> insnAssignments; 67 new HashMap<SsaInsn, RegisterSpec>(/*hint here*/); in LocalVariableInfo() 186 public void addAssignment(SsaInsn insn, RegisterSpec spec) { in addAssignment() 207 public RegisterSpec getAssignment(SsaInsn insn) { in getAssignment()
|
D | LocalVariableExtractor.java | 106 List<SsaInsn> insns = block.getInsns(); in processBlock() 121 SsaInsn lastInsn = insns.get(insnSz - 1); in processBlock() 141 SsaInsn insn = insns.get(i); in processBlock()
|
D | PhiTypeResolver.java | 70 SsaInsn definsn = ssaMeth.getDefinitionForRegister(reg); in run() 94 List<SsaInsn> useList = ssaMeth.getUseListForRegister(reg); in run() 98 SsaInsn useInsn = useList.get(i); in run()
|
D | LiteralOpUpgrader.java | 84 ssaMeth.forEachInsn(new SsaInsn.Visitor() { in run() 164 ArrayList<SsaInsn> predInsns = in tryReplacingWithConstant() 203 List<SsaInsn> insns = insn.getBlock().getInsns(); in replacePlainInsn()
|
D | SsaConverter.java | 270 ArrayList<SsaInsn> insns = block.getInsns(); in needsNewSuccessor() 271 SsaInsn lastInsn = insns.get(insns.size() - 1); in needsNewSuccessor() 330 for (SsaInsn insn : b.getInsns()) { in placePhiFunctions()
|
D | PhiInsn.java | 36 public final class PhiInsn extends SsaInsn { 326 public void accept(SsaInsn.Visitor v) { in accept()
|
D | NormalSsaInsn.java | 29 public final class NormalSsaInsn extends SsaInsn implements Cloneable {
|
/dalvik/dx/src/com/android/dx/ssa/back/ |
D | RegisterAllocator.java | 28 import com.android.dx.ssa.SsaInsn; 80 SsaInsn definition = ssaMeth.getDefinitionForRegister(reg); in getCategoryForSsaReg() 98 SsaInsn definition = ssaMeth.getDefinitionForRegister(reg); in getDefinitionSpecForSsaReg() 111 SsaInsn defInsn = ssaMeth.getDefinitionForRegister(reg); in isDefinitionMoveParam() 133 protected final RegisterSpec insertMoveBefore(SsaInsn insn, in insertMoveBefore() 136 ArrayList<SsaInsn> insns = block.getInsns(); in insertMoveBefore() 162 SsaInsn toAdd = SsaInsn.makeFromRop( in insertMoveBefore()
|
D | LivenessAnalyzer.java | 23 import com.android.dx.ssa.SsaInsn; 154 List<SsaInsn> useList = ssaMeth.getUseListForRegister(regV); in run() 156 for (SsaInsn insn : useList) { in run() 202 ArrayList<SsaInsn> insns; in liveOutAtBlock() 235 SsaInsn statement = blockN.getInsns().get(statementIndex); in liveOutAtStatement() 262 List<SsaInsn> phis = b.getPhiInsns(); in coInterferePhis() 272 SsaInsn first = phis.get(i); in coInterferePhis() 273 SsaInsn second = phis.get(j); in coInterferePhis()
|
D | SsaToRop.java | 31 import com.android.dx.ssa.SsaInsn; 144 ArrayList<SsaInsn> insns = b.getInsns(); in removeEmptyGotos() 284 ArrayList<SsaInsn> insns = b.getInsns(); in verifyValidExitPredecessor() 285 SsaInsn lastInsn = insns.get(insns.size() - 1); in verifyValidExitPredecessor() 340 private InsnList convertInsns(ArrayList<SsaInsn> ssaInsns) { in convertInsns()
|
D | FirstFitLocalCombiningAllocator.java | 33 import com.android.dx.ssa.SsaInsn; 265 SsaInsn defInsn = ssaMeth.getDefinitionForRegister(ssaReg); in getParameterIndexForReg() 548 ArrayList<SsaInsn> insnList = predBlock.getInsns(); in handleCheckCastResults() 554 SsaInsn checkCastInsn = insnList.get(insnList.size() - 1); in handleCheckCastResults() 699 ssaMeth.forEachInsn(new SsaInsn.Visitor() { in analyzeInstructions() 731 private void processInsn(SsaInsn insn) { in analyzeInstructions() 1158 SsaInsn def = ssaMeth.getDefinitionForRegister(source.getReg()); in processPhiInsn()
|
/dalvik/dx/src/com/android/dx/command/dump/ |
D | SsaDumper.java | 29 import com.android.dx.ssa.SsaInsn; 144 for (SsaInsn insn : block.getInsns()) { in endParsingMember()
|