Mercurial > hg > truffle
view graal/com.oracle.truffle.sl.test/tests/FunctionLiteral.sl @ 21803:30b03297ba94
change phase order (ConvertDeoptimizeToGuard earlier, PEA after loop peeling/unswitching)
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Tue, 09 Jun 2015 11:06:32 +0200 |
parents | ff3136ecb5a7 |
children |
line wrap: on
line source
function add(a, b) { return a + b; } function sub(a, b) { return a - b; } function foo(f) { println(f(40, 2)); } function main() { foo(add); foo(sub); }