Mercurial > hg > truffle
comparison graal/com.oracle.truffle.sl.test/tests/Inlining.sl @ 13866:2caa107f51ce
SL: added testcase for inlining.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 04 Feb 2014 17:18:16 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13865:b77c09786445 | 13866:2caa107f51ce |
---|---|
1 | |
2 function a() {return 42;} | |
3 function b() {return a();} | |
4 function c() {return b();} | |
5 function d() {return c();} | |
6 function e() {return c();} | |
7 function f() {return c();} | |
8 function g() {return d() + e() + f();} | |
9 | |
10 function main() { | |
11 i = 0; | |
12 result = 0; | |
13 while (i < 10000) { | |
14 result = result + g(); | |
15 i = i + 1; | |
16 } | |
17 return result; | |
18 } |