public final class OptimisticOptimizations extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OptimisticOptimizations.Optimization |
Modifier and Type | Field and Description |
---|---|
static OptimisticOptimizations |
ALL |
private static DebugMetric |
disabledOptimisticOptsMetric |
private Set<OptimisticOptimizations.Optimization> |
enabledOpts |
static OptimisticOptimizations |
NONE |
Modifier | Constructor and Description |
---|---|
|
OptimisticOptimizations(ProfilingInfo info) |
private |
OptimisticOptimizations(Set<OptimisticOptimizations.Optimization> enabledOpts) |
Modifier and Type | Method and Description |
---|---|
OptimisticOptimizations |
add(OptimisticOptimizations.Optimization... optimizations) |
private void |
addOptimization(ProfilingInfo info,
DeoptimizationReason deoptReason,
OptimisticOptimizations.Optimization optimization) |
private static boolean |
checkDeoptimizations(ProfilingInfo profilingInfo,
DeoptimizationReason reason) |
boolean |
devirtualizeInvokes() |
boolean |
inlineMegamorphicCalls() |
boolean |
inlineMonomorphicCalls() |
boolean |
inlinePolymorphicCalls() |
boolean |
lessOptimisticThan(OptimisticOptimizations other) |
OptimisticOptimizations |
remove(OptimisticOptimizations.Optimization... optimizations) |
boolean |
removeNeverExecutedCode() |
String |
toString() |
boolean |
useExceptionProbability() |
boolean |
useExceptionProbabilityForOperations() |
boolean |
useLoopLimitChecks() |
boolean |
useTypeCheckHints() |
public static final OptimisticOptimizations ALL
public static final OptimisticOptimizations NONE
private static final DebugMetric disabledOptimisticOptsMetric
private final Set<OptimisticOptimizations.Optimization> enabledOpts
public OptimisticOptimizations(ProfilingInfo info)
private OptimisticOptimizations(Set<OptimisticOptimizations.Optimization> enabledOpts)
private void addOptimization(ProfilingInfo info, DeoptimizationReason deoptReason, OptimisticOptimizations.Optimization optimization)
public OptimisticOptimizations remove(OptimisticOptimizations.Optimization... optimizations)
public OptimisticOptimizations add(OptimisticOptimizations.Optimization... optimizations)
public boolean removeNeverExecutedCode()
public boolean useTypeCheckHints()
public boolean inlineMonomorphicCalls()
public boolean inlinePolymorphicCalls()
public boolean inlineMegamorphicCalls()
public boolean devirtualizeInvokes()
public boolean useExceptionProbability()
public boolean useExceptionProbabilityForOperations()
public boolean useLoopLimitChecks()
public boolean lessOptimisticThan(OptimisticOptimizations other)
private static boolean checkDeoptimizations(ProfilingInfo profilingInfo, DeoptimizationReason reason)