Mercurial > hg > truffle
diff truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java @ 21991:169f5c55704c
added throwsControlFlowException element to @TruffleBoundary
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 13 Jul 2015 16:31:44 +0200 |
parents | 9c8c0937da41 |
children | 130e5f69d1a6 |
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; } /**