Mercurial > hg > truffle
comparison graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/MetaUtil.java @ 7054:5d4676ae84a4
removed usages of ResolvedJavaType.toJava() from bytecode interpreter
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 27 Nov 2012 18:30:20 +0100 |
parents | 62818f156081 |
children | e4d9f153934f |
comparison
equal
deleted
inserted
replaced
7053:014727292ae0 | 7054:5d4676ae84a4 |
---|---|
427 result[i + j] = signature.getParameterKind(j); | 427 result[i + j] = signature.getParameterKind(j); |
428 } | 428 } |
429 return result; | 429 return result; |
430 } | 430 } |
431 | 431 |
432 public static Class< ? >[] signatureToTypes(Signature signature, ResolvedJavaType accessingClass) { | |
433 int count = signature.getParameterCount(false); | |
434 Class< ? >[] result = new Class< ? >[count]; | |
435 for (int i = 0; i < result.length; ++i) { | |
436 result[i] = signature.getParameterType(i, accessingClass).resolve(accessingClass).toJava(); | |
437 } | |
438 return result; | |
439 } | |
440 | |
441 /** | 432 /** |
442 * Formats some profiling information associated as a string. | 433 * Formats some profiling information associated as a string. |
443 * | 434 * |
444 * @param info the profiling info to format | 435 * @param info the profiling info to format |
445 * @param method an optional method that augments the profile string returned | 436 * @param method an optional method that augments the profile string returned |