Mercurial > hg > truffle
view graal/com.oracle.truffle.sl.test/tests/FunctionLiteral.sl @ 21438:a4f376f516dc
AMD64Move: refactor #const2stack and add support for short and byte.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 20 May 2015 17:30:34 +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); }