Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java @ 16755:bd28da642eea
Truffle-DSL: Several new features implemented:
Implementation of a new code generation layout which shares code between generated nodes.
Declaration order of specializations is now used as specialization order.
Specializations do no longer perform fallthrough on respecialization, they now always respecialize from the first specialization.
Implemented support for contains relations between specializations.
Improved reachability error messages.
Preliminary support for @Implies.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Aug 2014 15:53:05 +0200 |
parents | 915ebb306fcc |
children | 23415229349b |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java Mon Aug 11 15:53:05 2014 +0200 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java Mon Aug 11 15:53:05 2014 +0200 @@ -32,6 +32,7 @@ import com.oracle.truffle.api.CompilerDirectives.CompilationFinal; import com.oracle.truffle.api.CompilerDirectives.SlowPath; import com.oracle.truffle.api.dsl.*; +import com.oracle.truffle.api.dsl.internal.*; import com.oracle.truffle.api.frame.*; import com.oracle.truffle.api.nodes.*; import com.oracle.truffle.api.nodes.Node.Child; @@ -61,6 +62,13 @@ private final DeclaredType sourceSection; private final DeclaredType truffleOptions; private final DeclaredType compilationFinal; + private final DeclaredType nodeUtil; + private final DeclaredType dslNode; + private final DeclaredType dslShare; + private final DeclaredType nodeFactory; + private final DeclaredType nodeFactoryBase; + private final DeclaredType dslMetadata; + private final DeclaredType implies; private final TypeElement expectError; private final List<String> errors = new ArrayList<>(); @@ -82,9 +90,40 @@ sourceSection = getRequired(context, SourceSection.class); truffleOptions = getRequired(context, TruffleOptions.class); compilationFinal = getRequired(context, CompilationFinal.class); + nodeUtil = getRequired(context, NodeUtil.class); + dslNode = getRequired(context, DSLNode.class); + dslShare = getRequired(context, DSLShare.class); + nodeFactory = getRequired(context, NodeFactory.class); + nodeFactoryBase = getRequired(context, NodeFactoryBase.class); + dslMetadata = getRequired(context, DSLMetadata.class); + implies = getRequired(context, Implies.class); expectError = (TypeElement) getRequired(context, ExpectError.class).asElement(); } + public DeclaredType getImplies() { + return implies; + } + + public DeclaredType getDslMetadata() { + return dslMetadata; + } + + public DeclaredType getNodeFactory() { + return nodeFactory; + } + + public DeclaredType getNodeFactoryBase() { + return nodeFactoryBase; + } + + public DeclaredType getDslNode() { + return dslNode; + } + + public DeclaredType getDslShare() { + return dslShare; + } + public DeclaredType getCompilationFinal() { return compilationFinal; } @@ -172,4 +211,8 @@ public DeclaredType getSourceSection() { return sourceSection; } + + public DeclaredType getNodeUtil() { + return nodeUtil; + } }