view graal/com.oracle.truffle.sl.test/tests/FunctionLiteral.sl @ 18468:6014e40b07f8

SPARC: fix deoptimization rescue slot handling.
author Josef Eisl <josef.eisl@jku.at>
date Wed, 19 Nov 2014 17:31:31 +0100
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);
}