view graal/com.oracle.graal.truffle.test/sl/TestOSR.sl @ 21382:e4a2ebb47271

Add utility method to remove a phase with a given class
author Christian Wimmer <christian.wimmer@oracle.com>
date Thu, 14 May 2015 16:08:21 -0700
parents e8e55ebcf069
children
line wrap: on
line source

function test() {
  i = 0;
  sum = 0;  
  while (i < 300000) { 
    sum = sum +  i;
    i = i + 1;  
  }
  return sum;
}

function main() {  
  test();
}