view graal/com.oracle.truffle.sl.test/tests/HelloEqualsWorld.sl @ 16775:8c606e8053b8

Truffle/API test: additional documentation on the new instrumentation tests; move into project with other tests and add an entry in package-info.java
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Mon, 11 Aug 2014 10:35:38 -0700
parents 25a18b4a5b90
children
line wrap: on
line source

function doIt(a) {
  println("Initial stack trace:");
  println(stacktrace());
  
  hello = 123;
  println("After 123 assignment:");
  println(stacktrace());
  
  helloEqualsWorld();
  println("After hello assignment:");
  println(stacktrace());
  
//  readln();
}

function main() {
  i = 0;
  while (i < 10) {
    doIt(i);
    i = i + 1;
  }
}