public interface HotSpotJVMCIRuntimeProvider extends JVMCIRuntime
Modifier and Type | Method and Description |
---|---|
ResolvedJavaType |
fromClass(Class<?> clazz)
Gets the JVMCI mirror for a
Class object. |
default int |
getArrayBaseOffset(Kind kind)
The offset from the origin of an array to the first element.
|
default int |
getArrayIndexScale(Kind kind)
The scale used for the index when accessing elements of an array of this kind.
|
CompilerToVM |
getCompilerToVM() |
HotSpotVMConfig |
getConfig() |
JavaType |
lookupType(String name,
HotSpotResolvedObjectType accessingType,
boolean resolve)
Converts a name to a Java type.
|
getHostJVMCIBackend, getJVMCIBackend
HotSpotVMConfig getConfig()
CompilerToVM getCompilerToVM()
JavaType lookupType(String name, HotSpotResolvedObjectType accessingType, boolean resolve)
name
to a
ResolvedJavaType
.name
- a well formed Java type in internal formataccessingType
- the context of resolution which must be non-nullresolve
- specifies whether resolution failure results in an unresolved type being
return or a LinkageError
being thrownname
which is guaranteed to be of type
ResolvedJavaType
if resolve == true
LinkageError
- if resolve == true
and the resolution failedNullPointerException
- if accessingClass
is null
ResolvedJavaType fromClass(Class<?> clazz)
Class
object.ResolvedJavaType
corresponding to javaClass
default int getArrayBaseOffset(Kind kind)
default int getArrayIndexScale(Kind kind)