Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiUtil.java @ 4484:14a00ee82980
Implement eager type resolving.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Tue, 07 Feb 2012 21:15:58 +0100 |
parents | aaac4894175c |
children | a3cdfa2be94e 3706975946e4 |
line wrap: on
line diff
--- a/graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiUtil.java Tue Feb 07 12:48:19 2012 +0100 +++ b/graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiUtil.java Tue Feb 07 21:15:58 2012 +0100 @@ -728,11 +728,11 @@ return result; } - public static Class<?>[] signatureToTypes(RiSignature signature, RiType accessingClass) { + public static Class<?>[] signatureToTypes(RiSignature signature, RiResolvedType accessingClass) { int count = signature.argumentCount(false); Class<?>[] result = new Class<?>[count]; for (int i = 0; i < result.length; ++i) { - result[i] = ((RiResolvedType) signature.argumentTypeAt(i, accessingClass)).toJava(); + result[i] = signature.argumentTypeAt(i, accessingClass).resolve(accessingClass).toJava(); } return result; }