changeset 21991:169f5c55704c

added throwsControlFlowException element to @TruffleBoundary
author Doug Simon <doug.simon@oracle.com>
date Mon, 13 Jul 2015 16:31:44 +0200
parents f878f9778548
children 397164a68abf
files truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java	Wed Jul 08 11:49:59 2015 +0200
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java	Mon Jul 13 16:31:44 2015 +0200
@@ -27,6 +27,8 @@
 import java.lang.annotation.*;
 import java.util.concurrent.*;
 
+import com.oracle.truffle.api.nodes.*;
+
 /**
  * Directives that influence the optimizations of the Truffle compiler. All of the operations have
  * no effect when executed in the Truffle interpreter.
@@ -176,6 +178,10 @@
     @Retention(RetentionPolicy.RUNTIME)
     @Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
     public @interface TruffleBoundary {
+        /**
+         * Determines whether this method throws a {@link ControlFlowException}.
+         */
+        boolean throwsControlFlowException() default false;
     }
 
     /**