|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.regalloc.LinearScan.BasicInterval
static class LinearScan.BasicInterval
Implements a basic live interval (no holes), which is a pair
begin - the starting point of the interval end - the ending point of the interval
Begin and end are numbers given to each instruction by a numbering pass.
Field Summary | |
---|---|
private int |
begin
DFN of the beginning instruction of this interval |
private int |
end
DFN of the last instruction of this interval |
Constructor Summary | |
---|---|
LinearScan.BasicInterval(int begin,
int end)
Default constructor. |
Method Summary | |
---|---|
(package private) boolean |
contains(int dfn)
Does this interval contain a dfn? |
(package private) boolean |
endsAfter(int dfn)
Does this interval end after dfn |
(package private) boolean |
endsAfter(LinearScan.BasicInterval i)
Does this interval end after another? |
(package private) boolean |
endsBefore(int dfn)
Does this interval end before dfn |
boolean |
equals(Object o)
Redefine equals |
(package private) int |
getBegin()
|
(package private) int |
getEnd()
|
(package private) boolean |
intersects(LinearScan.BasicInterval i)
Does this interval intersect with another? |
(package private) boolean |
sameRange(LinearScan.BasicInterval i)
Does this interval represent the same range as another? |
(package private) void |
setEnd(int newEnd)
Extend a live interval to a new endpoint |
(package private) boolean |
startsAfter(int dfn)
Does this interval start after dfn? |
(package private) boolean |
startsBefore(int dfn)
Does this interval start before dfn? |
(package private) boolean |
startsBefore(LinearScan.BasicInterval i)
Does this interval start before another? |
String |
toString()
Return a String representation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int begin
private int end
Constructor Detail |
---|
LinearScan.BasicInterval(int begin, int end)
Method Detail |
---|
final int getBegin()
final int getEnd()
final void setEnd(int newEnd)
final boolean startsAfter(int dfn)
dfn
- the depth first numbering to compare tofinal boolean startsBefore(int dfn)
dfn
- the depth first numbering to compare tofinal boolean contains(int dfn)
dfn
- the depth first numbering to compare tofinal boolean startsBefore(LinearScan.BasicInterval i)
i
- the interval to compare withfinal boolean endsAfter(LinearScan.BasicInterval i)
i
- the interval to compare withfinal boolean sameRange(LinearScan.BasicInterval i)
i
- the interval to compare withpublic boolean equals(Object o)
equals
in class Object
final boolean endsBefore(int dfn)
dfn
- the depth first numbering to compare tofinal boolean endsAfter(int dfn)
dfn
- the depth first numbering to compare tofinal boolean intersects(LinearScan.BasicInterval i)
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |