diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java @ 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 8f540423a5be
children 159ac409c27a
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