view graal/com.oracle.truffle.sl.test/tests/Break.sl @ 21755:c052d68e7eac

disable ConvertDeoptimizeToGuardPhase for snippet graphs containing snippet counters to avoid (silent) deletion of counters on a path terminated by a deopt
author Doug Simon <doug.simon@oracle.com>
date Fri, 05 Jun 2015 23:05:16 +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;  
}