int type = pool.getPhysicalRegisterType(r);
int type = OPT_PhysicalRegisterSet.getPhysicalRegisterType(r);
  private ScratchRegister createScratchBefore(OPT_Instruction s,                                               OPT_Register r,                                              OPT_Register symb) {    OPT_PhysicalRegisterSet pool = ir.regpool.getPhysicalRegisterSet();    int type = pool.getPhysicalRegisterType(r);    int spillLocation = OPT_RegisterAllocatorState.getSpill(r);    if (spillLocation <= 0) {      // no spillLocation yet assigned to the physical register.      // allocate a new location and assign it for the physical register      spillLocation = allocateNewSpillLocation(type);            OPT_RegisterAllocatorState.setSpill(r,spillLocation);    }    ScratchRegister sr = getPhysicalScratchRegister(r);    if (sr == null) {      sr = new ScratchRegister(r,null);      scratchInUse.add(sr);      // Since this is a new scratch register, spill the old contents of      // r if necessary.      if (activeSet == null) {        insertSpillBefore(s, r, (byte)type, spillLocation);        sr.setHadToSpill(true);      } else {        if (!isDeadBefore(r,s)) {          insertSpillBefore(s, r, (byte)type, spillLocation);          sr.setHadToSpill(true);        }      }    } else {      // update mapping information      if (verboseDebug) System.out.println("CSB: " +                                            " End scratch interval " +                                            sr.scratch + " " + s);      scratchMap.endScratchInterval(sr.scratch,s);      OPT_Register scratchContents = sr.currentContents;      if (scratchContents != null) {        if (verboseDebug) System.out.println("CSB: " +                                              " End symbolic interval " +                                              sr.currentContents + " "                                              + s);        scratchMap.endSymbolicInterval(sr.currentContents,s);      }     }    // update mapping information    if (verboseDebug) System.out.println("CSB: Begin scratch interval " + r +                                          " " + s);    scratchMap.beginScratchInterval(r,s);    if (verboseDebug) System.out.println("CSB: Begin symbolic interval " +                                          symb + " " + r +                                          " " + s);    scratchMap.beginSymbolicInterval(symb,r,s);    return sr;  }