}
}
private int getLineNumber(LineNumber[] lineNumbers, Instruction line) {
int pc = line.getPc();
LineNumber previousLineNumber = null;
for (LineNumber lineNumber : lineNumbers) {
if (lineNumber.getStartPC() <= pc) {
previousLineNumber = lineNumber;
} else {
return previousLineNumber.getLineNumber();
}
}
if (previousLineNumber != null && previousLineNumber.getStartPC() <= pc) {
return previousLineNumber.getLineNumber();
}
return -1;
}