Search in sources :

Example 1 with AArch64HotSpotRegisterConfig

use of jdk.vm.ci.hotspot.aarch64.AArch64HotSpotRegisterConfig in project graal by oracle.

the class AArch64HotSpotBackendFactory method createNativeABICallerSaveRegisters.

protected static Value[] createNativeABICallerSaveRegisters(@SuppressWarnings("unused") GraalHotSpotVMConfig config, RegisterConfig regConfig) {
    AArch64HotSpotRegisterConfig conf = (AArch64HotSpotRegisterConfig) regConfig;
    RegisterArray callerSavedRegisters = conf.getCallerSaveRegisters();
    int size = callerSavedRegisters.size();
    Value[] nativeABICallerSaveRegisters = new Value[size];
    for (int i = 0; i < size; i++) {
        nativeABICallerSaveRegisters[i] = callerSavedRegisters.get(i).asValue();
    }
    return nativeABICallerSaveRegisters;
}
Also used : Value(jdk.vm.ci.meta.Value) RegisterArray(jdk.vm.ci.code.RegisterArray) AArch64HotSpotRegisterConfig(jdk.vm.ci.hotspot.aarch64.AArch64HotSpotRegisterConfig)

Aggregations

RegisterArray (jdk.vm.ci.code.RegisterArray)1 AArch64HotSpotRegisterConfig (jdk.vm.ci.hotspot.aarch64.AArch64HotSpotRegisterConfig)1 Value (jdk.vm.ci.meta.Value)1