Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java @ 10689:3ae117e62905
Removed frame argument for generic cases if not needed.
Added @SlowPath annotation to generated generic cases.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 10 Jul 2013 09:23:15 +0200 |
parents | 79041ab43660 |
children | a0309f88306c |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java Wed Jul 10 05:27:45 2013 +0200 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java Wed Jul 10 09:23:15 2013 +0200 @@ -29,6 +29,7 @@ import javax.tools.Diagnostic.Kind; import com.oracle.truffle.api.*; +import com.oracle.truffle.api.CompilerDirectives.*; import com.oracle.truffle.api.frame.*; import com.oracle.truffle.api.nodes.*; import com.oracle.truffle.api.nodes.Node.Child; @@ -51,6 +52,7 @@ private final DeclaredType nodeInfoKind; private final TypeMirror compilerDirectives; private final TypeMirror compilerAsserts; + private final DeclaredType slowPath; private final List<String> errors = new ArrayList<>(); @@ -67,6 +69,7 @@ invalidAssumption = getRequired(context, InvalidAssumptionException.class); nodeInfoAnnotation = getRequired(context, NodeInfo.class); nodeInfoKind = getRequired(context, NodeInfo.Kind.class); + slowPath = getRequired(context, SlowPath.class); } public DeclaredType getNodeInfoAnnotation() { @@ -136,4 +139,8 @@ public TypeMirror getCompilerAsserts() { return compilerAsserts; } + + public DeclaredType getSlowPath() { + return slowPath; + } }