org.jikesrvm.compilers.opt.instrsched
Class DefaultPriority
java.lang.Object
org.jikesrvm.compilers.opt.instrsched.Priority
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bb
private final BasicBlock bb
i
private Instruction i
instr
private InstructionEnumeration instr
DefaultPriority
public DefaultPriority(BasicBlock bb)
- Creates new priority object for a given basic block
- Parameters:
bb - basic block
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