question: 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 ) ; } } }
target:  Iterates over all instructions in the IR and builds a list of OsrPoint instructions and OsrBarrier instructions.