comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotObjectConstant.java @ 18283:b2eb7302706c

added HotSpotObjectConstant.getNodeClass()
author Doug Simon <doug.simon@oracle.com>
date Thu, 06 Nov 2014 13:26:33 +0100
parents ecf3de366ecc
children 29ba2a7cdfcb
comparison
equal deleted inserted replaced
18282:ecf3de366ecc 18283:b2eb7302706c
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.hotspot.meta; 23 package com.oracle.graal.hotspot.meta;
24 24
25 import com.oracle.graal.api.meta.*; 25 import com.oracle.graal.api.meta.*;
26 import com.oracle.graal.graph.*;
26 27
27 /** 28 /**
28 * Represents a constant non-{@code null} object reference, within the compiler and across the 29 * Represents a constant non-{@code null} object reference, within the compiler and across the
29 * compiler/runtime interface. 30 * compiler/runtime interface.
30 */ 31 */
47 * Gets the {@linkplain System#identityHashCode(Object) identity} has code for the object 48 * Gets the {@linkplain System#identityHashCode(Object) identity} has code for the object
48 * represented by this constant. 49 * represented by this constant.
49 */ 50 */
50 @PureFunction 51 @PureFunction
51 int getIdentityHashCode(); 52 int getIdentityHashCode();
53
54 /**
55 * Gets the result of {@link NodeClass#get(Class)} for the {@link Class} object represented by
56 * this constant.
57 *
58 * @return {@code null} if this constant does not represent a {@link Class} object
59 */
60 JavaConstant getNodeClass();
52 } 61 }