public class HotSpotCodeCacheProvider extends Object implements CodeCacheProvider
CodeCacheProvider
.Modifier and Type | Field and Description |
---|---|
HotSpotVMConfig |
config |
protected RegisterConfig |
regConfig |
protected HotSpotJVMCIRuntimeProvider |
runtime |
protected TargetDescription |
target |
Constructor and Description |
---|
HotSpotCodeCacheProvider(HotSpotJVMCIRuntimeProvider runtime,
HotSpotVMConfig config,
TargetDescription target,
RegisterConfig regConfig) |
protected final HotSpotJVMCIRuntimeProvider runtime
public final HotSpotVMConfig config
protected final TargetDescription target
protected final RegisterConfig regConfig
public HotSpotCodeCacheProvider(HotSpotJVMCIRuntimeProvider runtime, HotSpotVMConfig config, TargetDescription target, RegisterConfig regConfig)
public String getMarkName(CompilationResult.Mark mark)
getMarkName
in interface CodeCacheProvider
public String getTargetName(CompilationResult.Call call)
getTargetName
in interface CodeCacheProvider
public RegisterConfig getRegisterConfig()
getRegisterConfig
in interface CodeCacheProvider
public int getMinimumOutgoingSize()
getMinimumOutgoingSize
in interface CodeCacheProvider
public InstalledCode logOrDump(InstalledCode installedCode, CompilationResult compResult)
public InstalledCode installMethod(HotSpotResolvedJavaMethod method, CompilationResult compResult, long jvmciEnv, boolean isDefault)
public InstalledCode addMethod(ResolvedJavaMethod method, CompilationResult compResult, SpeculationLog log, InstalledCode predefinedInstalledCode)
addMethod
in interface CodeCacheProvider
public InstalledCode setDefaultMethod(ResolvedJavaMethod method, CompilationResult compResult)
setDefaultMethod
in interface CodeCacheProvider
public HotSpotNmethod addExternalMethod(ResolvedJavaMethod method, CompilationResult compResult)
public boolean needsDataPatch(JavaConstant constant)
needsDataPatch
in interface CodeCacheProvider
public DataSection.Data createDataItem(Constant constant)
createDataItem
in interface CodeCacheProvider
public TargetDescription getTarget()
getTarget
in interface CodeCacheProvider
public String disassemble(InstalledCode code)
public SpeculationLog createSpeculationLog()
createSpeculationLog
in interface CodeCacheProvider