comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java @ 20941:4f45e4d3361c

Truffle-DSL: rename GenericParser to Fallbackparser.
author Christian Humer <christian.humer@gmail.com>
date Tue, 14 Apr 2015 15:16:14 +0200
parents 476374f3fe9a
children a2e295c6cf7c
comparison
equal deleted inserted replaced
20940:476374f3fe9a 20941:4f45e4d3361c
161 if (node.hasErrors()) { 161 if (node.hasErrors()) {
162 return node; // error sync point 162 return node; // error sync point
163 } 163 }
164 164
165 node.getSpecializations().addAll(new SpecializationMethodParser(context, node).parse(members)); 165 node.getSpecializations().addAll(new SpecializationMethodParser(context, node).parse(members));
166 node.getSpecializations().addAll(new GenericParser(context, node).parse(members)); 166 node.getSpecializations().addAll(new FallbackParser(context, node).parse(members));
167 node.getCasts().addAll(new CreateCastParser(context, node).parse(members)); 167 node.getCasts().addAll(new CreateCastParser(context, node).parse(members));
168 node.getShortCircuits().addAll(new ShortCircuitParser(context, node).parse(members)); 168 node.getShortCircuits().addAll(new ShortCircuitParser(context, node).parse(members));
169 169
170 if (node.hasErrors()) { 170 if (node.hasErrors()) {
171 return node; // error sync point 171 return node; // error sync point
1259 } 1259 }
1260 } 1260 }
1261 } 1261 }
1262 1262
1263 private SpecializationData createGenericSpecialization(final NodeData node) { 1263 private SpecializationData createGenericSpecialization(final NodeData node) {
1264 GenericParser parser = new GenericParser(context, node); 1264 FallbackParser parser = new FallbackParser(context, node);
1265 MethodSpec specification = parser.createDefaultMethodSpec(node.getSpecializations().iterator().next().getMethod(), null, true, null); 1265 MethodSpec specification = parser.createDefaultMethodSpec(node.getSpecializations().iterator().next().getMethod(), null, true, null);
1266 1266
1267 List<VariableElement> parameterTypes = new ArrayList<>(); 1267 List<VariableElement> parameterTypes = new ArrayList<>();
1268 int signatureIndex = 1; 1268 int signatureIndex = 1;
1269 for (ParameterSpec spec : specification.getRequired()) { 1269 for (ParameterSpec spec : specification.getRequired()) {