Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/NodeChildData.java @ 18775:a069a87b9a02
Truffle-DSL: Added tests and verification of overridable generic execute methods.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 05 Jan 2015 01:31:08 +0100 |
parents | 23415229349b |
children | 906367e494ca |
comparison
equal
deleted
inserted
replaced
18774:674c8a6d5e6c | 18775:a069a87b9a02 |
---|---|
72 | 72 |
73 public void setExecuteWith(List<NodeChildData> executeWith) { | 73 public void setExecuteWith(List<NodeChildData> executeWith) { |
74 this.executeWith = executeWith; | 74 this.executeWith = executeWith; |
75 } | 75 } |
76 | 76 |
77 public ExecutableTypeData findExecutableType(ProcessorContext context, TypeData targetType) { | 77 public ExecutableTypeData findExecutableType(TypeData targetType) { |
78 ExecutableTypeData executableType = childNode.findExecutableType(targetType, getExecuteWith().size()); | 78 return childNode.findExecutableType(targetType, getExecuteWith().size()); |
79 if (executableType == null) { | |
80 executableType = findAnyGenericExecutableType(context); | |
81 } | |
82 return executableType; | |
83 } | 79 } |
84 | 80 |
85 public List<ExecutableTypeData> findGenericExecutableTypes(ProcessorContext context) { | 81 public List<ExecutableTypeData> findGenericExecutableTypes(ProcessorContext context) { |
86 return childNode.findGenericExecutableTypes(context, getExecuteWith().size()); | 82 return childNode.findGenericExecutableTypes(context, getExecuteWith().size()); |
87 } | 83 } |