Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/SystemIdentityHashCodeNode.java @ 19396:7e2c87dae93e
Create static final NodeClass field named TYPE in Node subclasses.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 16 Feb 2015 15:43:03 +0100 |
parents | f57d86eb036f |
children | 61d3cb8e1280 |
comparison
equal
deleted
inserted
replaced
19395:a306749d3e86 | 19396:7e2c87dae93e |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
23 package com.oracle.graal.hotspot.replacements; | 23 package com.oracle.graal.hotspot.replacements; |
24 | 24 |
25 import static com.oracle.graal.compiler.common.GraalOptions.*; | 25 import static com.oracle.graal.compiler.common.GraalOptions.*; |
26 | 26 |
27 import com.oracle.graal.api.meta.*; | 27 import com.oracle.graal.api.meta.*; |
28 import com.oracle.graal.graph.*; | |
28 import com.oracle.graal.hotspot.meta.*; | 29 import com.oracle.graal.hotspot.meta.*; |
29 import com.oracle.graal.nodeinfo.*; | 30 import com.oracle.graal.nodeinfo.*; |
30 import com.oracle.graal.nodes.*; | 31 import com.oracle.graal.nodes.*; |
31 import com.oracle.graal.replacements.nodes.*; | 32 import com.oracle.graal.replacements.nodes.*; |
32 | 33 |
33 @NodeInfo | 34 @NodeInfo |
34 public class SystemIdentityHashCodeNode extends PureFunctionMacroNode { | 35 public final class SystemIdentityHashCodeNode extends PureFunctionMacroNode { |
36 | |
37 public static final NodeClass TYPE = NodeClass.get(SystemIdentityHashCodeNode.class); | |
35 | 38 |
36 public SystemIdentityHashCodeNode(Invoke invoke) { | 39 public SystemIdentityHashCodeNode(Invoke invoke) { |
37 super(invoke); | 40 super(TYPE, invoke); |
38 } | 41 } |
39 | 42 |
40 @Override | 43 @Override |
41 protected JavaConstant evaluate(JavaConstant param, MetaAccessProvider metaAccess) { | 44 protected JavaConstant evaluate(JavaConstant param, MetaAccessProvider metaAccess) { |
42 if (ImmutableCode.getValue() || param.isNull()) { | 45 if (ImmutableCode.getValue() || param.isNull()) { |