private void collectOsrPointsAndBarriers(IR ir){
  osrPoints=new LinkedList<Instruction>();
  osrBarriers=new LinkedList<Instruction>();
  Enumeration<Instruction> instenum=ir.forwardInstrEnumerator();
  while (instenum.hasMoreElements()) {
    Instruction inst=instenum.nextElement();
    if (OsrPoint.conforms(inst)) {
      osrPoints.add(inst);
    }
 else     if (inst.operator() == OSR_BARRIER) {
      osrBarriers.add(inst);
    }
  }
}

private void collectOsrPointsAndBarriers ( IR ir ) { osrPoints = new LinkedList < Instruction > ( ) ; osrBarriers = new LinkedList < Instruction > ( ) ; Enumeration < Instruction > instenum = ir . forwardInstrEnumerator ( ) ; while ( instenum . hasMoreElements ( ) ) { Instruction inst = instenum . nextElement ( ) ; if ( OsrPoint . conforms ( inst ) ) { osrPoints . add ( inst ) ; } else if ( inst . operator ( ) == OSR_BARRIER ) { osrBarriers . add ( inst ) ; } } }
iterates over all instructions in the ir and builds a list of osrpoint instructions and osrbarrier instructions .
