Top Methods
jdk.vm.ci.hotspot

public Interface HotSpotJVMCIBackendFactory

Known Direct Implementers
jdk.vm.ci.hotspot.aarch64.AArch64HotSpotJVMCIBackendFactory, jdk.vm.ci.hotspot.amd64.AMD64HotSpotJVMCIBackendFactory, jdk.vm.ci.hotspot.riscv64.RISCV64HotSpotJVMCIBackendFactory
Imports
java.util.ArrayList, .EnumSet, .List, .Map, .Map.Entry, jdk.vm.ci.common.JVMCIError, jdk.vm.ci.runtime.JVMCIBackend

Method Summary

Modifier and TypeMethod and Description
public static <
CPU feature enum type
CPUFeatureType extends Enum<CPUFeatureType>
>
EnumSet<CPUFeatureType>

Returns:

the set of converted values
convertFeatures
(Class<CPUFeatureType>
the class of CPUFeatureType
enumType
,
Map<String, Long>
VM constants. Each entry whose key starts with "VM_Version::CPU_" specifies a CPU feature and its value is a mask for a bit in features
constants
,
long
bits specifying CPU features
features
,
Map<String, String>
maps from VM feature names to enum constant names where the two differ
renaming
)

Converts a bit mask of CPU features to enum constants.

public JVMCIBackend
public String
getArchitecture()

Gets the CPU architecture of this backend.

Method Detail

convertFeaturesback to summary
public static <CPUFeatureType extends Enum<CPUFeatureType>> EnumSet<CPUFeatureType> convertFeatures(Class<CPUFeatureType> enumType, Map<String, Long> constants, long features, Map<String, String> renaming)

Converts a bit mask of CPU features to enum constants.

Parameters
<CPUFeatureType>
CPU feature enum type
enumType:Class<CPUFeatureType>

the class of CPUFeatureType

constants:Map<String, Long>

VM constants. Each entry whose key starts with "VM_Version::CPU_" specifies a CPU feature and its value is a mask for a bit in features

features:long

bits specifying CPU features

renaming:Map<String, String>

maps from VM feature names to enum constant names where the two differ

Returns:EnumSet<CPUFeatureType>

the set of converted values

Exceptions
IllegalArgumentException:
if any VM CPU feature constant cannot be converted to an enum value
createJVMCIBackendback to summary
public JVMCIBackend createJVMCIBackend(HotSpotJVMCIRuntime runtime, JVMCIBackend host)
getArchitectureback to summary
public String getArchitecture()

Gets the CPU architecture of this backend.