private void add(int address, Disposition disposition, RegisterSpec spec) {
      int regNum = spec.getReg();

      result.add(new Entry(address, disposition, spec));

      if (disposition == Disposition.START) {
        regs.put(spec);
        endIndices[regNum] = -1;
      } else {
        regs.remove(spec);
        endIndices[regNum] = result.size() - 1;
      }
    }
Adds an entry to the result, updating the adjunct tables accordingly.

@param address {@code >= 0;} the address
@param disposition {@code non-null;} the disposition
@param spec {@code non-null;} spec representing the local
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/LocalList.java