view graal/com.oracle.truffle.sl.test/tests_instrumentation/Instrumentation_varCompare.sl @ 16829:e3724f25056a

SL: use the new IntegerConditionProfile in simple language.
author Christian Humer <christian.humer@gmail.com>
date Thu, 14 Aug 2014 13:11:47 +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);
}