Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeData.java @ 18761:a665483c3881
Truffle-DSL: new node layout implementation.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:38:54 +0100 |
parents | 3912400fc33a |
children |
comparison
equal
deleted
inserted
replaced
18760:6fa3999631d8 | 18761:a665483c3881 |
---|---|
154 | 154 |
155 public boolean isPrimitive() { | 155 public boolean isPrimitive() { |
156 return ElementUtils.isPrimitive(getPrimitiveType()); | 156 return ElementUtils.isPrimitive(getPrimitiveType()); |
157 } | 157 } |
158 | 158 |
159 public List<TypeData> getImplicitSourceTypes() { | |
160 return getTypeSystem().lookupSourceTypes(this); | |
161 } | |
162 | |
163 public boolean hasImplicitSourceTypes() { | |
164 return getTypeSystem().hasImplicitSourceTypes(this); | |
165 } | |
166 | |
159 public boolean isImplicitSubtypeOf(TypeData other) { | 167 public boolean isImplicitSubtypeOf(TypeData other) { |
160 List<ImplicitCastData> casts = other.getTypeSystem().lookupByTargetType(other); | 168 List<ImplicitCastData> casts = other.getTypeSystem().lookupByTargetType(other); |
161 for (ImplicitCastData cast : casts) { | 169 for (ImplicitCastData cast : casts) { |
162 if (isSubtypeOf(cast.getSourceType())) { | 170 if (isSubtypeOf(cast.getSourceType())) { |
163 return true; | 171 return true; |