Home
last modified time | relevance | path

Searched refs:LabelInfo (Results 1 – 11 of 11) sorted by relevance

/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/flow/
DLabelInfoTest.java40 assertFalse(LabelInfo.isMultiTarget(label)); in testDefaults()
41 assertFalse(LabelInfo.isSuccessor(label)); in testDefaults()
42 assertFalse(LabelInfo.isMethodInvocationLine(label)); in testDefaults()
43 assertFalse(LabelInfo.isDone(label)); in testDefaults()
44 assertEquals(LabelInfo.NO_PROBE, LabelInfo.getProbeId(label)); in testDefaults()
45 assertNull(LabelInfo.getIntermediateLabel(label)); in testDefaults()
46 assertNull(LabelInfo.getInstruction(label)); in testDefaults()
52 assertFalse(LabelInfo.isSuccessor(label)); in testOtherInfoObject()
57 LabelInfo.setSuccessor(label); in testSuccessor()
58 assertFalse(LabelInfo.isMultiTarget(label)); in testSuccessor()
[all …]
DMethodProbesAdapterTest.java122 LabelInfo.setTarget(label); in testVisitProbe1()
123 LabelInfo.setSuccessor(label); in testVisitProbe1()
133 LabelInfo.setTarget(label); in testVisitProbe2()
134 LabelInfo.setTarget(label); in testVisitProbe2()
168 LabelInfo.setTarget(label); in testVisitJumpInsn1()
169 LabelInfo.setTarget(label); in testVisitJumpInsn1()
181 LabelInfo.setTarget(label); in testVisitJumpInsn2()
182 LabelInfo.setTarget(label); in testVisitJumpInsn2()
205 LabelInfo.setTarget(label); in testVisitJumpInsn4()
206 LabelInfo.setTarget(label); in testVisitJumpInsn4()
[all …]
DLabelFlowAnalyzerTest.java49 assertFalse(LabelInfo.isMultiTarget(label)); in testFlowScenario01()
50 assertFalse(LabelInfo.isSuccessor(label)); in testFlowScenario01()
56 assertFalse(LabelInfo.isMultiTarget(label)); in testFlowScenario02()
57 assertFalse(LabelInfo.isSuccessor(label)); in testFlowScenario02()
64 assertFalse(LabelInfo.isMultiTarget(label)); in testFlowScenario03()
65 assertFalse(LabelInfo.isSuccessor(label)); in testFlowScenario03()
71 assertFalse(LabelInfo.isMultiTarget(label)); in testFlowScenario04()
72 assertFalse(LabelInfo.isSuccessor(label)); in testFlowScenario04()
79 assertTrue(LabelInfo.isMultiTarget(label)); in testFlowScenario05()
80 assertFalse(LabelInfo.isSuccessor(label)); in testFlowScenario05()
[all …]
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/flow/
DLabelInfo.java21 public final class LabelInfo { class
45 private LabelInfo() { in LabelInfo() method in LabelInfo
55 final LabelInfo info = create(label); in setTarget()
71 final LabelInfo info = create(label); in setSuccessor()
90 final LabelInfo info = get(label); in isMultiTarget()
105 final LabelInfo info = get(label); in isSuccessor()
129 final LabelInfo info = get(label); in isMethodInvocationLine()
141 final LabelInfo info = get(label); in needsProbe()
163 final LabelInfo info = get(label); in resetDone()
189 final LabelInfo info = get(label); in isDone()
[all …]
DMethodProbesAdapter.java74 } else if (LabelInfo.needsProbe(label)) { in getTryCatchLabel()
78 LabelInfo.setSuccessor(probeLabel); in getTryCatchLabel()
87 if (LabelInfo.needsProbe(label)) { in visitLabel()
116 if (LabelInfo.isMultiTarget(label)) { in visitJumpInsn()
166 LabelInfo.resetDone(labels); in markLabels()
167 if (LabelInfo.isMultiTarget(dflt)) { in markLabels()
168 LabelInfo.setProbeId(dflt, idGenerator.nextId()); in markLabels()
171 LabelInfo.setDone(dflt); in markLabels()
173 if (LabelInfo.isMultiTarget(l) && !LabelInfo.isDone(l)) { in markLabels()
174 LabelInfo.setProbeId(l, idGenerator.nextId()); in markLabels()
[all …]
DLabelFlowAnalyzer.java75 LabelInfo.setTarget(start); in visitTryCatchBlock()
78 LabelInfo.setTarget(handler); in visitTryCatchBlock()
83 LabelInfo.setTarget(label); in visitJumpInsn()
94 LabelInfo.setTarget(label); in visitLabel()
97 LabelInfo.setSuccessor(label); in visitLabel()
119 LabelInfo.resetDone(dflt); in visitSwitchInsn()
120 LabelInfo.resetDone(labels); in visitSwitchInsn()
130 if (!LabelInfo.isDone(label)) { in setTargetIfNotDone()
131 LabelInfo.setTarget(label); in setTargetIfNotDone()
132 LabelInfo.setDone(label); in setTargetIfNotDone()
[all …]
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/instr/
DMethodInstrumenter.java15 import org.jacoco.core.internal.flow.LabelInfo;
114 LabelInfo.resetDone(dflt); in visitTableSwitchInsnWithProbes()
115 LabelInfo.resetDone(labels); in visitTableSwitchInsnWithProbes()
128 LabelInfo.resetDone(dflt); in visitLookupSwitchInsnWithProbes()
129 LabelInfo.resetDone(labels); in visitLookupSwitchInsnWithProbes()
148 if (LabelInfo.getProbeId(label) == LabelInfo.NO_PROBE) { in createIntermediate()
151 if (LabelInfo.isDone(label)) { in createIntermediate()
152 intermediate = LabelInfo.getIntermediateLabel(label); in createIntermediate()
155 LabelInfo.setIntermediateLabel(label, intermediate); in createIntermediate()
156 LabelInfo.setDone(label); in createIntermediate()
[all …]
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/
DMethodAnalyzer.java28 import org.jacoco.core.internal.flow.LabelInfo;
183 if (!LabelInfo.isSuccessor(label)) { in visitLabel()
209 LabelInfo.setInstruction(currentLabel.get(i), insn); in visitInsn()
284 LabelInfo.resetDone(labels); in visitSwitchInsn()
287 LabelInfo.setDone(dflt); in visitSwitchInsn()
289 if (!LabelInfo.isDone(l)) { in visitSwitchInsn()
292 LabelInfo.setDone(l); in visitSwitchInsn()
336 LabelInfo.resetDone(dflt); in visitSwitchInsnWithProbes()
337 LabelInfo.resetDone(labels); in visitSwitchInsnWithProbes()
347 final int id = LabelInfo.getProbeId(label); in visitSwitchTarget()
[all …]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/instr/
DMethodInstrumenterTest.java18 import org.jacoco.core.internal.flow.LabelInfo;
196 LabelInfo.setProbeId(L0, 0); in testVisitTableSwitchInsnWithProbes()
197 LabelInfo.setProbeId(L1, 1); in testVisitTableSwitchInsnWithProbes()
220 LabelInfo.setProbeId(L0, 0); in testVisitLookupSwitchInsnWithProbes()
221 LabelInfo.setProbeId(L1, 1); in testVisitLookupSwitchInsnWithProbes()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DDIBuilder.cpp857 Instruction *DIBuilder::insertLabel(DILabel *LabelInfo, const DILocation *DL, in insertLabel() argument
860 LabelInfo, DL, InsertBefore ? InsertBefore->getParent() : nullptr, in insertLabel()
864 Instruction *DIBuilder::insertLabel(DILabel *LabelInfo, const DILocation *DL, in insertLabel() argument
866 return insertLabel(LabelInfo, DL, InsertAtEnd, nullptr); in insertLabel()
955 DILabel *LabelInfo, const DILocation *DL, in insertLabel() argument
957 assert(LabelInfo && "empty or invalid DILabel* passed to dbg.label"); in insertLabel()
960 LabelInfo->getScope()->getSubprogram() && in insertLabel()
965 trackIfUnresolved(LabelInfo); in insertLabel()
966 Value *Args[] = {MetadataAsValue::get(VMContext, LabelInfo)}; in insertLabel()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DDIBuilder.h87 Instruction *insertLabel(DILabel *LabelInfo, const DILocation *DL,
809 Instruction *insertLabel(DILabel *LabelInfo, const DILocation *DL,
816 Instruction *insertLabel(DILabel *LabelInfo, const DILocation *DL,