Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java @ 10690:a0309f88306c
Added truffle option to enable detailed rewrite messages. Disabled by default.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 10 Jul 2013 09:42:22 +0200 |
parents | 3ae117e62905 |
children | 4830676526e3 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java Wed Jul 10 09:23:15 2013 +0200 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java Wed Jul 10 09:42:22 2013 +0200 @@ -40,6 +40,8 @@ */ public final class TruffleTypes { + public static final String OPTION_DETAILED_REWRITE_REASONS = "DetailedRewriteReasons"; + private final TypeMirror node; private final TypeMirror nodeArray; private final TypeMirror unexpectedValueException; @@ -53,6 +55,7 @@ private final TypeMirror compilerDirectives; private final TypeMirror compilerAsserts; private final DeclaredType slowPath; + private final DeclaredType truffleOptions; private final List<String> errors = new ArrayList<>(); @@ -70,6 +73,7 @@ nodeInfoAnnotation = getRequired(context, NodeInfo.class); nodeInfoKind = getRequired(context, NodeInfo.Kind.class); slowPath = getRequired(context, SlowPath.class); + truffleOptions = getRequired(context, TruffleOptions.class); } public DeclaredType getNodeInfoAnnotation() { @@ -140,6 +144,10 @@ return compilerAsserts; } + public DeclaredType getTruffleOptions() { + return truffleOptions; + } + public DeclaredType getSlowPath() { return slowPath; }