comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerBelowNode.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 03adf6499fee
children 61d3cb8e1280
comparison
equal deleted inserted replaced
19395:a306749d3e86 19396:7e2c87dae93e
1 /* 1 /*
2 * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2011, 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.nodes.calc; 23 package com.oracle.graal.nodes.calc;
24 24
25 import com.oracle.graal.api.meta.*; 25 import com.oracle.graal.api.meta.*;
26 import com.oracle.graal.compiler.common.calc.*; 26 import com.oracle.graal.compiler.common.calc.*;
27 import com.oracle.graal.compiler.common.type.*; 27 import com.oracle.graal.compiler.common.type.*;
28 import com.oracle.graal.graph.*;
28 import com.oracle.graal.graph.spi.*; 29 import com.oracle.graal.graph.spi.*;
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.util.*; 32 import com.oracle.graal.nodes.util.*;
32 33
33 @NodeInfo(shortName = "|<|") 34 @NodeInfo(shortName = "|<|")
34 public class IntegerBelowNode extends CompareNode { 35 public final class IntegerBelowNode extends CompareNode {
36 public static final NodeClass TYPE = NodeClass.get(IntegerBelowNode.class);
35 37
36 public IntegerBelowNode(ValueNode x, ValueNode y) { 38 public IntegerBelowNode(ValueNode x, ValueNode y) {
37 super(Condition.BT, false, x, y); 39 super(TYPE, Condition.BT, false, x, y);
38 assert x.stamp() instanceof IntegerStamp; 40 assert x.stamp() instanceof IntegerStamp;
39 assert y.stamp() instanceof IntegerStamp; 41 assert y.stamp() instanceof IntegerStamp;
40 } 42 }
41 43
42 public static LogicNode create(ValueNode x, ValueNode y, ConstantReflectionProvider constantReflection) { 44 public static LogicNode create(ValueNode x, ValueNode y, ConstantReflectionProvider constantReflection) {