org.jikesrvm.compilers.opt.liveness
Class LiveIntervalEnumeration
java.lang.Object
org.jikesrvm.compilers.opt.liveness.LiveIntervalEnumeration
- All Implemented Interfaces:
- Enumeration<LiveIntervalElement>
public class LiveIntervalEnumeration
- extends Object
- implements Enumeration<LiveIntervalElement>
Enumerator for a list of live intervals stored on a basic block.
Note: This is fragile. Use with care iff you know what you're doing.
TODO: redesign the way live info is stored on the IR to be a bit more
robust. e.g., don't use scratch fields.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentElement
private LiveIntervalElement currentElement
LiveIntervalEnumeration
public LiveIntervalEnumeration(LiveIntervalElement first)
- Parameters:
first
- The first live interval in a list to be enumerated
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface Enumeration<LiveIntervalElement>
nextElement
public LiveIntervalElement nextElement()
- Specified by:
nextElement
in interface Enumeration<LiveIntervalElement>