Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java @ 18754:59bf50cc5a32
Truffle-DSL: implemented @GenerateNodeFactory to enable generation of factories. Factory generation is now disabled by default.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:38:25 +0100 |
parents | b4e38f4ca414 |
children | ae81dd154fb6 |
comparison
equal
deleted
inserted
replaced
18753:f6b8787dc113 | 18754:59bf50cc5a32 |
---|---|
67 private final DeclaredType dslShare; | 67 private final DeclaredType dslShare; |
68 private final DeclaredType nodeFactory; | 68 private final DeclaredType nodeFactory; |
69 private final DeclaredType nodeFactoryBase; | 69 private final DeclaredType nodeFactoryBase; |
70 private final DeclaredType dslMetadata; | 70 private final DeclaredType dslMetadata; |
71 private final DeclaredType implies; | 71 private final DeclaredType implies; |
72 private final DeclaredType generateNodeFactory; | |
72 private final TypeElement expectError; | 73 private final TypeElement expectError; |
73 | 74 |
74 private final List<String> errors = new ArrayList<>(); | 75 private final List<String> errors = new ArrayList<>(); |
75 | 76 |
76 TruffleTypes(ProcessorContext context) { | 77 TruffleTypes(ProcessorContext context) { |
96 nodeFactory = getRequired(context, NodeFactory.class); | 97 nodeFactory = getRequired(context, NodeFactory.class); |
97 nodeFactoryBase = getRequired(context, NodeFactoryBase.class); | 98 nodeFactoryBase = getRequired(context, NodeFactoryBase.class); |
98 dslMetadata = getRequired(context, DSLMetadata.class); | 99 dslMetadata = getRequired(context, DSLMetadata.class); |
99 implies = getRequired(context, Implies.class); | 100 implies = getRequired(context, Implies.class); |
100 expectError = (TypeElement) getRequired(context, ExpectError.class).asElement(); | 101 expectError = (TypeElement) getRequired(context, ExpectError.class).asElement(); |
102 generateNodeFactory = getRequired(context, GenerateNodeFactory.class); | |
103 } | |
104 | |
105 public DeclaredType getGenerateNodeFactory() { | |
106 return generateNodeFactory; | |
101 } | 107 } |
102 | 108 |
103 public DeclaredType getImplies() { | 109 public DeclaredType getImplies() { |
104 return implies; | 110 return implies; |
105 } | 111 } |