Mercurial > hg > truffle
comparison graal/com.oracle.graal.truffle.test/sl/TestInliningRecursive1.sl @ 19773: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
19772:b3f566135b56 | 19773:e66a6f8d63e3 |
---|---|
18 return sum; | 18 return sum; |
19 } | 19 } |
20 | 20 |
21 function main() { | 21 function main() { |
22 callUntilOptimized(test); | 22 callUntilOptimized(test); |
23 assertTrue(isInlined(test, test, fib), "fib is not inlined"); | |
24 assertFalse(isInlined(test, fib, fib), "fib -> fib is not inlined"); | |
25 } | 23 } |