Mercurial > hg > truffle
annotate graal/com.oracle.graal.truffle.test/sl/TestSlowPath01.sl @ 17295:ae0496f76cce
LIRIntrospection: use Lambdas wherever possible.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Mon, 29 Sep 2014 14:48:31 +0200 |
parents | 9f001294893d |
children | 04d6bb76cfb3 |
rev | line source |
---|---|
17250
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
1 /* |
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
2 * This test verifies that CallTargets cannot exceed the TruffleInliningMaxCallerSize limit when inlining. |
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
3 */ |
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
4 |
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
5 function test1() { |
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
6 testSlowPath01(); |
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
7 } |
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
8 function main() { |
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
9 waitForOptimization(callUntilOptimized(test1)); |
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
10 assertTrue(isOptimized(test1), "inlinableFunction must be compiled properly"); |
9f001294893d
Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
11 } |