Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotRegisterConfig.java @ 21543:93c50cefb9e8
moved GraalInternalError to com.oracle.jvmci.common and renamed it to JVMCIError (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 25 May 2015 23:30:34 +0200 |
parents | 1da7aef31a08 |
children | 5324104ac4f3 |
comparison
equal
deleted
inserted
replaced
21542:543957c1c6a6 | 21543:93c50cefb9e8 |
---|---|
31 import com.oracle.graal.api.code.*; | 31 import com.oracle.graal.api.code.*; |
32 import com.oracle.graal.api.code.CallingConvention.Type; | 32 import com.oracle.graal.api.code.CallingConvention.Type; |
33 import com.oracle.graal.api.meta.*; | 33 import com.oracle.graal.api.meta.*; |
34 import com.oracle.graal.compiler.common.*; | 34 import com.oracle.graal.compiler.common.*; |
35 import com.oracle.graal.hotspot.jvmci.*; | 35 import com.oracle.graal.hotspot.jvmci.*; |
36 import com.oracle.jvmci.common.*; | |
36 | 37 |
37 public class AMD64HotSpotRegisterConfig implements RegisterConfig { | 38 public class AMD64HotSpotRegisterConfig implements RegisterConfig { |
38 | 39 |
39 private final Architecture architecture; | 40 private final Architecture architecture; |
40 | 41 |
205 Register register = xmmParameterRegisters[currentXMM++]; | 206 Register register = xmmParameterRegisters[currentXMM++]; |
206 locations[i] = register.asValue(target.getLIRKind(kind)); | 207 locations[i] = register.asValue(target.getLIRKind(kind)); |
207 } | 208 } |
208 break; | 209 break; |
209 default: | 210 default: |
210 throw GraalInternalError.shouldNotReachHere(); | 211 throw JVMCIError.shouldNotReachHere(); |
211 } | 212 } |
212 | 213 |
213 if (locations[i] == null) { | 214 if (locations[i] == null) { |
214 locations[i] = StackSlot.get(target.getLIRKind(kind.getStackKind()), currentStackOffset, !type.out); | 215 locations[i] = StackSlot.get(target.getLIRKind(kind.getStackKind()), currentStackOffset, !type.out); |
215 currentStackOffset += Math.max(target.getSizeInBytes(kind), target.wordSize); | 216 currentStackOffset += Math.max(target.getSizeInBytes(kind), target.wordSize); |