Mercurial > hg > truffle
changeset 9282:f5e58a1eca55
Added method CompilerDirectives.bailout to the Truffle API.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 24 Apr 2013 18:50:12 +0200 |
parents | e16363e50252 |
children | 159ac409c27a |
files | graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java Wed Apr 24 17:48:27 2013 +0200 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java Wed Apr 24 18:50:12 2013 +0200 @@ -77,4 +77,12 @@ public static void injectBranchProbability(double probability) { assert probability >= 0.0 && probability <= 1.0; } -} + + /** + * Bails out of a compilation (e.g., for guest language features that should never be compiled). + * + * @param reason the reason for the bailout + */ + public static void bailout(String reason) { + } +} \ No newline at end of file