comparison 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
comparison
equal deleted inserted replaced
9281:e16363e50252 9282:f5e58a1eca55
75 * @param probability the probability value between 0.0 and 1.0 that should be injected 75 * @param probability the probability value between 0.0 and 1.0 that should be injected
76 */ 76 */
77 public static void injectBranchProbability(double probability) { 77 public static void injectBranchProbability(double probability) {
78 assert probability >= 0.0 && probability <= 1.0; 78 assert probability >= 0.0 && probability <= 1.0;
79 } 79 }
80
81 /**
82 * Bails out of a compilation (e.g., for guest language features that should never be compiled).
83 *
84 * @param reason the reason for the bailout
85 */
86 public static void bailout(String reason) {
87 }
80 } 88 }