view graal/com.oracle.truffle.sl.test/tests/ControlFlow.sl @ 19456:f04d2a9f2020

Assert that current bci points to an if Java bytecode when branch taken probability is requested.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 17 Feb 2015 23:39:41 +0100
parents ff3136ecb5a7
children
line wrap: on
line source

function foo() {}
function bar() {}

function main() {  
  foo();
  if (1 < 2) {
    bar();
    return 1;
  }
}