# HG changeset patch # User Thomas Wuerthinger # Date 1366822212 -7200 # Node ID f5e58a1eca55b0642c926925560f02a7bc7fbc56 # Parent e16363e50252ca348fe93214e12478f765eccb4d Added method CompilerDirectives.bailout to the Truffle API. diff -r e16363e50252 -r f5e58a1eca55 graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java --- 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