view graal/com.oracle.truffle.sl.test/tests/Sum.sl @ 21763:1ab2c7bb6f0f

Split MonitorEnterNode into RawMonitorEnterNode, null check, and hub load.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sat, 06 Jun 2015 22:19:26 +0200
parents ff3136ecb5a7
children
line wrap: on
line source

function main() {  
  i = 0;  
  sum = 0;  
  while (i <= 10000) {  
    sum = sum + i;  
    i = i + 1;  
  }  
  return sum;  
}