org.jikesrvm.compilers.opt.instrsched
Class DefaultPriority

java.lang.Object
  extended by org.jikesrvm.compilers.opt.instrsched.Priority
      extended by org.jikesrvm.compilers.opt.instrsched.DefaultPriority
All Implemented Interfaces:
Enumeration<Instruction>

 class DefaultPriority
extends Priority

Default (IR-order) instruction list. Used by the scheduler to enumerate over instructions.

See Also:
Priority, Scheduler

Field Summary
private  BasicBlock bb
           
private  Instruction i
           
private  Enumeration<Instruction> instr
           
 
Constructor Summary
DefaultPriority(BasicBlock bb)
          Creates new priority object for a given basic block
 
Method Summary
 boolean hasMoreElements()
          Returns true if there are more instructions, false otherwise
 Instruction nextElement()
          Returns the next instruction in sequence
 void reset()
          Resets the enumeration to the first instruction in sequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bb

private final BasicBlock bb

i

private Instruction i

instr

private Enumeration<Instruction> instr
Constructor Detail

DefaultPriority

public DefaultPriority(BasicBlock bb)
Creates new priority object for a given basic block

Parameters:
bb - basic block
Method Detail

reset

public final void reset()
Description copied from class: Priority
Resets the enumeration to the first instruction in sequence

Specified by:
reset in class Priority

hasMoreElements

public final boolean hasMoreElements()
Description copied from class: Priority
Returns true if there are more instructions, false otherwise

Specified by:
hasMoreElements in interface Enumeration<Instruction>
Specified by:
hasMoreElements in class Priority
Returns:
true if there are more instructions, false otherwise

nextElement

public final Instruction nextElement()
Description copied from class: Priority
Returns the next instruction in sequence

Specified by:
nextElement in interface Enumeration<Instruction>
Specified by:
nextElement in class Priority
Returns:
the next instruction in sequence