Merge "Move some helper methods to DexRegisterLocation."