Optimize DisassemblyFunction::getLineNum() a bit.

Improves scrolling performance in some cases in the debugger.