Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/BuiltinTest.java @ 9223:5f7f0d3e3638
Updated codegen tests to new codegen API.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Sat, 20 Apr 2013 12:17:47 +0200 |
parents | 6ef9fc7375c7 |
children | e27f125147d6 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/BuiltinTest.java Sat Apr 20 12:17:27 2013 +0200 +++ b/graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/BuiltinTest.java Sat Apr 20 12:17:47 2013 +0200 @@ -32,7 +32,6 @@ import com.oracle.truffle.api.codegen.test.BuiltinTestFactory.StrFactory.StrConcatFactory; import com.oracle.truffle.api.codegen.test.BuiltinTestFactory.StrFactory.StrLengthFactory; import com.oracle.truffle.api.codegen.test.BuiltinTestFactory.StrFactory.StrSubstrFactory; -import com.oracle.truffle.api.codegen.test.TypeSystemTest.ChildrenNode; import com.oracle.truffle.api.codegen.test.TypeSystemTest.TestRootNode; import com.oracle.truffle.api.codegen.test.TypeSystemTest.ValueNode; @@ -97,7 +96,7 @@ assertSame(context, executeWith(node)); } - @NodeClass(BuiltinNode.class) + @NodeClass(value = BuiltinNode.class, splitByMethodName = true) static class Str { private final String internal; @@ -162,23 +161,22 @@ } } - abstract static class BuiltinNode extends ChildrenNode { + @NodeChild(value = "children", type = ValueNode[].class) + abstract static class BuiltinNode extends ValueNode { protected final Context context; public BuiltinNode(BuiltinNode node) { - this(node.context, node.children); + this(node.context); } - public BuiltinNode(Context context, ValueNode... children) { - super(children); + public BuiltinNode(Context context) { this.context = context; } public Context getContext() { return context; } - } static class Context {