/dalvik/dx/tests/031-bb-dead-code/ |
D | expected.txt | 3 block 0000: 0000..0004 7 block 0004: 0004..0005 12 block 0000: 0000..0001 18 block 0000: 0000..0001 24 block 0000: 0000..0002 31 block 0000: 0000..0001 37 block 0000: 0000..0003 41 block 0004: 0004..0005 46 block 0000: 0000..0003 50 block 0003: 0003..0005 [all …]
|
/dalvik/dx/tests/032-bb-live-code/ |
D | expected.txt | 3 block 0000: 0000..0004 7 block 0004: 0004..0005 12 block 0000: 0000..0002 16 block 0002: 0002..0004 24 block 0004: 0004..0005 27 block 0005: 0005..0006 30 block 0006: 0006..0007 33 block 0007: 0007..0008 38 block 0000: 0000..0002 42 block 0002: 0002..0003 [all …]
|
/dalvik/dx/tests/088-ssa-combine-blocks/ |
D | expected.txt | 4 block 0000 8 block 0005 13 block 0006 17 block 0007 23 block 0001 28 block 0002 32 block 0003 38 block 0000 43 block 0004 48 block 0010 [all …]
|
/dalvik/dx/tests/085-dex-jsr-ret/ |
D | expected.txt | 4 block 0000 9 block 0001 13 block 0004 20 block 0009 24 block 000c 29 block 000e 33 block 002f 37 block 0030 43 block 0036 47 block 0037 [all …]
|
/dalvik/dx/tests/092-ssa-cfg-edge-cases/ |
D | expected.txt | 4 block 0000 9 block 0005 14 block 0006 18 block 0007 24 block 0000 31 block 001c 38 block 001f 42 block 0021 48 block 0025 54 block 0026 [all …]
|
/dalvik/dx/tests/094-scala-locals/ |
D | expected.txt | 4 block 0000 11 block 0003 18 block 0006 25 block 0009 32 block 000c 39 block 000d 45 block 000e 51 block 0014 57 block 0015 63 block 0016 [all …]
|
/dalvik/dx/tests/091-ssa-const-collector/ |
D | expected.txt | 4 block 0000 9 block 0005 14 block 0006 18 block 0007 24 block 0000 32 block 0005 38 block 000b 46 block 0018 52 block 001a 58 block 0020 [all …]
|
/dalvik/dx/tests/086-ssa-edge-split/ |
D | expected.txt | 4 block 0000 11 block 0004 17 block 0005 24 block 0006 30 block 0007 38 block 0000 46 block 0002 54 block 0006 62 block 000b 69 block 000f [all …]
|
/dalvik/dx/tests/087-ssa-local-vars/ |
D | expected.txt | 4 block 0000 11 block 0004 17 block 0005 24 block 0006 30 block 0007 35 block 0008 43 block 0000 50 block 0007 57 block 000d 67 block 0016 [all …]
|
/dalvik/dx/src/com/android/dx/ssa/ |
D | SsaConverter.java | 153 SsaBasicBlock block = blocks.get(i); in edgeSplitPredecessors() local 154 if (nodeNeedsUniquePredecessor(block)) { in edgeSplitPredecessors() 155 block.insertNewPredecessor(); in edgeSplitPredecessors() 165 private static boolean nodeNeedsUniquePredecessor(SsaBasicBlock block) { in nodeNeedsUniquePredecessor() argument 171 int countPredecessors = block.getPredecessors().cardinality(); in nodeNeedsUniquePredecessor() 172 int countSuccessors = block.getSuccessors().cardinality(); in nodeNeedsUniquePredecessor() 194 SsaBasicBlock block = blocks.get(i); in edgeSplitMoveExceptionsAndResults() local 200 if (!block.isExitBlock() in edgeSplitMoveExceptionsAndResults() 201 && block.getPredecessors().cardinality() > 1 in edgeSplitMoveExceptionsAndResults() 202 && block.getInsns().get(0).isMoveException()) { in edgeSplitMoveExceptionsAndResults() [all …]
|
D | SsaInsn.java | 31 private final SsaBasicBlock block; field in SsaInsn 43 protected SsaInsn(RegisterSpec result, SsaBasicBlock block) { in SsaInsn() argument 44 if (block == null) { in SsaInsn() 48 this.block = block; in SsaInsn() 59 public static SsaInsn makeFromRop(Insn insn, SsaBasicBlock block) { in makeFromRop() argument 60 return new NormalSsaInsn(insn, block); in makeFromRop() 108 return block; in getBlock() 160 block.getParent().updateOneDefinition(this, oldResult); in mapRegisters()
|
D | SsaRenamer.java | 166 public void visitBlock (SsaBasicBlock block, in run() 168 new BlockRenamer(block).process(); in run() 280 private final SsaBasicBlock block; field in SsaRenamer.BlockRenamer 311 BlockRenamer(final SsaBasicBlock block) { in BlockRenamer() argument 312 this.block = block; in BlockRenamer() 313 currentMapping = startsForBlocks[block.getIndex()]; in BlockRenamer() 319 startsForBlocks[block.getIndex()] = null; in BlockRenamer() 375 block.forEachInsn(this); in process() 380 ArrayList<SsaInsn> insns = block.getInsns(); in process() 399 for (SsaBasicBlock child : block.getDomChildren()) { in process() [all …]
|
D | SCCP.java | 202 private void simulateBlock(SsaBasicBlock block) { in simulateBlock() argument 203 for (SsaInsn insn : block.getInsns()) { in simulateBlock() 216 private void simulatePhiBlock(SsaBasicBlock block) { in simulatePhiBlock() argument 217 for (SsaInsn insn : block.getInsns()) { in simulatePhiBlock() 339 SsaBasicBlock block = insn.getBlock(); in simulateBranch() local 344 successorBlock = block.getSuccessorList().get(1); in simulateBranch() 346 successorBlock = block.getSuccessorList().get(0); in simulateBranch() 351 for (int i = 0; i < block.getSuccessorList().size(); i++) { in simulateBranch() 352 int successorBlock = block.getSuccessorList().get(i); in simulateBranch() 552 SsaBasicBlock block = cfgWorklist.remove(listSize); in run() local [all …]
|
/dalvik/dx/tests/083-ssa-phi-placement/ |
D | expected.txt | 4 block 0000 12 block 0004 18 block 0005 25 block 0006 31 block 0007 39 block 0000 51 block 0006 60 block 000c 69 block 0012 78 block 001a [all …]
|
/dalvik/dx/tests/098-dex-jsr-ret-throw/ |
D | expected.txt | 4 block 0000 12 block 0004 18 block 0005 24 block 0008 31 block 000c 37 block 000f 44 block 0011 54 block 0015 63 block 0018 69 block 001b [all …]
|
/dalvik/dx/tests/093-ssa-invoke-range/ |
D | expected.txt | 4 block 0000 9 block 0005 14 block 0006 18 block 0007 24 block 0001 34 block 0002 38 block 0003 44 block 0000 54 block 000a 59 block 000b [all …]
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | StdCatchBuilder.java | 86 BasicBlock block = blocks.get(i); in hasAnyCatches() local 87 TypeList catches = block.getLastInsn().getCatches(); in hasAnyCatches() 104 BasicBlock block = blocks.get(i); in getCatchTypes() local 105 TypeList catches = block.getLastInsn().getCatches(); in getCatchTypes() 135 BasicBlock block = blocks.labelToBlock(order[i]); in build() local 137 if (!block.canThrow()) { in build() 146 CatchHandlerList handlers = handlersFor(block, addresses); in build() 150 currentStartBlock = block; in build() 151 currentEndBlock = block; in build() 157 && rangeIsValid(currentStartBlock, block, addresses)) { in build() [all …]
|
D | BlockAddresses.java | 66 public CodeAddress getStart(BasicBlock block) { in getStart() argument 67 return starts[block.getLabel()]; in getStart() 86 public CodeAddress getLast(BasicBlock block) { in getLast() argument 87 return lasts[block.getLabel()]; in getLast() 108 public CodeAddress getEnd(BasicBlock block) { in getEnd() argument 109 return ends[block.getLabel()]; in getEnd()
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
D | StdCatchBuilder.java | 85 BasicBlock block = blocks.get(i); in hasAnyCatches() local 86 TypeList catches = block.getLastInsn().getCatches(); in hasAnyCatches() 102 BasicBlock block = blocks.get(i); in getCatchTypes() local 103 TypeList catches = block.getLastInsn().getCatches(); in getCatchTypes() 133 BasicBlock block = blocks.labelToBlock(order[i]); in build() local 135 if (!block.canThrow()) { in build() 144 CatchHandlerList handlers = handlersFor(block, addresses); in build() 148 currentStartBlock = block; in build() 149 currentEndBlock = block; in build() 155 && rangeIsValid(currentStartBlock, block, addresses)) { in build() [all …]
|
D | BlockAddresses.java | 66 public CodeAddress getStart(BasicBlock block) { in getStart() argument 67 return starts[block.getLabel()]; in getStart() 86 public CodeAddress getLast(BasicBlock block) { in getLast() argument 87 return lasts[block.getLabel()]; in getLast() 108 public CodeAddress getEnd(BasicBlock block) { in getEnd() argument 109 return ends[block.getLabel()]; in getEnd()
|
/dalvik/dx/src/com/android/dx/command/dump/ |
D | SsaDumper.java | 128 for (SsaBasicBlock block : sortedBlocks) { in endParsingMember() 130 .append(Hex.u2(block.getRopLabel())).append('\n'); in endParsingMember() 132 BitSet preds = block.getPredecessors(); in endParsingMember() 141 sb.append(" live in:" + block.getLiveInRegs()); in endParsingMember() 144 for (SsaInsn insn : block.getInsns()) { in endParsingMember() 150 if (block.getSuccessors().cardinality() == 0) { in endParsingMember() 153 int primary = block.getPrimarySuccessorRopLabel(); in endParsingMember() 155 IntList succLabelList = block.getRopLabelSuccessorList(); in endParsingMember() 170 sb.append(" live out:" + block.getLiveOutRegs()); in endParsingMember()
|
/dalvik/dx/src/com/android/dx/ssa/back/ |
D | SsaToRop.java | 169 for (SsaBasicBlock block : blocks) { in removePhiFunctions() 171 block.forEachPhiInsn(new PhiVisitor(blocks)); in removePhiFunctions() 174 block.removeAllPhiInsns(); in removePhiFunctions() 181 for (SsaBasicBlock block : blocks) { in removePhiFunctions() 182 block.scheduleMovesFromPhis(); in removePhiFunctions() 301 private BasicBlock convertBasicBlock(SsaBasicBlock block) { in convertBasicBlock() argument 302 IntList successorList = block.getRopLabelSuccessorList(); in convertBasicBlock() 303 int primarySuccessorLabel = block.getPrimarySuccessorRopLabel(); in convertBasicBlock() 315 + Hex.u2(block.getRopLabel())); in convertBasicBlock() 320 verifyValidExitPredecessor(block); in convertBasicBlock() [all …]
|
D | IdenticalBlockCombiner.java | 159 private void replaceSucc(BasicBlock block, int oldLabel, int newLabel) { in replaceSucc() argument 160 IntList newSuccessors = block.getSuccessors().mutableCopy(); in replaceSucc() 164 newPrimarySuccessor = block.getPrimarySuccessor(); in replaceSucc() 172 BasicBlock newBB = new BasicBlock(block.getLabel(), in replaceSucc() 173 block.getInsns(), newSuccessors, newPrimarySuccessor); in replaceSucc() 175 newBlocks.set(newBlocks.indexOfLabel(block.getLabel()), newBB); in replaceSucc()
|
/dalvik/dx/src/com/android/dx/rop/code/ |
D | LocalVariableExtractor.java | 93 BasicBlock block = blocks.labelToBlock(label); in processBlock() local 94 InsnList insns = block.getInsns(); in processBlock() 104 boolean canThrowDuringLastInsn = block.hasExceptionHandlers() && in processBlock() 177 IntList successors = block.getSuccessors(); in processBlock() 179 int primarySuccessor = block.getPrimarySuccessor(); in processBlock()
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
D | LocalVariableExtractor.java | 93 BasicBlock block = blocks.labelToBlock(label); in processBlock() local 94 InsnList insns = block.getInsns(); in processBlock() 104 boolean canThrowDuringLastInsn = block.hasExceptionHandlers() && in processBlock() 177 IntList successors = block.getSuccessors(); in processBlock() 179 int primarySuccessor = block.getPrimarySuccessor(); in processBlock()
|