Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 38) sorted by relevance

12

/dalvik/dx/src/com/android/dx/rop/code/
DRopMethod.java27 private final BasicBlockList blocks; field in RopMethod
50 public RopMethod(BasicBlockList blocks, int firstLabel) { in RopMethod() argument
51 if (blocks == null) { in RopMethod()
59 this.blocks = blocks; in RopMethod()
72 return blocks; in getBlocks()
129 RopMethod result = new RopMethod(blocks.withRegisterOffset(delta), in withRegisterOffset()
151 int maxLabel = blocks.getMaxLabel(); in calcPredecessors()
154 int sz = blocks.size(); in calcPredecessors()
161 BasicBlock one = blocks.get(i); in calcPredecessors()
DLocalVariableExtractor.java31 private final BasicBlockList blocks; field in LocalVariableExtractor
60 BasicBlockList blocks = method.getBlocks(); in LocalVariableExtractor() local
61 int maxLabel = blocks.getMaxLabel(); in LocalVariableExtractor()
64 this.blocks = blocks; in LocalVariableExtractor()
93 BasicBlock block = blocks.labelToBlock(label); in processBlock()
DLocalVariableInfo.java59 BasicBlockList blocks = method.getBlocks(); in LocalVariableInfo() local
60 int maxLabel = blocks.getMaxLabel(); in LocalVariableInfo()
62 this.regCount = blocks.getRegCount(); in LocalVariableInfo()
66 new HashMap<Insn, RegisterSpec>(blocks.getInstructionCount()); in LocalVariableInfo()
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DRopMethod.java28 private final BasicBlockList blocks; field in RopMethod
51 public RopMethod(BasicBlockList blocks, int firstLabel) { in RopMethod() argument
52 if (blocks == null) { in RopMethod()
60 this.blocks = blocks; in RopMethod()
73 return blocks; in getBlocks()
130 RopMethod result = new RopMethod(blocks.withRegisterOffset(delta), in withRegisterOffset()
152 int maxLabel = blocks.getMaxLabel(); in calcPredecessors()
155 int sz = blocks.size(); in calcPredecessors()
162 BasicBlock one = blocks.get(i); in calcPredecessors()
DLocalVariableExtractor.java31 private final BasicBlockList blocks; field in LocalVariableExtractor
60 BasicBlockList blocks = method.getBlocks(); in LocalVariableExtractor() local
61 int maxLabel = blocks.getMaxLabel(); in LocalVariableExtractor()
64 this.blocks = blocks; in LocalVariableExtractor()
93 BasicBlock block = blocks.labelToBlock(label); in processBlock()
DLocalVariableInfo.java60 BasicBlockList blocks = method.getBlocks(); in LocalVariableInfo() local
61 int maxLabel = blocks.getMaxLabel(); in LocalVariableInfo()
63 this.regCount = blocks.getRegCount(); in LocalVariableInfo()
67 new HashMap<Insn, RegisterSpec>(blocks.getInstructionCount()); in LocalVariableInfo()
/dalvik/dx/src/com/android/dx/ssa/back/
DIdenticalBlockCombiner.java34 private final BasicBlockList blocks; field in IdenticalBlockCombiner
44 blocks = ropMethod.getBlocks(); in IdenticalBlockCombiner()
45 newBlocks = blocks.getMutableCopy(); in IdenticalBlockCombiner()
56 int szBlocks = blocks.size(); in process()
58 BitSet toDelete = new BitSet(blocks.getMaxLabel()); in process()
62 BasicBlock b = blocks.get(bindex); in process()
76 BasicBlock iBlock = blocks.labelToBlock(iLabel); in process()
90 BasicBlock jBlock = blocks.labelToBlock(jLabel); in process()
140 BasicBlock bb = blocks.labelToBlock(betaLabel); in combineBlocks()
DSsaToRop.java139 final ArrayList<SsaBasicBlock> blocks = ssaMeth.getBlocks(); in removeEmptyGotos() local
152 SsaBasicBlock pb = blocks.get(i); in removeEmptyGotos()
167 ArrayList<SsaBasicBlock> blocks = ssaMeth.getBlocks(); in removePhiFunctions() local
169 for (SsaBasicBlock block : blocks) { in removePhiFunctions()
171 block.forEachPhiInsn(new PhiVisitor(blocks)); in removePhiFunctions()
181 for (SsaBasicBlock block : blocks) { in removePhiFunctions()
191 private final ArrayList<SsaBasicBlock> blocks; field in SsaToRop.PhiVisitor
193 public PhiVisitor(ArrayList<SsaBasicBlock> blocks) { in PhiVisitor() argument
194 this.blocks = blocks; in PhiVisitor()
205 SsaBasicBlock predBlock = blocks.get( in visitPhiInsn()
[all …]
/dalvik/dx/src/com/android/dx/ssa/
DSsaMethod.java42 private ArrayList<SsaBasicBlock> blocks; field in SsaMethod
135 static BitSet bitSetFromLabelList(BasicBlockList blocks, in bitSetFromLabelList() argument
137 BitSet result = new BitSet(blocks.size()); in bitSetFromLabelList()
140 result.set(blocks.indexOfLabel(labelList.get(i))); in bitSetFromLabelList()
170 blocks = new ArrayList<SsaBasicBlock>(sz + 2); in convertRopToSsaBlocks()
174 blocks.add(sbb); in convertRopToSsaBlocks()
182 = blocks.get(origEntryBlockIndex).insertNewPredecessor(); in convertRopToSsaBlocks()
199 exitBlockIndex = blocks.size(); in makeExitBlock()
203 blocks.add(exitBlock); in makeExitBlock()
205 for (SsaBasicBlock block : blocks) { in makeExitBlock()
[all …]
DSsaConverter.java146 ArrayList<SsaBasicBlock> blocks = result.getBlocks(); in edgeSplitPredecessors() local
152 for (int i = blocks.size() - 1; i >= 0; i-- ) { in edgeSplitPredecessors()
153 SsaBasicBlock block = blocks.get(i); in edgeSplitPredecessors()
187 ArrayList<SsaBasicBlock> blocks = ssaMeth.getBlocks(); in edgeSplitMoveExceptionsAndResults() local
193 for (int i = blocks.size() - 1; i >= 0; i-- ) { in edgeSplitMoveExceptionsAndResults()
194 SsaBasicBlock block = blocks.get(i); in edgeSplitMoveExceptionsAndResults()
208 SsaBasicBlock predecessor = blocks.get(j); in edgeSplitMoveExceptionsAndResults()
232 ArrayList<SsaBasicBlock> blocks = result.getBlocks(); in edgeSplitSuccessors() local
238 for (int i = blocks.size() - 1; i >= 0; i-- ) { in edgeSplitSuccessors()
239 SsaBasicBlock block = blocks.get(i); in edgeSplitSuccessors()
[all …]
DLocalVariableExtractor.java39 private final ArrayList<SsaBasicBlock> blocks; field in LocalVariableExtractor
68 ArrayList<SsaBasicBlock> blocks = method.getBlocks(); in LocalVariableExtractor() local
71 this.blocks = blocks; in LocalVariableExtractor()
73 this.workSet = new BitSet(blocks.size()); in LocalVariableExtractor()
105 SsaBasicBlock block = blocks.get(blockIndex); in processBlock()
DDominators.java51 private final ArrayList<SsaBasicBlock> blocks; field in Dominators
73 this.blocks = meth.getBlocks(); in Dominators()
74 this.info = new DFSInfo[blocks.size() + 2]; in Dominators()
199 SsaBasicBlock predBlock = blocks.get(j); in run()
DDeadCodeRemover.java129 ArrayList<SsaBasicBlock> blocks = ssaMeth.getBlocks(); in pruneDeadInstructions() local
132 while ((blockIndex = reachable.nextClearBit(blockIndex)) < blocks.size()) { in pruneDeadInstructions()
133 SsaBasicBlock block = blocks.get(blockIndex); in pruneDeadInstructions()
/dalvik/dx/src/com/android/dx/dex/code/
DBlockAddresses.java50 BasicBlockList blocks = method.getBlocks(); in BlockAddresses() local
51 int maxLabel = blocks.getMaxLabel(); in BlockAddresses()
127 BasicBlockList blocks = method.getBlocks(); in setupArrays() local
128 int sz = blocks.size(); in setupArrays()
131 BasicBlock one = blocks.get(i); in setupArrays()
DStdCatchBuilder.java82 BasicBlockList blocks = method.getBlocks(); in hasAnyCatches() local
83 int size = blocks.size(); in hasAnyCatches()
86 BasicBlock block = blocks.get(i); in hasAnyCatches()
100 BasicBlockList blocks = method.getBlocks(); in getCatchTypes() local
101 int size = blocks.size(); in getCatchTypes()
104 BasicBlock block = blocks.get(i); in getCatchTypes()
127 BasicBlockList blocks = method.getBlocks(); in build() local
135 BasicBlock block = blocks.labelToBlock(order[i]); in build()
DRopTranslator.java131 BasicBlockList blocks = method.getBlocks(); in RopTranslator() local
132 int bsz = blocks.size(); in RopTranslator()
140 int maxInsns = (bsz * 3) + blocks.getInstructionCount(); in RopTranslator()
156 this.regCount = blocks.getRegCount() in RopTranslator()
226 BasicBlockList blocks = method.getBlocks(); in outputInstructions() local
234 outputBlock(blocks.labelToBlock(order[i]), nextLabel); in outputInstructions()
312 BasicBlockList blocks = method.getBlocks(); in pickOrder() local
313 int sz = blocks.size(); in pickOrder()
314 int maxLabel = blocks.getMaxLabel(); in pickOrder()
319 BasicBlock one = blocks.get(i); in pickOrder()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DBlockAddresses.java50 BasicBlockList blocks = method.getBlocks(); in BlockAddresses() local
51 int maxLabel = blocks.getMaxLabel(); in BlockAddresses()
127 BasicBlockList blocks = method.getBlocks(); in setupArrays() local
128 int sz = blocks.size(); in setupArrays()
131 BasicBlock one = blocks.get(i); in setupArrays()
DStdCatchBuilder.java81 BasicBlockList blocks = method.getBlocks(); in hasAnyCatches() local
82 int size = blocks.size(); in hasAnyCatches()
85 BasicBlock block = blocks.get(i); in hasAnyCatches()
98 BasicBlockList blocks = method.getBlocks(); in getCatchTypes() local
99 int size = blocks.size(); in getCatchTypes()
102 BasicBlock block = blocks.get(i); in getCatchTypes()
125 BasicBlockList blocks = method.getBlocks(); in build() local
133 BasicBlock block = blocks.labelToBlock(order[i]); in build()
DRopTranslator.java125 BasicBlockList blocks = method.getBlocks(); in RopTranslator() local
126 int bsz = blocks.size(); in RopTranslator()
134 int maxInsns = (bsz * 3) + blocks.getInstructionCount(); in RopTranslator()
150 this.regCount = blocks.getRegCount() in RopTranslator()
219 BasicBlockList blocks = method.getBlocks(); in outputInstructions() local
227 outputBlock(blocks.labelToBlock(order[i]), nextLabel); in outputInstructions()
305 BasicBlockList blocks = method.getBlocks(); in pickOrder() local
306 int sz = blocks.size(); in pickOrder()
307 int maxLabel = blocks.getMaxLabel(); in pickOrder()
312 BasicBlock one = blocks.get(i); in pickOrder()
[all …]
/dalvik/dx/tests/085-dex-jsr-ret/
Drun17 dx --dump --rop-blocks blort.class
/dalvik/dx/tests/087-ssa-local-vars/
Drun17 dx --dump --ssa-blocks Blort.class
/dalvik/dx/tests/098-dex-jsr-ret-throw/
Drun17 dx --debug --dump --method=run --rop-blocks 'ViewDebug$ViewServer.class'
/dalvik/dx/tests/114-value-propagation/
Drun17 dx --dump --rop-blocks blort.class | grep 'const\|move'
/dalvik/dx/tests/093-ssa-invoke-range/
Drun17 dx --dump --optimize --rop-blocks Blort.class
/dalvik/dx/tests/092-ssa-cfg-edge-cases/
Drun17 dx --dump --optimize --rop-blocks Blort.class

12