comparison graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/DefaultLIRKindTool.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 f91e40c4bb47
children 48c1ebd24120
comparison
equal deleted inserted replaced
21542:543957c1c6a6 21543:93c50cefb9e8
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.lir.gen; 23 package com.oracle.graal.lir.gen;
24 24
25 import com.oracle.graal.api.meta.*; 25 import com.oracle.graal.api.meta.*;
26 import com.oracle.graal.compiler.common.*;
27 import com.oracle.graal.compiler.common.spi.*; 26 import com.oracle.graal.compiler.common.spi.*;
27 import com.oracle.jvmci.common.*;
28 28
29 /** 29 /**
30 * Default implementation of {@link LIRKindTool}. Returns the normal Java kind for primitive types. 30 * Default implementation of {@link LIRKindTool}. Returns the normal Java kind for primitive types.
31 * Subclasses still have to implement {@link #getObjectKind}. 31 * Subclasses still have to implement {@link #getObjectKind}.
32 */ 32 */
56 case 32: 56 case 32:
57 return LIRKind.value(Kind.Float); 57 return LIRKind.value(Kind.Float);
58 case 64: 58 case 64:
59 return LIRKind.value(Kind.Double); 59 return LIRKind.value(Kind.Double);
60 default: 60 default:
61 throw GraalInternalError.shouldNotReachHere(); 61 throw JVMCIError.shouldNotReachHere();
62 } 62 }
63 } 63 }
64 64
65 public LIRKind getObjectKind() { 65 public LIRKind getObjectKind() {
66 return LIRKind.reference(Kind.Object); 66 return LIRKind.reference(Kind.Object);