public final class InvokeeThreadLocalContext extends Object implements SpecializationContext
Modifier and Type | Field and Description |
---|---|
private static OptimizationPlanElement[] |
optimizationPlan
The default optimization plan.
|
private static OptOptions |
options
The default optimization options, with the INVOKEE_THREAD_LOCAL flag
set true.
|
Constructor and Description |
---|
InvokeeThreadLocalContext() |
Modifier and Type | Method and Description |
---|---|
private SpecializedMethod |
createSpecializedMethod(NormalMethod method) |
SpecializedMethod |
findOrCreateSpecializedVersion(NormalMethod source)
Finds or creates a specialized version of source for this
context.
|
static void |
init()
Initialize static members.
|
CompiledMethod |
specialCompile(NormalMethod source)
Generate code to specialize a method in this context.
|
private static OptOptions options
private static OptimizationPlanElement[] optimizationPlan
public InvokeeThreadLocalContext()
public SpecializedMethod findOrCreateSpecializedVersion(NormalMethod source)
SpecializationContext
findOrCreateSpecializedVersion
in interface SpecializationContext
source
- the method that needs a specialized versionprivate SpecializedMethod createSpecializedMethod(NormalMethod method)
public CompiledMethod specialCompile(NormalMethod source)
specialCompile
in interface SpecializationContext
source
- the method to compilepublic static void init()