Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 46) sorted by relevance

12

/dalvik/dx/tests/031-bb-dead-code/
Dexpected.txt4 block 0000: 0000..0004
8 block 0004: 0004..0005
13 block 0000: 0000..0001
19 block 0000: 0000..0001
25 block 0000: 0000..0002
32 block 0000: 0000..0001
38 block 0000: 0000..0003
42 block 0004: 0004..0005
47 block 0000: 0000..0003
51 block 0003: 0003..0005
[all …]
/dalvik/dx/tests/032-bb-live-code/
Dexpected.txt4 block 0000: 0000..0004
8 block 0004: 0004..0005
13 block 0000: 0000..0002
17 block 0002: 0002..0004
25 block 0004: 0004..0005
28 block 0005: 0005..0006
31 block 0006: 0006..0007
34 block 0007: 0007..0008
39 block 0000: 0000..0002
43 block 0002: 0002..0003
[all …]
/dalvik/dx/tests/088-ssa-combine-blocks/
Dexpected.txt4 block 0000
8 block 000a
13 block 000b
17 block 000c
23 block 0002
28 block 0003
32 block 0004
38 block 0000
43 block 0004
48 block 001e
[all …]
/dalvik/dx/tests/094-scala-locals/
Dexpected.txt4 block 0000
11 block 0003
18 block 0006
25 block 0009
32 block 000c
39 block 001a
45 block 001b
51 block 0021
57 block 0022
63 block 0023
[all …]
/dalvik/dx/tests/092-ssa-cfg-edge-cases/
Dexpected.txt4 block 0000
9 block 000a
14 block 000b
18 block 000c
24 block 0000
31 block 001c
38 block 001f
42 block 0021
48 block 004a
54 block 004b
[all …]
/dalvik/dx/tests/085-dex-jsr-ret/
Dexpected.txt5 block 0000
10 block 0001
14 block 0004
21 block 0009
25 block 000c
30 block 000e
34 block 005c
38 block 005d
44 block 0063
48 block 0064
[all …]
/dalvik/dx/tests/086-ssa-edge-split/
Dexpected.txt4 block 0000
11 block 0004
17 block 000a
24 block 000b
30 block 000c
38 block 0000
46 block 0002
54 block 0006
62 block 000b
69 block 000f
[all …]
/dalvik/dx/tests/091-ssa-const-collector/
Dexpected.txt4 block 0000
9 block 000a
14 block 000b
18 block 000c
24 block 0000
32 block 0005
38 block 000b
46 block 0018
52 block 001a
58 block 0020
[all …]
/dalvik/dx/tests/087-ssa-local-vars/
Dexpected.txt4 block 0000
11 block 0004
17 block 000a
24 block 000b
30 block 000c
35 block 000d
43 block 0000
50 block 0007
57 block 000d
67 block 0016
[all …]
/dalvik/dx/tests/098-dex-jsr-ret-throw/
Dexpected.txt4 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/083-ssa-phi-placement/
Dexpected.txt4 block 0000
12 block 0004
18 block 000a
25 block 000b
31 block 000c
39 block 0000
51 block 0006
60 block 000c
69 block 0012
78 block 001a
[all …]
/dalvik/dx/src/com/android/dx/ssa/
DSsaConverter.java153 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 …]
DSsaInsn.java31 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()
DSsaRenamer.java164 public void visitBlock (SsaBasicBlock block, in run()
166 new BlockRenamer(block).process(); in run()
278 private final SsaBasicBlock block; field in SsaRenamer.BlockRenamer
309 BlockRenamer(final SsaBasicBlock block) { in BlockRenamer() argument
310 this.block = block; in BlockRenamer()
311 currentMapping = startsForBlocks[block.getIndex()]; in BlockRenamer()
317 startsForBlocks[block.getIndex()] = null; in BlockRenamer()
373 block.forEachInsn(this); in process()
378 ArrayList<SsaInsn> insns = block.getInsns(); in process()
397 for (SsaBasicBlock child : block.getDomChildren()) { in process()
[all …]
DSsaMethod.java205 for (SsaBasicBlock block : blocks) { in makeExitBlock()
206 block.exitBlockFixup(exitBlock); in makeExitBlock()
224 private static SsaInsn getGoto(SsaBasicBlock block) { in getGoto() argument
227 null, RegisterSpecList.EMPTY), block); in getGoto()
366 for (SsaBasicBlock block : blocks) { in computeReachability()
367 block.setReachable(0); in computeReachability()
374 SsaBasicBlock block = blockList.remove(0); in computeReachability() local
375 if (block.isReachable()) continue; in computeReachability()
377 block.setReachable(1); in computeReachability()
378 BitSet succs = block.getSuccessors(); in computeReachability()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DStdCatchBuilder.java85 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 …]
DBlockAddresses.java66 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/dex/code/
DStdCatchBuilder.java84 BasicBlock block = blocks.get(i); in hasAnyCatches() local
85 TypeList catches = block.getLastInsn().getCatches(); in hasAnyCatches()
101 BasicBlock block = blocks.get(i); in getCatchTypes() local
102 TypeList catches = block.getLastInsn().getCatches(); in getCatchTypes()
132 BasicBlock block = blocks.labelToBlock(order[i]); in build() local
134 if (!block.canThrow()) { in build()
143 CatchHandlerList handlers = handlersFor(block, addresses); in build()
147 currentStartBlock = block; in build()
148 currentEndBlock = block; in build()
154 && rangeIsValid(currentStartBlock, block, addresses)) { in build()
[all …]
DBlockAddresses.java66 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/tests/093-ssa-invoke-range/
Dexpected.txt4 block 0000
9 block 000a
14 block 000b
18 block 000c
24 block 0002
34 block 0003
38 block 0004
44 block 0000
54 block 0014
59 block 0015
[all …]
/dalvik/dx/src/com/android/dx/ssa/back/
DSsaToRop.java168 for (SsaBasicBlock block : blocks) { in removePhiFunctions()
170 block.forEachPhiInsn(new PhiVisitor(blocks)); in removePhiFunctions()
173 block.removeAllPhiInsns(); in removePhiFunctions()
180 for (SsaBasicBlock block : blocks) { in removePhiFunctions()
181 block.scheduleMovesFromPhis(); in removePhiFunctions()
297 private BasicBlock convertBasicBlock(SsaBasicBlock block) { in convertBasicBlock() argument
298 IntList successorList = block.getRopLabelSuccessorList(); in convertBasicBlock()
299 int primarySuccessorLabel = block.getPrimarySuccessorRopLabel(); in convertBasicBlock()
311 + Hex.u2(block.getRopLabel())); in convertBasicBlock()
316 verifyValidExitPredecessor(block); in convertBasicBlock()
[all …]
DIdenticalBlockCombiner.java159 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/command/dump/
DSsaDumper.java128 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/dexgen/src/com/android/dexgen/rop/code/
DLocalVariableExtractor.java93 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/dx/src/com/android/dx/rop/code/
DLocalVariableExtractor.java93 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()

12