Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/NodeCodeGenerator.java @ 12503:d7f8dd4fe876
minor reformatting based on 'mx eclipseformat'
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 21 Oct 2013 18:10:32 +0200 |
parents | 52caeb1c19a0 |
children | 0d3e4d940925 |
comparison
equal
deleted
inserted
replaced
12502:28f56bf7c06a | 12503:d7f8dd4fe876 |
---|---|
974 } | 974 } |
975 } | 975 } |
976 | 976 |
977 private List<CodeExecutableElement> createImplicitChildrenAccessors() { | 977 private List<CodeExecutableElement> createImplicitChildrenAccessors() { |
978 NodeData node = getModel().getNode(); | 978 NodeData node = getModel().getNode(); |
979 // Map<NodeChildData, Set<TypeData>> expectTypes = new HashMap<>(); | 979 // Map<NodeChildData, Set<TypeData>> expectTypes = new HashMap<>(); |
980 @SuppressWarnings("unchecked") | 980 @SuppressWarnings("unchecked") |
981 List<Set<TypeData>> expectTypes = Arrays.<Set<TypeData>> asList(new Set[node.getGenericSpecialization().getParameters().size()]); | 981 List<Set<TypeData>> expectTypes = Arrays.<Set<TypeData>> asList(new Set[node.getGenericSpecialization().getParameters().size()]); |
982 | 982 |
983 for (ExecutableTypeData executableType : node.getExecutableTypes()) { | 983 for (ExecutableTypeData executableType : node.getExecutableTypes()) { |
984 for (int i = 0; i < executableType.getEvaluatedCount(); i++) { | 984 for (int i = 0; i < executableType.getEvaluatedCount(); i++) { |
2686 CodeTypeElement clazz = getElement(); | 2686 CodeTypeElement clazz = getElement(); |
2687 | 2687 |
2688 final SpecializationData polymorphic = node.getGenericPolymorphicSpecialization(); | 2688 final SpecializationData polymorphic = node.getGenericPolymorphicSpecialization(); |
2689 | 2689 |
2690 ExecutableElement executeCached = nodeGen.getMethod(executeCachedName(polymorphic)); | 2690 ExecutableElement executeCached = nodeGen.getMethod(executeCachedName(polymorphic)); |
2691 // ExecutableTypeData execType = new ExecutableTypeData(polymorphic, executeCached, | 2691 // ExecutableTypeData execType = new ExecutableTypeData(polymorphic, executeCached, |
2692 // node.getTypeSystem(), polymorphic.getReturnType().getTypeSystemType()); | 2692 // node.getTypeSystem(), polymorphic.getReturnType().getTypeSystemType()); |
2693 | 2693 |
2694 ExecutableTypeMethodParser parser = new ExecutableTypeMethodParser(getContext(), node); | 2694 ExecutableTypeMethodParser parser = new ExecutableTypeMethodParser(getContext(), node); |
2695 ExecutableTypeData execType = parser.parse(Arrays.asList(executeCached)).get(0); | 2695 ExecutableTypeData execType = parser.parse(Arrays.asList(executeCached)).get(0); |
2696 | 2696 |
2697 CodeExecutableElement executeMethod = createExecutableTypeOverride(execType, false); | 2697 CodeExecutableElement executeMethod = createExecutableTypeOverride(execType, false); |