< prev index next >

src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot.sparc/src/jdk/vm/ci/hotspot/sparc/SPARCHotSpotRegisterConfig.java

Print this page

        

*** 76,86 **** import jdk.vm.ci.code.Register; import jdk.vm.ci.code.RegisterAttributes; import jdk.vm.ci.code.RegisterConfig; import jdk.vm.ci.code.StackSlot; import jdk.vm.ci.code.TargetDescription; - import jdk.vm.ci.common.JVMCIError; import jdk.vm.ci.hotspot.HotSpotCallingConventionType; import jdk.vm.ci.hotspot.HotSpotVMConfig; import jdk.vm.ci.meta.AllocatableValue; import jdk.vm.ci.meta.JavaKind; import jdk.vm.ci.meta.JavaType; --- 76,85 ----
*** 209,219 **** return callingConvention(cpuCallerParameterRegisters, returnType, parameterTypes, hotspotType, target); } if (type == HotSpotCallingConventionType.JavaCallee) { return callingConvention(cpuCalleeParameterRegisters, returnType, parameterTypes, hotspotType, target); } ! throw JVMCIError.shouldNotReachHere(); } @Override public Register[] getCallingConventionRegisters(Type type, JavaKind kind) { HotSpotCallingConventionType hotspotType = (HotSpotCallingConventionType) type; --- 208,218 ---- return callingConvention(cpuCallerParameterRegisters, returnType, parameterTypes, hotspotType, target); } if (type == HotSpotCallingConventionType.JavaCallee) { return callingConvention(cpuCalleeParameterRegisters, returnType, parameterTypes, hotspotType, target); } ! throw new InternalError("should not reach here"); } @Override public Register[] getCallingConventionRegisters(Type type, JavaKind kind) { HotSpotCallingConventionType hotspotType = (HotSpotCallingConventionType) type;
*** 228,238 **** return hotspotType == HotSpotCallingConventionType.JavaCallee ? cpuCalleeParameterRegisters : cpuCallerParameterRegisters; case Double: case Float: return fpuFloatParameterRegisters; default: ! throw JVMCIError.shouldNotReachHere("Unknown JavaKind " + kind); } } private CallingConvention callingConvention(Register[] generalParameterRegisters, JavaType returnType, JavaType[] parameterTypes, HotSpotCallingConventionType type, TargetDescription target) { AllocatableValue[] locations = new AllocatableValue[parameterTypes.length]; --- 227,237 ---- return hotspotType == HotSpotCallingConventionType.JavaCallee ? cpuCalleeParameterRegisters : cpuCallerParameterRegisters; case Double: case Float: return fpuFloatParameterRegisters; default: ! throw new InternalError("Unknown JavaKind " + kind); } } private CallingConvention callingConvention(Register[] generalParameterRegisters, JavaType returnType, JavaType[] parameterTypes, HotSpotCallingConventionType type, TargetDescription target) { AllocatableValue[] locations = new AllocatableValue[parameterTypes.length];
*** 273,283 **** Register register = fpuFloatParameterRegisters[currentFloating++]; locations[i] = register.asValue(target.getLIRKind(kind)); } break; default: ! throw JVMCIError.shouldNotReachHere(); } if (locations[i] == null) { LIRKind lirKind = target.getLIRKind(kind); // Stack slot is always aligned to its size in bytes but minimum wordsize --- 272,282 ---- Register register = fpuFloatParameterRegisters[currentFloating++]; locations[i] = register.asValue(target.getLIRKind(kind)); } break; default: ! throw new InternalError("should not reach here"); } if (locations[i] == null) { LIRKind lirKind = target.getLIRKind(kind); // Stack slot is always aligned to its size in bytes but minimum wordsize
< prev index next >