Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeSystemData.java @ 18605:58eb9bbb60c4
Truffle-DSL: fixed several bugs when using arrays as type. added arrays test.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 03 Dec 2014 21:02:27 +0100 |
parents | 0370880ac9ce |
children | a665483c3881 |
comparison
equal
deleted
inserted
replaced
18604:39441c10d314 | 18605:58eb9bbb60c4 |
---|---|
137 return result; | 137 return result; |
138 } | 138 } |
139 | 139 |
140 public TypeData findType(String simpleName) { | 140 public TypeData findType(String simpleName) { |
141 for (TypeData type : types) { | 141 for (TypeData type : types) { |
142 if (ElementUtils.getSimpleName(type.getBoxedType()).equals(simpleName)) { | 142 if (ElementUtils.getTypeId(type.getBoxedType()).equals(simpleName)) { |
143 return type; | 143 return type; |
144 } | 144 } |
145 } | 145 } |
146 return null; | 146 return null; |
147 } | 147 } |