org.jikesrvm.osr
Class AdjustBCIndexes
java.lang.Object
org.jikesrvm.compilers.opt.driver.CompilerPhase
org.jikesrvm.osr.AdjustBCIndexes
public class AdjustBCIndexes
- extends CompilerPhase
OSR_AdjustBCIndex is an optimizing phase performed on HIR.
It adjust the byte code index of instructions from specialized
byte code to its original byte code.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdjustBCIndexes
public AdjustBCIndexes()
shouldPerform
public final 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 final String getName()
- Specified by:
getName
in class CompilerPhase
- Returns:
- a String which is the name of the phase.
perform
public final void perform(IR ir)
- Description copied from class:
CompilerPhase
- This is the method that actually does the work of the phase.
- Specified by:
perform
in class CompilerPhase
- Parameters:
ir
- the IR on which to apply the phase