public void visitJumpInsn(int opcode, Label label) { // Ignore any jump instructions in the "class init" method. // When initializing static variables, the JVM first checks // that the variable is null before attempting to set it. // This check contains an IFNONNULL jump instruction which // would confuse people if it showed up in the reports. if ((opcode != GOTO) && (opcode != JSR) && (currentLine != 0) && (!this.myName.equals("<clinit>"))) { classData.addLineJump(currentLine, currentJump); jumpTargetLabels.put(label, new JumpHolder(currentLine, currentJump++)); } super.visitJumpInsn(opcode, label); }
public void putJumpTouchPoint(int classLine, int trueCounterId, int falseCounterId) { updateLine(classLine); LineData ld = getOrCreateLine(classLine); int branchId = jumpsInLine++; classData.addLineJump(classLine, branchId); ld.touchJump(branchId, true, res[trueCounterId]); ld.touchJump(branchId, false, res[falseCounterId]); }
public void putJumpTouchPoint(int classLine, int trueCounterId, int falseCounterId) { updateLine(classLine); LineData ld = getOrCreateLine(classLine); int branchId = jumpsInLine++; classData.addLineJump(classLine, branchId); ld.touchJump(branchId, true, res[trueCounterId]); ld.touchJump(branchId, false, res[falseCounterId]); }
.getMethodSignature()); } else if (tpd instanceof JumpTouchPointDescriptor) { classData.addLineJump(tpd.getLineNumber(), jumpsInLine++); } else if (tpd instanceof SwitchTouchPointDescriptor) { int countersCnt = ((SwitchTouchPointDescriptor) tpd)
.getMethodSignature()); } else if (tpd instanceof JumpTouchPointDescriptor) { classData.addLineJump(tpd.getLineNumber(), jumpsInLine++); } else if (tpd instanceof SwitchTouchPointDescriptor) { int countersCnt = ((SwitchTouchPointDescriptor) tpd)
if ( cd instanceof JumpData) { JumpData ljd = (JumpData) cd; result.addLineJump( lld.getLineNumber(), i ); long prevTrue = 0; long prevFalse = 0;