view graal/com.oracle.truffle.sl.test/tests/DefineFunction.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 b16ec83edc73
children
line wrap: on
line source

function foo() {
  println(test(40, 2));
}

function main() {
  defineFunction("function test(a, b) { return a + b; }");
  foo();

  defineFunction("function test(a, b) { return a - b; }");
  foo();
}