public interface CodeCacheProvider
Modifier and Type | Method and Description |
---|---|
InstalledCode |
addMethod(ResolvedJavaMethod method,
CompilationResult compResult,
SpeculationLog speculationLog,
InstalledCode predefinedInstalledCode)
Adds the given compilation result as an implementation of the given method without making it
the default implementation.
|
DataSection.Data |
createDataItem(Constant constant)
|
SpeculationLog |
createSpeculationLog()
Create a new speculation log for the target runtime.
|
default String |
getMarkName(CompilationResult.Mark mark)
Gets a name for a
CompilationResult.Mark mark. |
int |
getMinimumOutgoingSize()
Minimum size of the stack area reserved for outgoing parameters.
|
RegisterConfig |
getRegisterConfig()
Gets the register configuration to use when compiling a given method.
|
TargetDescription |
getTarget()
Gets a description of the target architecture.
|
default String |
getTargetName(CompilationResult.Call call)
Gets a name for the target of a
CompilationResult.Call . |
boolean |
needsDataPatch(JavaConstant constant)
Determines if a
CompilationResult.DataPatch should be created for a given primitive constant that is
part of a CompilationResult . |
InstalledCode |
setDefaultMethod(ResolvedJavaMethod method,
CompilationResult compResult)
Sets the given compilation result as the default implementation of the given method.
|
InstalledCode addMethod(ResolvedJavaMethod method, CompilationResult compResult, SpeculationLog speculationLog, InstalledCode predefinedInstalledCode)
method
- a method to which the executable code is begin addedcompResult
- the compilation result to be addedspeculationLog
- the speculation log to be usedBailoutException
if the code installation failedInstalledCode setDefaultMethod(ResolvedJavaMethod method, CompilationResult compResult)
method
- a method to which the executable code is begin addedcompResult
- the compilation result to be addeddefault String getMarkName(CompilationResult.Mark mark)
CompilationResult.Mark
mark.default String getTargetName(CompilationResult.Call call)
CompilationResult.Call
.RegisterConfig getRegisterConfig()
int getMinimumOutgoingSize()
boolean needsDataPatch(JavaConstant constant)
CompilationResult.DataPatch
should be created for a given primitive constant that is
part of a CompilationResult
. A data patch is always created for an object constant.DataSection.Data createDataItem(Constant constant)
TargetDescription getTarget()
SpeculationLog createSpeculationLog()