comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiRegisterConfig.java @ 5503:438ab53efdd0

Renaming CiKind => RiKind.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 07 Jun 2012 17:08:33 +0200
parents aaac4894175c
children
comparison
equal deleted inserted replaced
5502:13aee5aba8cc 5503:438ab53efdd0
165 this.registersRoleMap = src.registersRoleMap; 165 this.registersRoleMap = src.registersRoleMap;
166 this.minRole = src.minRole; 166 this.minRole = src.minRole;
167 System.arraycopy(src.stackArg0Offsets, 0, stackArg0Offsets, 0, stackArg0Offsets.length); 167 System.arraycopy(src.stackArg0Offsets, 0, stackArg0Offsets, 0, stackArg0Offsets.length);
168 } 168 }
169 169
170 public CiRegister getReturnRegister(CiKind kind) { 170 public CiRegister getReturnRegister(RiKind kind) {
171 if (kind.isDouble() || kind.isFloat()) { 171 if (kind.isDouble() || kind.isFloat()) {
172 return floatingPointReturn; 172 return floatingPointReturn;
173 } 173 }
174 return integralReturn; 174 return integralReturn;
175 } 175 }
186 * {@inheritDoc} 186 * {@inheritDoc}
187 * 187 *
188 * This implementation assigns all available registers to parameters before assigning 188 * This implementation assigns all available registers to parameters before assigning
189 * any stack slots to parameters. 189 * any stack slots to parameters.
190 */ 190 */
191 public CiCallingConvention getCallingConvention(Type type, CiKind[] parameters, CiTarget target, boolean stackOnly) { 191 public CiCallingConvention getCallingConvention(Type type, RiKind[] parameters, CiTarget target, boolean stackOnly) {
192 CiValue[] locations = new CiValue[parameters.length]; 192 CiValue[] locations = new CiValue[parameters.length];
193 193
194 int currentGeneral = 0; 194 int currentGeneral = 0;
195 int currentXMM = 0; 195 int currentXMM = 0;
196 int currentStackOffset = stackArg0Offsets[type.ordinal()]; 196 int currentStackOffset = stackArg0Offsets[type.ordinal()];
197 197
198 for (int i = 0; i < parameters.length; i++) { 198 for (int i = 0; i < parameters.length; i++) {
199 final CiKind kind = parameters[i]; 199 final RiKind kind = parameters[i];
200 200
201 switch (kind) { 201 switch (kind) {
202 case Byte: 202 case Byte:
203 case Boolean: 203 case Boolean:
204 case Short: 204 case Short: