comparison graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/NodePosIteratorTest.java @ 18845:f57d86eb036f

removed Node factory methods
author Doug Simon <doug.simon@oracle.com>
date Mon, 12 Jan 2015 20:39:04 +0100
parents 45b45f902bed
children ec0733b5a90a
comparison
equal deleted inserted replaced
18843:f2261069ba99 18845:f57d86eb036f
39 39
40 @Input NodeInputList<ValueNode> itail; 40 @Input NodeInputList<ValueNode> itail;
41 @Input ConstantNode i1; 41 @Input ConstantNode i1;
42 @Input FloatingNode i2; 42 @Input FloatingNode i2;
43 43
44 public static TestNode create() { 44 public TestNode() {
45 return new TestNode();
46 } 45 }
47 46
48 protected TestNode() {
49 // TODO Auto-generated constructor stub
50 }
51 } 47 }
52 48
53 @Test 49 @Test
54 public void testInputs() { 50 public void testInputs() {
55 TestNode n = TestNode.create(); 51 TestNode n = new TestNode();
56 52
57 ConstantNode i1 = ConstantNode.forInt(1); 53 ConstantNode i1 = ConstantNode.forInt(1);
58 ConstantNode i2 = ConstantNode.forDouble(1.0d); 54 ConstantNode i2 = ConstantNode.forDouble(1.0d);
59 ConstantNode i3 = ConstantNode.forInt(4); 55 ConstantNode i3 = ConstantNode.forInt(4);
60 ConstantNode i4 = ConstantNode.forInt(14); 56 ConstantNode i4 = ConstantNode.forInt(14);
137 Assert.assertFalse(iterator.hasNext()); 133 Assert.assertFalse(iterator.hasNext());
138 } 134 }
139 135
140 @Test 136 @Test
141 public void testSuccessors() { 137 public void testSuccessors() {
142 TestNode n = TestNode.create(); 138 TestNode n = new TestNode();
143 EndNode s1 = EndNode.create(); 139 EndNode s1 = new EndNode();
144 EndNode s2 = EndNode.create(); 140 EndNode s2 = new EndNode();
145 EndNode s3 = EndNode.create(); 141 EndNode s3 = new EndNode();
146 EndNode s4 = EndNode.create(); 142 EndNode s4 = new EndNode();
147 n.s1 = s1; 143 n.s1 = s1;
148 n.s2 = s2; 144 n.s2 = s2;
149 n.stail = new NodeSuccessorList<>(n, new Node[]{s3, s4}); 145 n.stail = new NodeSuccessorList<>(n, new Node[]{s3, s4});
150 146
151 NodeClassIterable successors = n.successors(); 147 NodeClassIterable successors = n.successors();