view graal/com.oracle.truffle.sl.test/tests/Break.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 64c77f0577bb
children
line wrap: on
line source

function main() {  
  i = 0;  
  while (i < 1000) {
    if (i >= 942) {
      break;
    }  
    i = i + 1;  
  }
  return i;  
}