Mercurial > hg > truffle
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/NarrowNode.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 | 8fc336a04d77 |
comparison
equal
deleted
inserted
replaced
19402:a16f1bbe2965 | 19403:61d3cb8e1280 |
---|---|
37 * The {@code NarrowNode} converts an integer to a narrower integer. | 37 * The {@code NarrowNode} converts an integer to a narrower integer. |
38 */ | 38 */ |
39 @NodeInfo | 39 @NodeInfo |
40 public final class NarrowNode extends IntegerConvertNode<Narrow, SignExtend> { | 40 public final class NarrowNode extends IntegerConvertNode<Narrow, SignExtend> { |
41 | 41 |
42 public static final NodeClass TYPE = NodeClass.get(NarrowNode.class); | 42 public static final NodeClass<NarrowNode> TYPE = NodeClass.get(NarrowNode.class); |
43 | 43 |
44 public NarrowNode(ValueNode input, int resultBits) { | 44 public NarrowNode(ValueNode input, int resultBits) { |
45 this(input, PrimitiveStamp.getBits(input.stamp()), resultBits); | 45 this(input, PrimitiveStamp.getBits(input.stamp()), resultBits); |
46 assert 0 < resultBits && resultBits <= PrimitiveStamp.getBits(input.stamp()); | 46 assert 0 < resultBits && resultBits <= PrimitiveStamp.getBits(input.stamp()); |
47 } | 47 } |