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;
  }
}

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 .
