public final class CompilationPlan extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
analyzeOnly
Whether this compilation is for analysis only?
|
InlineOracle |
inlinePlan
The oracle to be consulted for all inlining decisions.
|
InstrumentationPlan |
instrumentationPlan
The instrumentation plan for the method.
|
boolean |
irGeneration |
NormalMethod |
method
The method to be compiled.
|
OptimizationPlanElement[] |
optimizationPlan
The OptimizationPlanElements to be invoked during compilation.
|
OptOptions |
options
The Options object that contains misc compilation control data
|
TypeReference[] |
params
The specialized parameters to use in place of those defined in method.
|
Constructor and Description |
---|
CompilationPlan(NormalMethod m,
OptimizationPlanElement[] op,
InstrumentationPlan mp,
OptOptions opts)
Construct a compilation plan
|
CompilationPlan(NormalMethod m,
OptimizationPlanElement op,
InstrumentationPlan mp,
OptOptions opts)
Construct a compilation plan
|
CompilationPlan(NormalMethod m,
TypeReference[] pms,
OptimizationPlanElement[] op,
InstrumentationPlan mp,
OptOptions opts)
Construct a compilation plan
|
Modifier and Type | Method and Description |
---|---|
IR |
execute()
Execute a compilation plan by executing each element
in the optimization plan.
|
NormalMethod |
getMethod() |
void |
setInlineOracle(InlineOracle o) |
public final NormalMethod method
public final TypeReference[] params
public final OptimizationPlanElement[] optimizationPlan
public final InstrumentationPlan instrumentationPlan
public InlineOracle inlinePlan
public final OptOptions options
public boolean analyzeOnly
public boolean irGeneration
public CompilationPlan(NormalMethod m, TypeReference[] pms, OptimizationPlanElement[] op, InstrumentationPlan mp, OptOptions opts)
m
- The NormalMethod representing the source method to be compiledpms
- The specialized parameters to use in place of those defined in methodop
- The optimization plan to be executed on mmp
- The instrumentation plan to be executed on mopts
- The Options to be used for compiling mpublic CompilationPlan(NormalMethod m, OptimizationPlanElement[] op, InstrumentationPlan mp, OptOptions opts)
m
- The NormalMethod representing the source method to be compiledop
- The optimization plan to be executed on mmp
- The instrumentation plan to be executed on mopts
- The Options to be used for compiling mpublic CompilationPlan(NormalMethod m, OptimizationPlanElement op, InstrumentationPlan mp, OptOptions opts)
m
- The NormalMethod representing the source method to be compiledop
- A single optimization pass to execute on mmp
- The instrumentation plan to be executed on mopts
- The Options to be used for compiling mpublic NormalMethod getMethod()
public void setInlineOracle(InlineOracle o)