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;
}
Aggregations