Mercurial > hg > graal-compiler
changeset 9764:51545c49083a
Minor refactoring.
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Fri, 17 May 2013 17:35:10 +0200 |
parents | 4a8b9117327a |
children | 2461285a2f90 |
files | graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/MetaUtil.java |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/MetaUtil.java Fri May 17 17:34:48 2013 +0200 +++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/MetaUtil.java Fri May 17 17:35:10 2013 +0200 @@ -570,19 +570,19 @@ return s.substring(0, s.length() - sep.length()); } - private static void appendProfile(StringBuilder buf, AbstractJavaProfile profile, int bci, String kind, String sep) { + private static void appendProfile(StringBuilder buf, AbstractJavaProfile profile, int bci, String type, String sep) { if (profile != null) { AbstractProfiledItem[] pitems = profile.getItems(); if (pitems != null) { - buf.append(String.format("%s@%d:", kind, bci)); + buf.append(String.format("%s@%d:", type, bci)); for (int j = 0; j < pitems.length; j++) { AbstractProfiledItem pitem = pitems[j]; buf.append(String.format(" %.6f (%s)%s", pitem.getProbability(), pitem.getItem(), sep)); } if (profile.getNotRecordedProbability() != 0) { - buf.append(String.format(" %.6f <other %s>%s", profile.getNotRecordedProbability(), kind, sep)); + buf.append(String.format(" %.6f <other %s>%s", profile.getNotRecordedProbability(), type, sep)); } else { - buf.append(String.format(" <no other %s>%s", kind, sep)); + buf.append(String.format(" <no other %s>%s", type, sep)); } } }