OPT_RegSpillListEnumerator enum = irMapElem.regSpillListEnumerator(); if (enum.hasMoreElements()) {
OPT_RegSpillListEnumerator rslEnum = irMapElem.regSpillListEnumerator(); if (rslEnum.hasMoreElements()) {
  public int generateGCMapEntry(OPT_GCIRMapElement irMapElem) throws InterruptiblePragma {    // the index into the GC maps we will use for this instruction.    int mapIndex = NO_MAP_ENTRY;    // Before requesting the (first) map entry, lets make sure we    // will need it.  If the reg/spill list is empty, we don't    // need a map slot, i.e., no references are live at this instruction    OPT_RegSpillListEnumerator enum = irMapElem.regSpillListEnumerator();    if (enum.hasMoreElements()) {      // For efficiency we create our own bit map and then set the      // appropriate array value      int bitMap = 0;      // count the spills so we know how big of an array we'll need      int numSpills = 0;      int numRegs = 0;      // Because the output data structure (the map) stores register      // information before spills, we need to traverse the list twice      // the first time we get the register mask, the 2nd time we get      // the spills      // process the register      while (enum.hasMoreElements()) {        OPT_RegSpillListElement elem = (OPT_RegSpillListElement)            enum.nextElement();        if (elem.isSpill()) {          numSpills++;        } else {          numRegs++;          int realRegNumber = elem.getRealRegNumber();          if (VM.VerifyAssertions && realRegNumber > LAST_GCMAP_REG) {            System.out.println(elem);            System.out.println(LAST_GCMAP_REG);            VM._assert(false, "reg > last GC Map Reg!!");          }          // get the bit position for this register number          int bitPosition = getRegBitPosition(realRegNumber);          // Set the appropriate bit          bitMap = bitMap | (NEXT_BIT >>> bitPosition);        }      }