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>, InstructionEnumeration

 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  InstructionEnumeration 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 next()
          Returns the next instruction in sequence
 void reset()
          Resets the enumeration to the first instruction in sequence
 
Methods inherited from class org.jikesrvm.compilers.opt.instrsched.Priority
nextElement
 
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 InstructionEnumeration 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()
Resets the enumeration to the first instruction in sequence

Specified by:
reset in class Priority

hasMoreElements

public final boolean hasMoreElements()
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

next

public final Instruction next()
Returns the next instruction in sequence

Specified by:
next in interface InstructionEnumeration
Specified by:
next in class Priority
Returns:
the next instruction in sequence