|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.driver.CompilerPhase
org.jikesrvm.compilers.opt.controlflow.YieldPoints
public class YieldPoints
This class inserts yield points in 1) a method's prologue 2) loop headers 3) (optionally) method exits (epilogue, athrow)
| Field Summary |
|---|
| Fields inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase |
|---|
container |
| Constructor Summary | |
|---|---|
YieldPoints()
|
|
| Method Summary | |
|---|---|
String |
getName()
Return the name of this phase |
CompilerPhase |
newExecution(IR ir)
This phase contains no per-compilation instance fields. |
void |
perform(IR ir)
Insert yield points in method prologues, loop heads, and method exits |
private void |
prependYield(BasicBlock bb,
Operator yp,
int bcIndex,
InlineSequence position)
Add a YIELD instruction to the appropriate place for the basic block passed. |
private void |
processLoopNest(LSTNode n)
Process all loop heads in a loop nest by inserting a backedge yieldpoint in each of them. |
| Methods inherited from class org.jikesrvm.compilers.opt.driver.CompilerPhase |
|---|
dumpIR, dumpIR, getClassConstructor, getCompilerPhaseConstructor, getCompilerPhaseConstructor, performPhase, printingEnabled, reportAdditionalStats, setContainer, shouldPerform, verify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YieldPoints()
| Method Detail |
|---|
public final String getName()
getName in class CompilerPhasepublic final CompilerPhase newExecution(IR ir)
newExecution in class CompilerPhaseir - the IR that is about to be passed to performPhase
public final void perform(IR ir)
perform in class CompilerPhaseir - the governing IRprivate void processLoopNest(LSTNode n)
private void prependYield(BasicBlock bb,
Operator yp,
int bcIndex,
InlineSequence position)
bb - the basic blockyp - the yieldpoint operator to insertbcIndex - the bcIndex of the yieldpointposition - the source position of the yieldpoint
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||