Mercurial > hg > graal-compiler
comparison graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotResolvedObjectTypeImpl.java @ 21789:5b9adb645217
fixed remnants of "graal" names in JVMCI code
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 08 Jun 2015 20:24:51 +0200 |
parents | 48c1ebd24120 |
children |
comparison
equal
deleted
inserted
replaced
21788:c1610658bba0 | 21789:5b9adb645217 |
---|---|
56 private HotSpotResolvedObjectTypeImpl[] interfaces; | 56 private HotSpotResolvedObjectTypeImpl[] interfaces; |
57 private ConstantPool constantPool; | 57 private ConstantPool constantPool; |
58 private HotSpotResolvedObjectType arrayOfType; | 58 private HotSpotResolvedObjectType arrayOfType; |
59 | 59 |
60 /** | 60 /** |
61 * Gets the Graal mirror for a {@link Class} object. | 61 * Gets the JVMCI mirror for a {@link Class} object. |
62 * | 62 * |
63 * @return the {@link HotSpotResolvedJavaType} corresponding to {@code javaClass} | 63 * @return the {@link HotSpotResolvedJavaType} corresponding to {@code javaClass} |
64 */ | 64 */ |
65 public static HotSpotResolvedObjectTypeImpl fromObjectClass(Class<?> javaClass) { | 65 public static HotSpotResolvedObjectTypeImpl fromObjectClass(Class<?> javaClass) { |
66 return (HotSpotResolvedObjectTypeImpl) runtime().fromClass(javaClass); | 66 return (HotSpotResolvedObjectTypeImpl) runtime().fromClass(javaClass); |
67 } | 67 } |
68 | 68 |
69 /** | 69 /** |
70 * Gets the Graal mirror from a HotSpot metaspace Klass native object. | 70 * Gets the JVMCI mirror from a HotSpot metaspace Klass native object. |
71 * | 71 * |
72 * @param metaspaceKlass a metaspace Klass object | 72 * @param metaspaceKlass a metaspace Klass object |
73 * @return the {@link ResolvedJavaType} corresponding to {@code metaspaceKlass} | 73 * @return the {@link ResolvedJavaType} corresponding to {@code metaspaceKlass} |
74 */ | 74 */ |
75 public static HotSpotResolvedObjectTypeImpl fromMetaspaceKlass(long metaspaceKlass) { | 75 public static HotSpotResolvedObjectTypeImpl fromMetaspaceKlass(long metaspaceKlass) { |
78 assert javaClass != null; | 78 assert javaClass != null; |
79 return fromObjectClass(javaClass); | 79 return fromObjectClass(javaClass); |
80 } | 80 } |
81 | 81 |
82 /** | 82 /** |
83 * Creates the Graal mirror for a {@link Class} object. | 83 * Creates the JVMCI mirror for a {@link Class} object. |
84 * | 84 * |
85 * <p> | 85 * <p> |
86 * <b>NOTE</b>: Creating an instance of this class does not install the mirror for the | 86 * <b>NOTE</b>: Creating an instance of this class does not install the mirror for the |
87 * {@link Class} type. Use {@link #fromObjectClass(Class)} or {@link #fromMetaspaceKlass(long)} | 87 * {@link Class} type. Use {@link #fromObjectClass(Class)} or {@link #fromMetaspaceKlass(long)} |
88 * instead. | 88 * instead. |