comparison graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/EdgesTest.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 a0a760b0fb5f
children 61d3cb8e1280
comparison
equal deleted inserted replaced
19402:a306749d3e86 19403:7e2c87dae93e
43 43
44 public class EdgesTest extends GraalCompilerTest { 44 public class EdgesTest extends GraalCompilerTest {
45 45
46 @NodeInfo 46 @NodeInfo
47 static final class TestNode extends Node { 47 static final class TestNode extends Node {
48 public static final NodeClass TYPE = NodeClass.get(TestNode.class);
48 @Input NodeInputList<ValueNode> itail; 49 @Input NodeInputList<ValueNode> itail;
49 @Input ConstantNode i1; 50 @Input ConstantNode i1;
50 @Input FloatingNode i2; 51 @Input FloatingNode i2;
51 52
52 public TestNode() { 53 public TestNode() {
54 super(TYPE);
53 } 55 }
54 56
55 } 57 }
56 58
57 StructuredGraph graph = new StructuredGraph(AllowAssumptions.NO); 59 StructuredGraph graph = new StructuredGraph(AllowAssumptions.NO);