Home
last modified time | relevance | path

Searched refs:AbstractInsnNode (Results 1 – 25 of 47) sorted by relevance

12

/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/
DMethodCoverageCalculator.java25 import org.objectweb.asm.tree.AbstractInsnNode;
34 private final Map<AbstractInsnNode, Instruction> instructions;
36 private final Set<AbstractInsnNode> ignored;
49 private final Map<AbstractInsnNode, AbstractInsnNode> merged;
51 private final Map<AbstractInsnNode, Set<AbstractInsnNode>> replacements;
54 final Map<AbstractInsnNode, Instruction> instructions) { in MethodCoverageCalculator() argument
56 this.ignored = new HashSet<AbstractInsnNode>(); in MethodCoverageCalculator()
57 this.merged = new HashMap<AbstractInsnNode, AbstractInsnNode>(); in MethodCoverageCalculator()
58 this.replacements = new HashMap<AbstractInsnNode, Set<AbstractInsnNode>>(); in MethodCoverageCalculator()
73 for (final Entry<AbstractInsnNode, Instruction> entry : instructions in calculate()
[all …]
DInstructionsBuilder.java22 import org.objectweb.asm.tree.AbstractInsnNode;
45 private final Map<AbstractInsnNode, Instruction> instructions;
72 this.instructions = new HashMap<AbstractInsnNode, Instruction>(); in InstructionsBuilder()
102 void addInstruction(final AbstractInsnNode node) { in addInstruction()
159 Map<AbstractInsnNode, Instruction> getInstructions() { in getInstructions()
/external/kotlinx.atomicfu/atomicfu-transformer/src/main/kotlin/kotlinx/atomicfu/transformer/
DAsmUtil.kt11 val AbstractInsnNode.line: Int? constant
20 fun AbstractInsnNode.atIndex(insnList: InsnList?): String { in atIndex() method
31 val AbstractInsnNode.nextUseful: AbstractInsnNode? constant
33 var cur: AbstractInsnNode? = next
38 val AbstractInsnNode?.thisOrPrevUseful: AbstractInsnNode? constant
40 var cur: AbstractInsnNode? = this
45 private fun AbstractInsnNode?.isUseless() = this is LabelNode || this is LineNumberNode || this is … in AbstractInsnNode() method
47 fun InsnList.listUseful(limit: Int = Int.MAX_VALUE): List<AbstractInsnNode> { in AbstractInsnNode()
48 val result = ArrayList<AbstractInsnNode>(limit) in AbstractInsnNode()
57 fun AbstractInsnNode.isAload(index: Int) = in AbstractInsnNode() method
[all …]
DAbort.kt7 import org.objectweb.asm.tree.AbstractInsnNode
11 val i: AbstractInsnNode? = null
14 fun abort(message: String, i: AbstractInsnNode? = null): Nothing = throw AbortTransform(message, i)
DFlowAnalyzer.kt13 private val start: AbstractInsnNode?
15 private var cur: AbstractInsnNode? = null
23 …private fun unrecognized(i: AbstractInsnNode): Nothing = abort("Unrecognized operation ${i.toText(… in abort()
39 fun execute(): AbstractInsnNode { in execute()
50 fun getInitStart(): AbstractInsnNode { in getInitStart()
79 private fun AbstractInsnNode?.isArrayStore(): Boolean = when(this?.opcode) { in AbstractInsnNode() method
85 private fun executeOne(i: AbstractInsnNode, forward: Boolean = true): AbstractInsnNode? { in executeOne()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/filter/
DFilterTestBase.java26 import org.objectweb.asm.tree.AbstractInsnNode;
38 …private final Map<AbstractInsnNode, Set<AbstractInsnNode>> replacedBranches = new HashMap<Abstract…
41 public void ignore(final AbstractInsnNode fromInclusive,
42 final AbstractInsnNode toInclusive) {
49 public void merge(final AbstractInsnNode i1,
50 final AbstractInsnNode i2) {
54 public void replaceBranches(final AbstractInsnNode source,
55 final Set<AbstractInsnNode> newTargets) {
73 final void assertReplacedBranches(final AbstractInsnNode source, in assertReplacedBranches()
74 final Set<AbstractInsnNode> newTargets) { in assertReplacedBranches()
[all …]
DFinallyFilterTest.java24 import org.objectweb.asm.tree.AbstractInsnNode;
375 private final Set<AbstractInsnNode> expectedIgnored = new HashSet<AbstractInsnNode>();
376 private final Set<AbstractInsnNode> actualIgnored = new HashSet<AbstractInsnNode>();
377 private final Set<AbstractInsnNode> expectedMerged = new HashSet<AbstractInsnNode>();
378 private final Set<AbstractInsnNode> actualMerged = new HashSet<AbstractInsnNode>();
397 private Set<Integer> toIndexes(Set<AbstractInsnNode> set) { in toIndexes()
399 for (final AbstractInsnNode i : set) { in toIndexes()
405 public void ignore(final AbstractInsnNode fromInclusive, in ignore()
406 final AbstractInsnNode toInclusive) { in ignore()
407 for (AbstractInsnNode i = fromInclusive; i != toInclusive; i = i in ignore()
[all …]
DStringSwitchEcjFilterTest.java21 import org.objectweb.asm.tree.AbstractInsnNode;
33 final Set<AbstractInsnNode> expectedNewTargets = new HashSet<AbstractInsnNode>(); in should_filter()
56 final AbstractInsnNode switchNode = m.instructions.getLast(); in should_filter()
88 final AbstractInsnNode expectedToInclusive = m.instructions.getLast(); in should_filter()
111 final Set<AbstractInsnNode> expectedNewTargets = new HashSet<AbstractInsnNode>(); in should_filter_when_default_is_first()
132 final AbstractInsnNode switchNode = m.instructions.getLast(); in should_filter_when_default_is_first()
143 final AbstractInsnNode expectedToInclusive = m.instructions.getLast(); in should_filter_when_default_is_first()
DKotlinWhenStringFilterTest.java21 import org.objectweb.asm.tree.AbstractInsnNode;
33 final Set<AbstractInsnNode> expectedNewTargets = new HashSet<AbstractInsnNode>(); in should_filter()
60 final AbstractInsnNode expectedFromInclusive = m.instructions.getLast(); in should_filter()
86 final AbstractInsnNode expectedToInclusive = m.instructions.getLast(); in should_filter()
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/
DFinallyFilter.java19 import org.objectweb.asm.tree.AbstractInsnNode;
82 final AbstractInsnNode e = next(catchAnyBlock.handler); in filter()
89 final Set<AbstractInsnNode> inside = new HashSet<AbstractInsnNode>(); in filter()
92 AbstractInsnNode i = t.start; in filter()
104 AbstractInsnNode i = t.start; in filter()
108 case AbstractInsnNode.FRAME: in filter()
109 case AbstractInsnNode.LINE: in filter()
110 case AbstractInsnNode.LABEL: in filter()
112 case AbstractInsnNode.JUMP_INSN: in filter()
113 final AbstractInsnNode jumpTarget = next( in filter()
[all …]
DIFilterOutput.java16 import org.objectweb.asm.tree.AbstractInsnNode;
33 void ignore(AbstractInsnNode fromInclusive, AbstractInsnNode toInclusive); in ignore()
44 void merge(AbstractInsnNode i1, AbstractInsnNode i2); in merge()
55 void replaceBranches(AbstractInsnNode source, in replaceBranches()
56 Set<AbstractInsnNode> newTargets); in replaceBranches()
DKotlinWhenFilter.java19 import org.objectweb.asm.tree.AbstractInsnNode;
40 for (AbstractInsnNode i = methodNode.instructions in filter()
47 void match(final AbstractInsnNode start, final IFilterOutput output) { in match()
58 for (AbstractInsnNode i = cursor; i != null; i = i.getPrevious()) { in match()
75 private static LabelNode getDefaultLabel(final AbstractInsnNode i) { in getDefaultLabel()
86 private static void ignoreDefaultBranch(final AbstractInsnNode switchNode, in ignoreDefaultBranch()
94 final Set<AbstractInsnNode> newTargets = new HashSet<AbstractInsnNode>(); in ignoreDefaultBranch()
DAbstractMatcher.java18 import org.objectweb.asm.tree.AbstractInsnNode;
28 AbstractInsnNode cursor;
149 static AbstractInsnNode skipNonOpcodes(AbstractInsnNode cursor) { in skipNonOpcodes()
150 while (cursor != null && (cursor.getType() == AbstractInsnNode.FRAME in skipNonOpcodes()
151 || cursor.getType() == AbstractInsnNode.LABEL in skipNonOpcodes()
152 || cursor.getType() == AbstractInsnNode.LINE)) { in skipNonOpcodes()
DSynchronizedFilter.java15 import org.objectweb.asm.tree.AbstractInsnNode;
33 final AbstractInsnNode to = new Matcher(tryCatch.handler).match(); in filter()
42 private final AbstractInsnNode start;
44 private Matcher(final AbstractInsnNode start) { in Matcher()
48 private AbstractInsnNode match() { in match()
DTryWithResourcesEcjFilter.java18 import org.objectweb.asm.tree.AbstractInsnNode;
54 private AbstractInsnNode start;
60 private void start(final AbstractInsnNode start) { in start()
73 AbstractInsnNode c; in matchEcj()
93 final AbstractInsnNode end = cursor; in matchEcj()
95 AbstractInsnNode startOnNonExceptionalPath = start.getPrevious(); in matchEcj()
121 AbstractInsnNode c; in matchEcjNoFlowOut()
137 final AbstractInsnNode end = cursor; in matchEcjNoFlowOut()
139 AbstractInsnNode startOnNonExceptionalPath = start.getPrevious(); in matchEcjNoFlowOut()
253 if (cursor.getType() != AbstractInsnNode.LABEL) { in nextIsLabel()
DKotlinCoroutineFilter.java19 import org.objectweb.asm.tree.AbstractInsnNode;
74 final List<AbstractInsnNode> ignore = new ArrayList<AbstractInsnNode>( in match()
87 for (AbstractInsnNode i = cursor; i != null in match()
95 final AbstractInsnNode continuationAfterLoadedResult = skipNonOpcodes( in match()
105 for (AbstractInsnNode j = i; j != null; j = j.getNext()) { in match()
147 final AbstractInsnNode c = cursor; in nextIsThrowOnFailure()
172 final AbstractInsnNode createStateInstance = skipNonOpcodes( in nextIsCreateStateInstance()
202 final AbstractInsnNode afterCoroutineStateCreated = skipNonOpcodes( in nextIsCreateStateInstance()
DKotlinWhenStringFilter.java18 import org.objectweb.asm.tree.AbstractInsnNode;
35 for (AbstractInsnNode i = methodNode.instructions in filter()
42 public void match(final AbstractInsnNode start, in match()
57 final AbstractInsnNode s = cursor; in match()
70 final Set<AbstractInsnNode> replacements = new HashSet<AbstractInsnNode>(); in match()
DStringSwitchEcjFilter.java18 import org.objectweb.asm.tree.AbstractInsnNode;
35 for (AbstractInsnNode i = methodNode.instructions in filter()
42 public void match(final AbstractInsnNode start, in match()
57 final AbstractInsnNode s = cursor; in match()
70 final Set<AbstractInsnNode> replacements = new HashSet<AbstractInsnNode>(); in match()
DStringSwitchJavacFilter.java15 import org.objectweb.asm.tree.AbstractInsnNode;
29 AbstractInsnNode i = methodNode.instructions.getFirst(); in filter()
42 private void filter(final AbstractInsnNode start, in filter()
58 boolean match(final AbstractInsnNode start, in match()
59 final AbstractInsnNode secondSwitchLabel) { in match()
DTryWithResourcesJavacFilter.java15 import org.objectweb.asm.tree.AbstractInsnNode;
96 private AbstractInsnNode start;
125 private void start(final AbstractInsnNode start) { in start()
151 final AbstractInsnNode end = cursor; in matchJavac()
153 AbstractInsnNode startOnNonExceptionalPath = start.getPrevious(); in matchJavac()
165 final AbstractInsnNode m = cursor; in matchJavac()
DTryWithResourcesJavac11Filter.java15 import org.objectweb.asm.tree.AbstractInsnNode;
67 void match(final AbstractInsnNode start, final IFilterOutput output, in match()
87 final AbstractInsnNode end = cursor; in match()
89 AbstractInsnNode s = start.getPrevious(); in match()
100 final AbstractInsnNode m = cursor; in match()
DKotlinDefaultArgumentsFilter.java19 import org.objectweb.asm.tree.AbstractInsnNode;
70 final Set<AbstractInsnNode> ignore = new HashSet<AbstractInsnNode>(); in match()
91 for (AbstractInsnNode i : ignore) { in match()
DKotlinGeneratedFilter.java14 import org.objectweb.asm.tree.AbstractInsnNode;
52 for (AbstractInsnNode i = methodNode.instructions in hasLineNumber()
54 if (AbstractInsnNode.LINE == i.getType()) { in hasLineNumber()
DKotlinLateinitFilter.java15 import org.objectweb.asm.tree.AbstractInsnNode;
27 for (AbstractInsnNode i = methodNode.instructions in filter()
34 public void match(final AbstractInsnNode start, in match()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/
DInstructionsBuilderTest.java24 import org.objectweb.asm.tree.AbstractInsnNode;
54 Map<AbstractInsnNode, Instruction> map = builder.getInstructions(); in current_line_number_should_be_applied_to_instructions()
69 Map<AbstractInsnNode, Instruction> map = builder.getInstructions(); in null_probearray_should_not_mark_instruction_as_covered()
80 Map<AbstractInsnNode, Instruction> map = builder.getInstructions(); in unexecuted_probe_should_not_mark_instruction_as_covered()
91 Map<AbstractInsnNode, Instruction> map = builder.getInstructions(); in executed_probe_should_mark_instruction_as_covered()
108 Map<AbstractInsnNode, Instruction> map = builder.getInstructions(); in subsequent_instructions_should_be_linked_by_default()
126 Map<AbstractInsnNode, Instruction> map = builder.getInstructions(); in subsequent_instructions_should_not_be_linked_when_noSuccessor_was_called()
146 Map<AbstractInsnNode, Instruction> map = builder.getInstructions(); in subsequent_instructions_should_be_linked_after_label_marked_as_successor()
164 Map<AbstractInsnNode, Instruction> map = builder.getInstructions(); in subsequent_instructions_should_not_be_linked_after_label_not_marked_as_successor()
184 Map<AbstractInsnNode, Instruction> map = builder.getInstructions(); in jumps_should_propagate_coverage_status()

12