comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/LoweredCompareAndSwapNode.java @ 19410: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
19409:a16f1bbe2965 19410:61d3cb8e1280
34 * Represents the lowered version of an atomic compare-and-swap operation{@code CompareAndSwapNode}. 34 * Represents the lowered version of an atomic compare-and-swap operation{@code CompareAndSwapNode}.
35 */ 35 */
36 @NodeInfo(allowedUsageTypes = {InputType.Value, InputType.Memory}) 36 @NodeInfo(allowedUsageTypes = {InputType.Value, InputType.Memory})
37 public final class LoweredCompareAndSwapNode extends FixedAccessNode implements StateSplit, LIRLowerable, MemoryCheckpoint.Single { 37 public final class LoweredCompareAndSwapNode extends FixedAccessNode implements StateSplit, LIRLowerable, MemoryCheckpoint.Single {
38 38
39 public static final NodeClass TYPE = NodeClass.get(LoweredCompareAndSwapNode.class); 39 public static final NodeClass<LoweredCompareAndSwapNode> TYPE = NodeClass.get(LoweredCompareAndSwapNode.class);
40 @Input ValueNode expectedValue; 40 @Input ValueNode expectedValue;
41 @Input ValueNode newValue; 41 @Input ValueNode newValue;
42 @OptionalInput(InputType.State) FrameState stateAfter; 42 @OptionalInput(InputType.State) FrameState stateAfter;
43 43
44 public FrameState stateAfter() { 44 public FrameState stateAfter() {