public final class OptimizingBootImageCompiler extends BootImageCompiler
Modifier and Type | Field and Description |
---|---|
private String |
excludePattern
If excludePattern is
null , all methods are opt-compiled (or attempted). |
private OptOptions |
masterOptions |
private Vector<Boolean> |
optimizationPlanLocks |
private Vector<OptimizationPlanElement[]> |
optimizationPlans |
private Vector<OptOptions> |
options |
baseCompiler, compiler, optCompiler
Constructor and Description |
---|
OptimizingBootImageCompiler() |
Modifier and Type | Method and Description |
---|---|
private CompiledMethod |
baselineCompile(NormalMethod method) |
protected CompiledMethod |
compileMethod(NormalMethod method,
TypeReference[] params)
Compiles a method with bytecodes.
|
private int |
getFreeOptimizationPlan()
Return an optimization plan that isn't in use
|
protected void |
initCompiler(String[] args)
Initialize boot image compiler.
|
private boolean |
match(RVMMethod method) |
private void |
releaseOptimizationPlan(int plan)
Release an optimization plan
|
compile, compile, compile, init
private final Vector<OptimizationPlanElement[]> optimizationPlans
private final Vector<Boolean> optimizationPlanLocks
private final Vector<OptOptions> options
private final OptOptions masterOptions
private String excludePattern
null
, all methods are opt-compiled (or attempted).
Otherwise, methods that match the pattern are not opt-compiled.
In any case, the class OptSaveVolatile is always opt-compiled.public OptimizingBootImageCompiler()
protected void initCompiler(String[] args)
BootImageCompiler
initCompiler
in class BootImageCompiler
args
- command line arguments to the bootimage compilerprotected CompiledMethod compileMethod(NormalMethod method, TypeReference[] params)
BootImageCompiler
compileMethod
in class BootImageCompiler
method
- the method to compileparams
- the specialized types of the method's parameters.
This will be null
if the types from the method's signature are used.private CompiledMethod baselineCompile(NormalMethod method)
private int getFreeOptimizationPlan()
private void releaseOptimizationPlan(int plan)
plan
- an optimization plan