Mercurial > hg > truffle
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/SpecializationData.java @ 20984:6361fa2e3321
Truffle-DSL: further fixes for polymorphic execute signatures.
author | Christian Humer <christian.humer@oracle.com> |
---|---|
date | Wed, 15 Apr 2015 21:13:43 +0200 |
parents | 476374f3fe9a |
children |
comparison
equal
deleted
inserted
replaced
20983:b99da6d86cfe | 20984:6361fa2e3321 |
---|---|
165 | 165 |
166 public boolean isPolymorphic() { | 166 public boolean isPolymorphic() { |
167 return kind == SpecializationKind.POLYMORPHIC; | 167 return kind == SpecializationKind.POLYMORPHIC; |
168 } | 168 } |
169 | 169 |
170 public List<Parameter> getDynamicParameters() { | |
171 List<Parameter> uncachedParameters = new ArrayList<>(getParameters()); | |
172 for (CacheExpression cacheExpression : getCaches()) { | |
173 uncachedParameters.remove(cacheExpression.getParameter()); | |
174 } | |
175 return uncachedParameters; | |
176 } | |
177 | |
178 @Override | 170 @Override |
179 protected List<MessageContainer> findChildContainers() { | 171 protected List<MessageContainer> findChildContainers() { |
180 List<MessageContainer> sinks = new ArrayList<>(); | 172 List<MessageContainer> sinks = new ArrayList<>(); |
181 if (exceptions != null) { | 173 if (exceptions != null) { |
182 sinks.addAll(exceptions); | 174 sinks.addAll(exceptions); |
302 return null; | 294 return null; |
303 } | 295 } |
304 | 296 |
305 @Override | 297 @Override |
306 public String toString() { | 298 public String toString() { |
307 return String.format("%s [id = %s, method = %s, guards = %s, signature = %s]", getClass().getSimpleName(), getId(), getMethod(), getGuards(), getTypeSignature()); | 299 return String.format("%s [id = %s, method = %s, guards = %s, signature = %s]", getClass().getSimpleName(), getId(), getMethod(), getGuards(), getDynamicTypes()); |
308 } | 300 } |
309 | 301 |
310 public boolean isFrameUsed() { | 302 public boolean isFrameUsed() { |
311 return getFrame() != null; | 303 return getFrame() != null; |
312 } | 304 } |