Mercurial > hg > truffle
comparison graal/com.oracle.graal.truffle.test/sl/TestInliningRecursive1.sl @ 17405:04d6bb76cfb3
Truffle: update callUntilOptimized to wait for the compilation and call it once optimized.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 09 Oct 2014 17:25:59 +0200 |
parents | f735aa886cf6 |
children | e66a6f8d63e3 |
comparison
equal
deleted
inserted
replaced
17404:b725292b8a11 | 17405:04d6bb76cfb3 |
---|---|
17 } | 17 } |
18 return sum; | 18 return sum; |
19 } | 19 } |
20 | 20 |
21 function main() { | 21 function main() { |
22 waitForOptimization(callUntilOptimized(test)); | 22 callUntilOptimized(test); |
23 assertTrue(isInlined(test, test, fib), "fib is not inlined"); | 23 assertTrue(isInlined(test, test, fib), "fib is not inlined"); |
24 assertFalse(isInlined(test, fib, fib), "fib -> fib is not inlined"); | 24 assertFalse(isInlined(test, fib, fib), "fib -> fib is not inlined"); |
25 } | 25 } |