@Override
            public RegisterSpec map(RegisterSpec registerSpec) {
              if (registerSpec.getReg() == origReg.getReg()) {
                return newReg.withLocalItem(registerSpec.getLocalItem());
              }

              return registerSpec;
            }
Updates all uses of various consts to use the values in the newly assigned registers.

@param newRegs {@code non-null;} mapping between constant and new reg
@param origRegCount {@code >=0;} original SSA reg count, not including newly added constant
    regs
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/ConstCollector.java