comparison jvmci/jdk.vm.ci.hotspot.aarch64/src/jdk/vm/ci/hotspot/aarch64/AArch64HotSpotRegisterConfig.java @ 23392:b3a816d3b844

Backed out changeset: a920338dd4d4
author Doug Simon <doug.simon@oracle.com>
date Thu, 12 May 2016 11:06:49 +0200
parents a920338dd4d4
children 1d4ce2d19e52
comparison
equal deleted inserted replaced
23391:dd9f3badc978 23392:b3a816d3b844
62 import jdk.vm.ci.code.Register; 62 import jdk.vm.ci.code.Register;
63 import jdk.vm.ci.code.RegisterAttributes; 63 import jdk.vm.ci.code.RegisterAttributes;
64 import jdk.vm.ci.code.RegisterConfig; 64 import jdk.vm.ci.code.RegisterConfig;
65 import jdk.vm.ci.code.StackSlot; 65 import jdk.vm.ci.code.StackSlot;
66 import jdk.vm.ci.code.TargetDescription; 66 import jdk.vm.ci.code.TargetDescription;
67 import jdk.vm.ci.common.JVMCIError;
67 import jdk.vm.ci.hotspot.HotSpotCallingConventionType; 68 import jdk.vm.ci.hotspot.HotSpotCallingConventionType;
68 import jdk.vm.ci.hotspot.HotSpotVMConfig; 69 import jdk.vm.ci.hotspot.HotSpotVMConfig;
69 import jdk.vm.ci.meta.AllocatableValue; 70 import jdk.vm.ci.meta.AllocatableValue;
70 import jdk.vm.ci.meta.JavaKind; 71 import jdk.vm.ci.meta.JavaKind;
71 import jdk.vm.ci.meta.JavaType; 72 import jdk.vm.ci.meta.JavaType;
223 return hotspotType == HotSpotCallingConventionType.NativeCall ? nativeGeneralParameterRegisters : javaGeneralParameterRegisters; 224 return hotspotType == HotSpotCallingConventionType.NativeCall ? nativeGeneralParameterRegisters : javaGeneralParameterRegisters;
224 case Float: 225 case Float:
225 case Double: 226 case Double:
226 return simdParameterRegisters; 227 return simdParameterRegisters;
227 default: 228 default:
228 throw new InternalError("should not reach here"); 229 throw JVMCIError.shouldNotReachHere();
229 } 230 }
230 } 231 }
231 232
232 private CallingConvention callingConvention(Register[] generalParameterRegisters, JavaType returnType, JavaType[] parameterTypes, HotSpotCallingConventionType type, TargetDescription target) { 233 private CallingConvention callingConvention(Register[] generalParameterRegisters, JavaType returnType, JavaType[] parameterTypes, HotSpotCallingConventionType type, TargetDescription target) {
233 AllocatableValue[] locations = new AllocatableValue[parameterTypes.length]; 234 AllocatableValue[] locations = new AllocatableValue[parameterTypes.length];
258 Register register = simdParameterRegisters[currentSIMD++]; 259 Register register = simdParameterRegisters[currentSIMD++];
259 locations[i] = register.asValue(target.getLIRKind(kind)); 260 locations[i] = register.asValue(target.getLIRKind(kind));
260 } 261 }
261 break; 262 break;
262 default: 263 default:
263 throw new InternalError("should not reach here"); 264 throw JVMCIError.shouldNotReachHere();
264 } 265 }
265 266
266 if (locations[i] == null) { 267 if (locations[i] == null) {
267 LIRKind lirKind = target.getLIRKind(kind); 268 LIRKind lirKind = target.getLIRKind(kind);
268 locations[i] = StackSlot.get(lirKind, currentStackOffset, !type.out); 269 locations[i] = StackSlot.get(lirKind, currentStackOffset, !type.out);