Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/AddNode.java @ 19529:8fc336a04d77
Create TYPE fields for LIRInstruction and CompositeValue. Renaming NodeClass#get to NodeClass#create.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 20 Feb 2015 22:22:55 +0100 |
parents | 880717e44675 |
children | f7c6b33489c9 |
comparison
equal
deleted
inserted
replaced
19528:35481bcb5882 | 19529:8fc336a04d77 |
---|---|
34 import com.oracle.graal.nodes.spi.*; | 34 import com.oracle.graal.nodes.spi.*; |
35 | 35 |
36 @NodeInfo(shortName = "+") | 36 @NodeInfo(shortName = "+") |
37 public class AddNode extends BinaryArithmeticNode<Add> implements NarrowableArithmeticNode { | 37 public class AddNode extends BinaryArithmeticNode<Add> implements NarrowableArithmeticNode { |
38 | 38 |
39 public static final NodeClass<AddNode> TYPE = NodeClass.get(AddNode.class); | 39 public static final NodeClass<AddNode> TYPE = NodeClass.create(AddNode.class); |
40 | 40 |
41 public AddNode(ValueNode x, ValueNode y) { | 41 public AddNode(ValueNode x, ValueNode y) { |
42 this(TYPE, x, y); | 42 this(TYPE, x, y); |
43 } | 43 } |
44 | 44 |