Search in sources :

Example 1 with Warmup

use of com.oracle.truffle.tck.TruffleRunner.Warmup in project graal by oracle.

the class TruffleRunnerSnippets method warmupTest.

// END: TruffleRunnerSnippets#ExampleTest
// BEGIN: TruffleRunnerSnippets#warmupTest
@Test
@Warmup(5)
public void warmupTest(@Inject(TestExecuteNode.class) CallTarget target) {
    TruffleObject receiver = prepareArgumentValue();
    Object ret = target.call(receiver);
    Assert.assertEquals(expectedRetValue(), ret);
}
Also used : TruffleObject(com.oracle.truffle.api.interop.TruffleObject) TruffleObject(com.oracle.truffle.api.interop.TruffleObject) Warmup(com.oracle.truffle.tck.TruffleRunner.Warmup) Test(org.junit.Test)

Aggregations

TruffleObject (com.oracle.truffle.api.interop.TruffleObject)1 Warmup (com.oracle.truffle.tck.TruffleRunner.Warmup)1 Test (org.junit.Test)1