Search in sources :

Example 1 with LambdaTestNode

use of org.graalvm.compiler.truffle.test.nodes.LambdaTestNode in project graal by oracle.

the class SimplePartialEvaluationTest method lambda.

@Test
public void lambda() {
    FrameDescriptor fd = new FrameDescriptor();
    AbstractTestNode result = new LambdaTestNode();
    assertPartialEvalEquals("constant42", new RootTestNode(fd, "constantValue", result));
}
Also used : FrameDescriptor(com.oracle.truffle.api.frame.FrameDescriptor) LambdaTestNode(org.graalvm.compiler.truffle.test.nodes.LambdaTestNode) AbstractTestNode(org.graalvm.compiler.truffle.test.nodes.AbstractTestNode) RootTestNode(org.graalvm.compiler.truffle.test.nodes.RootTestNode) Test(org.junit.Test)

Aggregations

FrameDescriptor (com.oracle.truffle.api.frame.FrameDescriptor)1 AbstractTestNode (org.graalvm.compiler.truffle.test.nodes.AbstractTestNode)1 LambdaTestNode (org.graalvm.compiler.truffle.test.nodes.LambdaTestNode)1 RootTestNode (org.graalvm.compiler.truffle.test.nodes.RootTestNode)1 Test (org.junit.Test)1