Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/HotSpotNodeClassSubstitutions.java @ 19403:61d3cb8e1280
Add generic parameter to NodeClass. Change Graph#getNodes(Class) to Graph#getNodes(NodeClass).
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 16 Feb 2015 17:47:43 +0100 |
parents | 7e2c87dae93e |
children |
comparison
equal
deleted
inserted
replaced
19402:a16f1bbe2965 | 19403:61d3cb8e1280 |
---|---|
44 * about node classes to replace itself with a constant value for a constant {@link Class} | 44 * about node classes to replace itself with a constant value for a constant {@link Class} |
45 * parameter. | 45 * parameter. |
46 */ | 46 */ |
47 @NodeInfo | 47 @NodeInfo |
48 public static final class NodeClassGetNode extends PureFunctionMacroNode { | 48 public static final class NodeClassGetNode extends PureFunctionMacroNode { |
49 public static final NodeClass TYPE = NodeClass.get(NodeClassGetNode.class); | 49 public static final NodeClass<NodeClassGetNode> TYPE = NodeClass.get(NodeClassGetNode.class); |
50 | 50 |
51 public NodeClassGetNode(Invoke invoke) { | 51 public NodeClassGetNode(Invoke invoke) { |
52 super(TYPE, invoke); | 52 super(TYPE, invoke); |
53 } | 53 } |
54 | 54 |
67 * {@link HotSpotNodeSubstitutions#getNodeClass(Node)} is not possible here because there is no | 67 * {@link HotSpotNodeSubstitutions#getNodeClass(Node)} is not possible here because there is no |
68 * guarantee that {@code c} is initialized (accessing a Class literal in Java is not a class | 68 * guarantee that {@code c} is initialized (accessing a Class literal in Java is not a class |
69 * initialization barrier). | 69 * initialization barrier). |
70 */ | 70 */ |
71 @MacroSubstitution(isStatic = true, forced = true, macro = NodeClassGetNode.class) | 71 @MacroSubstitution(isStatic = true, forced = true, macro = NodeClassGetNode.class) |
72 public static native NodeClass get(Class<?> c); | 72 public static native NodeClass<?> get(Class<?> c); |
73 } | 73 } |