Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeSystemData.java @ 16818:8169deda04bb
Truffle-DSL: introduced identifiers for type matching.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 13 Aug 2014 18:06:18 +0200 |
parents | b8470fcec3a3 |
children | 0370880ac9ce |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeSystemData.java Wed Aug 13 18:06:18 2014 +0200 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeSystemData.java Wed Aug 13 18:06:18 2014 +0200 @@ -59,7 +59,7 @@ for (TypeData typeData : types) { primitiveTypeMirrors.add(typeData.getPrimitiveType()); boxedTypeMirrors.add(typeData.getBoxedType()); - cachedTypes.put(typeData.getPrimitiveType().toString(), typeData); + cachedTypes.put(ElementUtils.getUniqueIdentifier(typeData.getPrimitiveType()), typeData); } } } @@ -154,7 +154,7 @@ } public int findType(TypeMirror type) { - TypeData data = cachedTypes.get(type.toString()); + TypeData data = cachedTypes.get(ElementUtils.getUniqueIdentifier(type)); if (data != null) { return data.getIndex(); }