Don't pay for filename/line number lookup unless you need to.

picked from
https://github.com/android/platform_dalvik/commit/6cd72bd0161459e21d496b927967bd0ca6fe0f94
remove dependencies

Change-Id: I0040d6628feac782e286fa0307bc4df3ce140be0