Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/GenericParser.java @ 7796:6ad077b60cb3
Minor cleanup.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Fri, 15 Feb 2013 20:04:03 +0100 |
parents | ee84a187f84a |
children | 703c09f8640c |
comparison
equal
deleted
inserted
replaced
7795:ee84a187f84a | 7796:6ad077b60cb3 |
---|---|
43 public MethodSpec createSpecification(ExecutableElement method, AnnotationMirror mirror) { | 43 public MethodSpec createSpecification(ExecutableElement method, AnnotationMirror mirror) { |
44 return createDefaultMethodSpec(null); | 44 return createDefaultMethodSpec(null); |
45 } | 45 } |
46 | 46 |
47 @Override | 47 @Override |
48 protected ParameterSpec createValueParameterSpec(String valueName, NodeData nodeData) { | 48 protected ParameterSpec createValueParameterSpec(String valueName, NodeData nodeData, boolean optional) { |
49 List<ExecutableTypeData> execTypes = nodeData.findGenericExecutableTypes(getContext()); | 49 List<ExecutableTypeData> execTypes = nodeData.findGenericExecutableTypes(getContext()); |
50 List<TypeMirror> types = new ArrayList<>(); | 50 List<TypeMirror> types = new ArrayList<>(); |
51 for (ExecutableTypeData type : execTypes) { | 51 for (ExecutableTypeData type : execTypes) { |
52 types.add(type.getType().getPrimitiveType()); | 52 types.add(type.getType().getPrimitiveType()); |
53 } | 53 } |
55 return new ParameterSpec(valueName, array, false, Cardinality.ONE); | 55 return new ParameterSpec(valueName, array, false, Cardinality.ONE); |
56 } | 56 } |
57 | 57 |
58 @Override | 58 @Override |
59 protected ParameterSpec createReturnParameterSpec() { | 59 protected ParameterSpec createReturnParameterSpec() { |
60 return super.createValueParameterSpec("returnValue", getNode()); | 60 return super.createValueParameterSpec("returnValue", getNode(), false); |
61 } | 61 } |
62 | 62 |
63 @Override | 63 @Override |
64 public SpecializationData create(TemplateMethod method) { | 64 public SpecializationData create(TemplateMethod method) { |
65 SpecializationData data = new SpecializationData(method, true, false); | 65 SpecializationData data = new SpecializationData(method, true, false); |