# HG changeset patch # User Doug Simon # Date 1436797904 -7200 # Node ID 169f5c55704c69ea592f761145989747419bac3e # Parent f878f9778548f684c6f8b88e1bb7d3b49d40ce4c added throwsControlFlowException element to @TruffleBoundary diff -r f878f9778548 -r 169f5c55704c truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java --- 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; } /**