view graal/com.oracle.truffle.sl.test/tests_instrumentation/Instrumentation_assnCount.sl @ 18514:7a3bba33f2b7

added support for binding arguments of arbitrary types to parameters of a SubstitutionGuard constructor used above support to remove static access to HotSpotGraalRuntime from CRC32Substitutions.Guard
author Doug Simon <doug.simon@oracle.com>
date Wed, 26 Nov 2014 09:27:58 +0100
parents 7661cc464239
children
line wrap: on
line source

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

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