Mercurial > hg > graal-compiler
annotate graal/com.oracle.graal.truffle.test/sl/TestOSR.sl @ 21646:645f170013a4
Fix in the scheduler for proxy node handling.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 01 Jun 2015 22:14:34 +0200 |
parents | e8e55ebcf069 |
children |
rev | line source |
---|---|
20097
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
1 function test() { |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
2 i = 0; |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
3 sum = 0; |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
4 while (i < 300000) { |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
5 sum = sum + i; |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
6 i = i + 1; |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
7 } |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
8 return sum; |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
9 } |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
10 |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
11 function main() { |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
12 test(); |
e8e55ebcf069
Truffle: implement language agnostic OSR support.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
13 } |