Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.graal.truffle.test/sl/TestInliningRecursive2.sl @ 19789:e66a6f8d63e3
Truffle: implement recursive inlining and with a maximum depth of 4.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 11 Mar 2015 15:44:32 +0100 |
parents | 04d6bb76cfb3 |
children |
comparison
equal
deleted
inserted
replaced
19788:b3f566135b56 | 19789:e66a6f8d63e3 |
---|---|
27 } | 27 } |
28 | 28 |
29 function main() { | 29 function main() { |
30 callUntilOptimized(test); | 30 callUntilOptimized(test); |
31 assertTrue(isInlined(test, test, fib), "not inlined: test -> fib"); | 31 assertTrue(isInlined(test, test, fib), "not inlined: test -> fib"); |
32 | |
33 assertTrue(isInlined(test, fib, call), "not inlined: fib -> call"); | |
34 assertFalse(isInlined(test, call, fib), "inlined: call -> fib"); | |
35 assertTrue(isInlined(test, call, void), "inlined: call -> void"); | |
36 | |
37 } | 32 } |