view graal/com.oracle.truffle.sl.test/tests/FunctionLiteral.sl @ 14543:12eaf1a47a90

removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
author Doug Simon <doug.simon@oracle.com>
date Fri, 14 Mar 2014 22:05:50 +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);
}