org.jikesrvm.compilers.opt.regalloc
Class LinearScan.UpdateGCMaps1
java.lang.Object
org.jikesrvm.compilers.opt.driver.CompilerPhase
org.jikesrvm.compilers.opt.regalloc.LinearScan.UpdateGCMaps1
- Enclosing class:
- LinearScan
static final class LinearScan.UpdateGCMaps1
- extends CompilerPhase
Update GC maps after register allocation but before inserting spill
code.
Method Summary |
String |
getName()
|
CompilerPhase |
newExecution(IR ir)
Return this instance of this phase. |
void |
perform(IR ir)
Iterate over the IR-based GC map collection and for each entry
replace the symbolic reg with the real reg or spill it was allocated |
boolean |
printingEnabled(OptOptions options,
boolean before)
Returns true if the phase wants the IR dumped before and/or after it runs. |
boolean |
shouldPerform(OptOptions options)
This method determines if the phase should be run, based on the
Options object it is passed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearScan.UpdateGCMaps1
LinearScan.UpdateGCMaps1()
shouldPerform
public boolean shouldPerform(OptOptions options)
- Description copied from class:
CompilerPhase
- This method determines if the phase should be run, based on the
Options object it is passed.
By default, phases are always performed.
Subclasses should override this method if they only want
to be performed conditionally.
- Overrides:
shouldPerform
in class CompilerPhase
- Parameters:
options
- the compiler options for the compilation
- Returns:
- true if the phase should be performed
newExecution
public CompilerPhase newExecution(IR ir)
- Return this instance of this phase. This phase contains no
per-compilation instance fields.
- Overrides:
newExecution
in class CompilerPhase
- Parameters:
ir
- not used
- Returns:
- this
getName
public String getName()
- Specified by:
getName
in class CompilerPhase
- Returns:
- a String which is the name of the phase.
printingEnabled
public boolean printingEnabled(OptOptions options,
boolean before)
- Description copied from class:
CompilerPhase
- Returns true if the phase wants the IR dumped before and/or after it runs.
By default, printing is not enabled.
Subclasses should override this method if they want to provide IR dumping.
- Overrides:
printingEnabled
in class CompilerPhase
- Parameters:
options
- the compiler options for the compilationbefore
- true when invoked before perform, false otherwise.
- Returns:
- true if the IR should be printed, false otherwise.
perform
public void perform(IR ir)
- Iterate over the IR-based GC map collection and for each entry
replace the symbolic reg with the real reg or spill it was allocated
- Specified by:
perform
in class CompilerPhase
- Parameters:
ir
- the IR