Search in sources :

Example 1 with ExplodeLoopUntilReturnWithThrowNode

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

the class SimplePartialEvaluationTest method explodeLoopUntilReturnWithThrow.

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