private void setNameForSsaReg(RegisterSpec ssaReg) {
    int reg = ssaReg.getReg();
    LocalItem local = ssaReg.getLocalItem();

    ssaRegToLocalItems.ensureCapacity(reg + 1);
    while (ssaRegToLocalItems.size() <= reg) {
      ssaRegToLocalItems.add(null);
    }

    ssaRegToLocalItems.set(reg, local);
  }
Records a debug (local variable) name for a specified register.

@param ssaReg non-null named register spec in SSA name space
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/SsaRenamer.java