protected static String regListString(RegisterSpecList list) {
    int sz = list.size();
    StringBuilder sb = new StringBuilder(sz * 5 + 2);

    sb.append('{');

    for (int i = 0; i < sz; i++) {
      if (i != 0) {
        sb.append(", ");
      }
      sb.append(list.get(i).regString());
    }

    sb.append('}');

    return sb.toString();
  }
Helper method to return a register list string.

@param list {@code non-null;} the list of registers
@return {@code non-null;} the string form
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/InsnFormat.java