Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/ShortCircuitTest.java @ 14991:64dcb92ee75a
Truffle: Change signature for Truffle calls from (PackedFrame, Arguments) to (Object[]).
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 06 Apr 2014 17:46:24 +0200 |
parents | 25ecb47a6d0e |
children | 8eca9a00aaba |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/ShortCircuitTest.java Sat Apr 05 19:35:30 2014 +0200 +++ b/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/ShortCircuitTest.java Sun Apr 06 17:46:24 2014 +0200 @@ -32,7 +32,6 @@ import com.oracle.truffle.api.dsl.test.ShortCircuitTestFactory.SingleChildNodeFactory; import com.oracle.truffle.api.dsl.test.ShortCircuitTestFactory.VarArgsNodeFactory; import com.oracle.truffle.api.dsl.test.TypeSystemTest.ArgumentNode; -import com.oracle.truffle.api.dsl.test.TypeSystemTest.TestArguments; import com.oracle.truffle.api.dsl.test.TypeSystemTest.ValueNode; public class ShortCircuitTest { @@ -42,7 +41,7 @@ ArgumentNode arg0 = new ArgumentNode(0); CallTarget callTarget = TestHelper.createCallTarget(SingleChildNodeFactory.create(arg0)); SingleChildNode.needsChild = true; - assertEquals(42, callTarget.call(new TestArguments(42))); + assertEquals(42, callTarget.call(new Object[]{42})); assertEquals(1, arg0.getInvocationCount()); } @@ -51,7 +50,7 @@ ArgumentNode arg0 = new ArgumentNode(0); CallTarget callTarget = TestHelper.createCallTarget(SingleChildNodeFactory.create(arg0)); SingleChildNode.needsChild = false; - assertEquals(0, callTarget.call(new TestArguments(42))); + assertEquals(0, callTarget.call(new Object[]{42})); assertEquals(0, arg0.getInvocationCount()); } @@ -78,7 +77,7 @@ ArgumentNode arg0 = new ArgumentNode(0); ArgumentNode arg1 = new ArgumentNode(1); CallTarget callTarget = TestHelper.createCallTarget(DoubleChildNodeFactory.create(arg0, arg1)); - assertEquals(42, callTarget.call(new TestArguments(41, 42))); + assertEquals(42, callTarget.call(new Object[]{41, 42})); assertEquals(1, arg1.getInvocationCount()); } @@ -87,7 +86,7 @@ ArgumentNode arg0 = new ArgumentNode(0); ArgumentNode arg1 = new ArgumentNode(1); CallTarget callTarget = TestHelper.createCallTarget(DoubleChildNodeFactory.create(arg0, arg1)); - assertEquals(0, callTarget.call(new TestArguments(42, 42))); + assertEquals(0, callTarget.call(new Object[]{42, 42})); assertEquals(0, arg1.getInvocationCount()); } @@ -112,7 +111,7 @@ ArgumentNode arg0 = new ArgumentNode(0); ArgumentNode arg1 = new ArgumentNode(1); CallTarget callTarget = TestHelper.createCallTarget(VarArgsNodeFactory.create(new ValueNode[]{arg0, arg1})); - assertEquals(42, callTarget.call(new TestArguments(41, 42))); + assertEquals(42, callTarget.call(new Object[]{41, 42})); assertEquals(1, arg1.getInvocationCount()); } @@ -121,7 +120,7 @@ ArgumentNode arg0 = new ArgumentNode(0); ArgumentNode arg1 = new ArgumentNode(1); CallTarget callTarget = TestHelper.createCallTarget(VarArgsNodeFactory.create(new ValueNode[]{arg0, arg1})); - assertEquals(0, callTarget.call(new TestArguments(42, 42))); + assertEquals(0, callTarget.call(new Object[]{42, 42})); assertEquals(0, arg1.getInvocationCount()); }