comparison graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/nodes/DirectReadNode.java @ 19403: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
19402:a306749d3e86 19403:7e2c87dae93e
24 24
25 import static com.oracle.graal.compiler.common.UnsafeAccess.*; 25 import static com.oracle.graal.compiler.common.UnsafeAccess.*;
26 26
27 import com.oracle.graal.api.meta.*; 27 import com.oracle.graal.api.meta.*;
28 import com.oracle.graal.compiler.common.type.*; 28 import com.oracle.graal.compiler.common.type.*;
29 import com.oracle.graal.graph.*;
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.nodes.extended.*; 32 import com.oracle.graal.nodes.extended.*;
32 import com.oracle.graal.nodes.spi.*; 33 import com.oracle.graal.nodes.spi.*;
33 34
34 /** 35 /**
35 * A special purpose store node that differs from {@link UnsafeStoreNode} in that it is not a 36 * A special purpose store node that differs from {@link UnsafeStoreNode} in that it is not a
36 * {@link StateSplit} and takes a computed address instead of an object. 37 * {@link StateSplit} and takes a computed address instead of an object.
37 */ 38 */
38 @NodeInfo 39 @NodeInfo
39 public class DirectReadNode extends FixedWithNextNode implements LIRLowerable { 40 public final class DirectReadNode extends FixedWithNextNode implements LIRLowerable {
40 41
42 public static final NodeClass TYPE = NodeClass.get(DirectReadNode.class);
41 @Input protected ValueNode address; 43 @Input protected ValueNode address;
42 protected final Kind readKind; 44 protected final Kind readKind;
43 45
44 public DirectReadNode(ValueNode address, Kind readKind) { 46 public DirectReadNode(ValueNode address, Kind readKind) {
45 super(StampFactory.forKind(readKind.getStackKind())); 47 super(TYPE, StampFactory.forKind(readKind.getStackKind()));
46 this.address = address; 48 this.address = address;
47 this.readKind = readKind; 49 this.readKind = readKind;
48 } 50 }
49 51
50 protected ValueNode getAddress() { 52 protected ValueNode getAddress() {