comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/FrameTest.java @ 11903:df1d665ca846

Truffle; remove uses of Node() constructor in test code
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Sun, 06 Oct 2013 19:53:00 -0700
parents cd1a1d92b3e3
children 139b84d713bc
comparison
equal deleted inserted replaced
11901:61767ccd4600 11903:df1d665ca846
1 /* 1 /*
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2012, 2013, 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.
75 75
76 @Child TestChildNode left; 76 @Child TestChildNode left;
77 @Child TestChildNode right; 77 @Child TestChildNode right;
78 78
79 public TestRootNode(TestChildNode left, TestChildNode right) { 79 public TestRootNode(TestChildNode left, TestChildNode right) {
80 super(null);
80 this.left = adoptChild(left); 81 this.left = adoptChild(left);
81 this.right = adoptChild(right); 82 this.right = adoptChild(right);
82 } 83 }
83 84
84 @Override 85 @Override
86 return left.execute(frame) + right.execute(frame); 87 return left.execute(frame) + right.execute(frame);
87 } 88 }
88 } 89 }
89 90
90 abstract class TestChildNode extends Node { 91 abstract class TestChildNode extends Node {
92
93 public TestChildNode() {
94 super(null);
95 }
91 96
92 abstract int execute(VirtualFrame frame); 97 abstract int execute(VirtualFrame frame);
93 } 98 }
94 99
95 abstract class FrameSlotNode extends TestChildNode { 100 abstract class FrameSlotNode extends TestChildNode {