Search in sources :

Example 1 with ReadOnlyArrayListConstantNode

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

the class ReadOnlyArrayListPartialEvaluationTest method constantValue.

@Test
public void constantValue() {
    FrameDescriptor fd = new FrameDescriptor();
    AbstractTestNode result = new ReadOnlyArrayListConstantNode(42);
    assertPartialEvalEquals("constant42", new RootTestNode(fd, "constantValue", result));
}
Also used : FrameDescriptor(com.oracle.truffle.api.frame.FrameDescriptor) ReadOnlyArrayListConstantNode(org.graalvm.compiler.truffle.test.nodes.ReadOnlyArrayListConstantNode) 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 ReadOnlyArrayListConstantNode (org.graalvm.compiler.truffle.test.nodes.ReadOnlyArrayListConstantNode)1 RootTestNode (org.graalvm.compiler.truffle.test.nodes.RootTestNode)1 Test (org.junit.Test)1