view graal/com.oracle.graal.truffle.test/sl/TestTruffleBoundary01.sl @ 21417:05b26a1cf85f

Unit test for boxing nodes.
author Roland Schatz <roland.schatz@oracle.com>
date Mon, 18 May 2015 11:38:35 +0200
parents 0e7455cb3004
children
line wrap: on
line source

/* 
 * This test verifies that CallTargets cannot exceed the TruffleInliningMaxCallerSize limit when inlining.
 */

function test1() {
    testTruffleBoundary01();
}
function main() {
    callUntilOptimized(test1);
    assertTrue(isOptimized(test1), "inlinableFunction must be compiled properly");
}