Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/NodeChildData.java @ 19292:906367e494ca
Truffle-DSL: fix invalid parameter order for executeWith with non-linear execution.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 11 Feb 2015 12:13:44 +0100 |
parents | a069a87b9a02 |
children | 18c0f02fa4d2 |
comparison
equal
deleted
inserted
replaced
19291:f4792a544170 | 19292:906367e494ca |
---|---|
50 private final TypeMirror type; | 50 private final TypeMirror type; |
51 private final TypeMirror originalType; | 51 private final TypeMirror originalType; |
52 private final Element accessElement; | 52 private final Element accessElement; |
53 private final Cardinality cardinality; | 53 private final Cardinality cardinality; |
54 | 54 |
55 private List<NodeChildData> executeWith = Collections.emptyList(); | 55 private List<NodeExecutionData> executeWith = Collections.emptyList(); |
56 | 56 |
57 private NodeData childNode; | 57 private NodeData childNode; |
58 | 58 |
59 public NodeChildData(Element sourceElement, AnnotationMirror sourceMirror, String name, TypeMirror nodeType, TypeMirror originalNodeType, Element accessElement, Cardinality cardinality) { | 59 public NodeChildData(Element sourceElement, AnnotationMirror sourceMirror, String name, TypeMirror nodeType, TypeMirror originalNodeType, Element accessElement, Cardinality cardinality) { |
60 this.sourceElement = sourceElement; | 60 this.sourceElement = sourceElement; |
64 this.originalType = originalNodeType; | 64 this.originalType = originalNodeType; |
65 this.accessElement = accessElement; | 65 this.accessElement = accessElement; |
66 this.cardinality = cardinality; | 66 this.cardinality = cardinality; |
67 } | 67 } |
68 | 68 |
69 public List<NodeChildData> getExecuteWith() { | 69 public List<NodeExecutionData> getExecuteWith() { |
70 return executeWith; | 70 return executeWith; |
71 } | 71 } |
72 | 72 |
73 public void setExecuteWith(List<NodeChildData> executeWith) { | 73 public void setExecuteWith(List<NodeExecutionData> executeWith) { |
74 this.executeWith = executeWith; | 74 this.executeWith = executeWith; |
75 } | 75 } |
76 | 76 |
77 public ExecutableTypeData findExecutableType(TypeData targetType) { | 77 public ExecutableTypeData findExecutableType(TypeData targetType) { |
78 return childNode.findExecutableType(targetType, getExecuteWith().size()); | 78 return childNode.findExecutableType(targetType, getExecuteWith().size()); |