view graal/com.oracle.truffle.sl.test/tests_instrumentation/Instrumentation_varCompare.sl @ 16764:f9fff060dc41

Truffle-DSL: fixed behaviour of insertBefore to be more intuitive.
author Christian Humer <christian.humer@gmail.com>
date Mon, 11 Aug 2014 16:37:40 +0200
parents 2a5ec181dad4
children
line wrap: on
line source

function loop(count) {  
  i = 0;  
  while (i < count) {  
    i = i + 1;  
  }  
  return i;  
}

function main() {
  count = loop(100);
  println(count);
}