Home
last modified time | relevance | path

Searched refs:label (Results 1 – 25 of 30) sorted by relevance

12

/dalvik/dx/src/com/android/dx/rop/code/
DLocalVariableInfo.java78 public void setStarts(int label, RegisterSpecSet specs) { in setStarts() argument
86 blockStarts[label] = specs; in setStarts()
107 public boolean mergeStarts(int label, RegisterSpecSet specs) { in mergeStarts() argument
108 RegisterSpecSet start = getStarts0(label); in mergeStarts()
112 setStarts(label, specs); in mergeStarts()
128 setStarts(label, newStart); in mergeStarts()
141 public RegisterSpecSet getStarts(int label) { in getStarts() argument
142 RegisterSpecSet result = getStarts0(label); in getStarts()
168 public RegisterSpecSet mutableCopyOfStarts(int label) { in mutableCopyOfStarts() argument
169 RegisterSpecSet result = getStarts0(label); in mutableCopyOfStarts()
[all …]
DBasicBlock.java29 private final int label; field in BasicBlock
59 public BasicBlock(int label, InsnList insns, IntList successors, in BasicBlock() argument
61 if (label < 0) { in BasicBlock()
109 this.label = label; in BasicBlock()
144 return label; in getLabel()
264 return new BasicBlock(label, insns.withRegisterOffset(delta), in withRegisterOffset()
270 return '{' + Hex.u2(label) + '}'; in toString()
DLocalVariableExtractor.java75 for (int label = method.getFirstLabel(); in doit()
76 label >= 0; in doit()
77 label = Bits.findFirst(workSet, 0)) { in doit()
78 Bits.clear(workSet, label); in doit()
79 processBlock(label); in doit()
91 private void processBlock(int label) { in processBlock() argument
92 RegisterSpecSet primaryState = resultInfo.mutableCopyOfStarts(label); in processBlock()
93 BasicBlock block = blocks.labelToBlock(label); in processBlock()
DRopMethod.java92 public IntList labelToPredecessors(int label) { in labelToPredecessors() argument
97 IntList result = predecessors[label]; in labelToPredecessors()
100 throw new RuntimeException("no such block: " + Hex.u2(label)); in labelToPredecessors()
162 int label = one.getLabel(); in calcPredecessors() local
167 exitPredecessors.add(label); in calcPredecessors()
176 succPreds.add(label); in calcPredecessors()
DBasicBlockList.java157 public BasicBlock labelToBlock(int label) { in labelToBlock() argument
158 int idx = indexOfLabel(label); in labelToBlock()
162 + Hex.u2(label)); in labelToBlock()
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DLocalVariableInfo.java79 public void setStarts(int label, RegisterSpecSet specs) { in setStarts() argument
87 blockStarts[label] = specs; in setStarts()
108 public boolean mergeStarts(int label, RegisterSpecSet specs) { in mergeStarts() argument
109 RegisterSpecSet start = getStarts0(label); in mergeStarts()
113 setStarts(label, specs); in mergeStarts()
125 setStarts(label, newStart); in mergeStarts()
138 public RegisterSpecSet getStarts(int label) { in getStarts() argument
139 RegisterSpecSet result = getStarts0(label); in getStarts()
165 public RegisterSpecSet mutableCopyOfStarts(int label) { in mutableCopyOfStarts() argument
166 RegisterSpecSet result = getStarts0(label); in mutableCopyOfStarts()
[all …]
DBasicBlock.java29 private final int label; field in BasicBlock
59 public BasicBlock(int label, InsnList insns, IntList successors, in BasicBlock() argument
61 if (label < 0) { in BasicBlock()
109 this.label = label; in BasicBlock()
143 return label; in getLabel()
263 return new BasicBlock(label, insns.withRegisterOffset(delta), in withRegisterOffset()
268 return '{' + Hex.u2(label) + '}'; in toString()
DLocalVariableExtractor.java75 for (int label = method.getFirstLabel(); in doit()
76 label >= 0; in doit()
77 label = Bits.findFirst(workSet, 0)) { in doit()
78 Bits.clear(workSet, label); in doit()
79 processBlock(label); in doit()
91 private void processBlock(int label) { in processBlock() argument
92 RegisterSpecSet primaryState = resultInfo.mutableCopyOfStarts(label); in processBlock()
93 BasicBlock block = blocks.labelToBlock(label); in processBlock()
DRopMethod.java93 public IntList labelToPredecessors(int label) { in labelToPredecessors() argument
98 IntList result = predecessors[label]; in labelToPredecessors()
101 throw new RuntimeException("no such block: " + Hex.u2(label)); in labelToPredecessors()
163 int label = one.getLabel(); in calcPredecessors() local
168 exitPredecessors.add(label); in calcPredecessors()
177 succPreds.add(label); in calcPredecessors()
/dalvik/dx/junit-tests/com/android/dx/util/
DBitsTest.java23 assertEquals(label(0), 0, Bits.makeBitSet(0).length); in test_makeBitSet()
26 assertEquals(label(i), 1, Bits.makeBitSet(i).length); in test_makeBitSet()
30 assertEquals(label(i), 2, Bits.makeBitSet(i).length); in test_makeBitSet()
38 assertEquals(label(i), expect, Bits.makeBitSet(i).length); in test_makeBitSet()
48 assertEquals(label(i), expect * 32, in test_getMax()
57 assertFalse(label(i), Bits.get(bits, i)); in test1_get()
68 assertTrue(label(i), Bits.get(bits, i)); in test2_get()
81 assertTrue(label(i), Bits.get(bits, i) == expect); in test3_get()
98 assertEquals(label(1), 0x41, bits[0]); in test1_set1()
99 assertEquals(label(2), 0xfffffbf7, bits[1]); in test1_set1()
[all …]
DIntListTest.java31 assertTrue(label(sz, i), contains); in test_contains()
33 assertFalse(label(sz, i), contains); in test_contains()
36 assertFalse(label(sz, -1), list.contains(-1)); in test_contains()
37 assertFalse(label(sz, sz * 2), list.contains(sz * 2)); in test_contains()
61 private static String label(int n, int m) { in label() method in IntListTest
/dalvik/dx/src/com/android/dx/dex/code/
DBlockAddresses.java76 public CodeAddress getStart(int label) { in getStart() argument
77 return starts[label]; in getStart()
97 public CodeAddress getLast(int label) { in getLast() argument
98 return lasts[label]; in getLast()
119 public CodeAddress getEnd(int label) { in getEnd() argument
120 return ends[label]; in getEnd()
132 int label = one.getLabel(); in setupArrays() local
135 starts[label] = new CodeAddress(insn.getPosition()); in setupArrays()
139 lasts[label] = new CodeAddress(pos); in setupArrays()
140 ends[label] = new CodeAddress(pos); in setupArrays()
DRopTranslator.java336 for (int label = method.getFirstLabel(); in pickOrder()
337 label != -1; in pickOrder()
338 label = Bits.findFirst(workSet, 0)) { in pickOrder()
352 IntList preds = method.labelToPredecessors(label); in pickOrder()
372 if (pred.getPrimarySuccessor() == label) { in pickOrder()
374 label = predLabel; in pickOrder()
375 Bits.set(tracebackSet, label); in pickOrder()
389 while (label != -1) { in pickOrder()
390 Bits.clear(workSet, label); in pickOrder()
391 Bits.clear(tracebackSet, label); in pickOrder()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DBlockAddresses.java76 public CodeAddress getStart(int label) { in getStart() argument
77 return starts[label]; in getStart()
97 public CodeAddress getLast(int label) { in getLast() argument
98 return lasts[label]; in getLast()
119 public CodeAddress getEnd(int label) { in getEnd() argument
120 return ends[label]; in getEnd()
132 int label = one.getLabel(); in setupArrays() local
135 starts[label] = new CodeAddress(insn.getPosition()); in setupArrays()
139 lasts[label] = new CodeAddress(pos); in setupArrays()
140 ends[label] = new CodeAddress(pos); in setupArrays()
DRopTranslator.java329 for (int label = method.getFirstLabel(); in pickOrder()
330 label != -1; in pickOrder()
331 label = Bits.findFirst(workSet, 0)) { in pickOrder()
345 IntList preds = method.labelToPredecessors(label); in pickOrder()
365 if (pred.getPrimarySuccessor() == label) { in pickOrder()
367 label = predLabel; in pickOrder()
368 Bits.set(tracebackSet, label); in pickOrder()
382 while (label != -1) { in pickOrder()
383 Bits.clear(workSet, label); in pickOrder()
384 Bits.clear(tracebackSet, label); in pickOrder()
[all …]
/dalvik/dexgen/src/com/android/dexgen/rop/
DByteBlock.java28 private final int label; field in ByteBlock
55 public ByteBlock(int label, int start, int end, IntList successors, in ByteBlock() argument
57 if (label < 0) { in ByteBlock()
86 this.label = label; in ByteBlock()
96 return '{' + Hex.u2(label) + ": " + Hex.u2(start) + ".." + in toString()
106 return label; in getLabel()
/dalvik/dx/src/com/android/dx/cf/code/
DByteBlock.java28 private final int label; field in ByteBlock
55 public ByteBlock(int label, int start, int end, IntList successors, in ByteBlock() argument
57 if (label < 0) { in ByteBlock()
86 this.label = label; in ByteBlock()
96 return '{' + Hex.u2(label) + ": " + Hex.u2(start) + ".." + in toString()
107 return label; in getLabel()
DRopper.java190 private int label; field in Ropper.ExceptionHandlerSetup
198 ExceptionHandlerSetup(Type caughtType, int label) { in ExceptionHandlerSetup() argument
200 this.label = label; in ExceptionHandlerSetup()
214 return label; in getLabel()
276 void addCallerBlock(int label) { in addCallerBlock() argument
277 callerBlocks.set(label); in addCallerBlock()
299 for (int label = callerBlocks.nextSetBit(0); label >= 0; in getSuccessors()
300 label = callerBlocks.nextSetBit(label+1)) { in getSuccessors()
301 BasicBlock subCaller = labelToBlock(label); in getSuccessors()
319 for (int label = callerBlocks.nextSetBit(0); label >= 0; in mergeToSuccessors()
[all …]
DLocalsArraySet.java128 for (int label = 0; label < sz; label++) { in annotate()
129 LocalsArray la = secondaries.get(label); in annotate()
133 + Hex.u2(label) + ')'); in annotate()
151 for (int label = 0; label < sz; label++) { in toHuman()
152 LocalsArray la = secondaries.get(label); in toHuman()
156 + Hex.u2(label) + ")\n"); in toHuman()
373 private LocalsArray getSecondaryForLabel(int label) { in getSecondaryForLabel() argument
374 if (label >= secondaries.size()) { in getSecondaryForLabel()
378 return secondaries.get(label); in getSecondaryForLabel()
DByteBlockList.java54 public ByteBlock labelToBlock(int label) { in labelToBlock() argument
55 int idx = indexOfLabel(label); in labelToBlock()
59 + Hex.u2(label)); in labelToBlock()
/dalvik/dexgen/src/com/android/dexgen/util/
DLabeledList.java91 protected void addLabelIndex(int label, int index) { in addLabelIndex() argument
94 for (int i = 0; i <= (label - origSz); i++) { in addLabelIndex()
98 labelToIndex.set(label, index); in addLabelIndex()
109 public int indexOfLabel(int label) { in indexOfLabel() argument
110 if (label >= labelToIndex.size()) { in indexOfLabel()
113 return labelToIndex.get(label); in indexOfLabel()
/dalvik/dx/src/com/android/dx/util/
DLabeledList.java92 private void addLabelIndex(int label, int index) { in addLabelIndex() argument
95 for (int i = 0; i <= (label - origSz); i++) { in addLabelIndex()
99 labelToIndex.set(label, index); in addLabelIndex()
110 public final int indexOfLabel(int label) { in indexOfLabel() argument
111 if (label >= labelToIndex.size()) { in indexOfLabel()
114 return labelToIndex.get(label); in indexOfLabel()
/dalvik/dx/src/com/android/dx/command/dump/
DDotDumper.java144 int label = bb.getLabel(); in endParsingMember() local
148 System.out.println("\tn" + Hex.u2(label) + " -> returns;"); in endParsingMember()
150 System.out.println("\tn" + Hex.u2(label) + " -> n" in endParsingMember()
153 System.out.print("\tn" + Hex.u2(label) + " -> {"); in endParsingMember()
164 System.out.println("\tn" + Hex.u2(label) + " -> n" in endParsingMember()
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DMixedItemSection.java243 String label = item.toHuman(); in writeIndexAnnotation() local
244 index.put(label, item); in writeIndexAnnotation()
255 String label = entry.getKey(); in writeIndexAnnotation() local
257 out.annotate(0, item.offsetString() + ' ' + label + '\n'); in writeIndexAnnotation()
/dalvik/dx/src/com/android/dx/dex/file/
DMixedItemSection.java243 String label = item.toHuman(); in writeIndexAnnotation() local
244 index.put(label, item); in writeIndexAnnotation()
255 String label = entry.getKey(); in writeIndexAnnotation() local
257 out.annotate(0, item.offsetString() + ' ' + label + '\n'); in writeIndexAnnotation()

12