Mercurial > hg > truffle
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeCodeGenerator.java @ 18163:c88ab4f1f04a
re-enabled Checkstyle with the release of 6.0 that supports Java 8; fixed existing Checkstyle warnings
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 24 Oct 2014 16:18:10 +0200 |
parents | b4e38f4ca414 |
children | 58eb9bbb60c4 |
comparison
equal
deleted
inserted
replaced
18162:ab62800259ff | 18163:c88ab4f1f04a |
---|---|
320 } | 320 } |
321 | 321 |
322 /** | 322 /** |
323 * <pre> | 323 * <pre> |
324 * variant1 $condition != null | 324 * variant1 $condition != null |
325 * | 325 * |
326 * $type $name = defaultValue($type); | 326 * $type $name = defaultValue($type); |
327 * if ($condition) { | 327 * if ($condition) { |
328 * $name = $value; | 328 * $name = $value; |
329 * } | 329 * } |
330 * | 330 * |
331 * variant2 $condition != null | 331 * variant2 $condition != null |
332 * $type $name = $value; | 332 * $type $name = $value; |
333 * </pre> | 333 * </pre> |
334 * | 334 * |
335 * . | 335 * . |
2528 if (list.isEmpty()) { | 2528 if (list.isEmpty()) { |
2529 builder.staticReference(context.getTruffleTypes().getDslMetadata(), EMPTY_CLASS_ARRAY); | 2529 builder.staticReference(context.getTruffleTypes().getDslMetadata(), EMPTY_CLASS_ARRAY); |
2530 } else { | 2530 } else { |
2531 builder.startNewArray(classArray, null); | 2531 builder.startNewArray(classArray, null); |
2532 for (SpecializationData specialization : list) { | 2532 for (SpecializationData specialization : list) { |
2533 if (specialization.isGeneric() || specialization.isPolymorphic()) { | 2533 SpecializationData s = specialization; |
2534 specialization = getModel().getNode().getUninitializedSpecialization(); | 2534 if (s.isGeneric() || s.isPolymorphic()) { |
2535 } | 2535 s = getModel().getNode().getUninitializedSpecialization(); |
2536 builder.startGroup().string(nodeSpecializationClassName(specialization)).string(".class").end(); | 2536 } |
2537 builder.startGroup().string(nodeSpecializationClassName(s)).string(".class").end(); | |
2537 } | 2538 } |
2538 builder.end(); | 2539 builder.end(); |
2539 } | 2540 } |
2540 | 2541 |
2541 return builder.getRoot(); | 2542 return builder.getRoot(); |