public final class UpdateOSRMaps extends CompilerPhase
container
Constructor and Description |
---|
UpdateOSRMaps() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
CompilerPhase |
newExecution(IR ir)
Return this instance of this phase.
|
void |
perform(IR ir)
Iterate over the IR-based OSR map, and update symbolic registers
with real reg number or spill locations.
|
boolean |
printingEnabled(OptOptions options,
boolean before)
Returns true if the phase wants the IR dumped before and/or after it runs.
|
(package private) void |
setRealPosition(IR ir,
LocalRegPair tuple,
Register sym_reg) |
(package private) static void |
setTupleValue(LocalRegPair tuple,
byte type,
int value) |
(package private) static void |
setTupleValue(LocalRegPair tuple,
byte type,
Word value) |
boolean |
shouldPerform(OptOptions options)
This method determines if the phase should be run, based on the
Options object it is passed.
|
dumpIR, dumpIR, getClassConstructor, getCompilerPhaseConstructor, getCompilerPhaseConstructor, performPhase, reportAdditionalStats, setContainer, verify
public UpdateOSRMaps()
public boolean shouldPerform(OptOptions options)
CompilerPhase
shouldPerform
in class CompilerPhase
options
- the compiler options for the compilationpublic CompilerPhase newExecution(IR ir)
newExecution
in class CompilerPhase
ir
- not usedpublic String getName()
getName
in class CompilerPhase
public boolean printingEnabled(OptOptions options, boolean before)
CompilerPhase
printingEnabled
in class CompilerPhase
options
- the compiler options for the compilationbefore
- true when invoked before perform, false otherwise.public void perform(IR ir) throws OptimizingCompilerException
perform
in class CompilerPhase
ir
- the IR on which to apply the phaseOptimizingCompilerException
void setRealPosition(IR ir, LocalRegPair tuple, Register sym_reg)
static void setTupleValue(LocalRegPair tuple, byte type, int value)
static void setTupleValue(LocalRegPair tuple, byte type, Word value)