Merge "Move some helper methods to DexRegisterLocation."
am: 45b12e704e

Change-Id: Ib215d0b24b1346eb16e0e3a40a6074f14bf2dd78