view graal/com.oracle.truffle.sl.test/tests/FunctionLiteral.sl @ 21192:4c7c22aa4bd7

LinearScan: add more information to assertion.
author Josef Eisl <josef.eisl@jku.at>
date Wed, 22 Apr 2015 10:50:36 +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);
}