Mercurial > hg > truffle
diff graal/com.oracle.max.criutils/src/com/oracle/max/criutils/CompilationPrinter.java @ 4142:bc8527f3071c
Adjust code base to new level of warnings.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 18 Dec 2011 05:24:06 +0100 |
parents | e233f5660da4 |
children | f5328dda9714 |
line wrap: on
line diff
--- a/graal/com.oracle.max.criutils/src/com/oracle/max/criutils/CompilationPrinter.java Sun Dec 18 05:23:52 2011 +0100 +++ b/graal/com.oracle.max.criutils/src/com/oracle/max/criutils/CompilationPrinter.java Sun Dec 18 05:24:06 2011 +0100 @@ -96,8 +96,8 @@ */ public void printCompilation(RiMethod method) { begin("compilation"); - out.print("name \" ").print(CiUtil.format("%H::%n", method, true)).println('"'); - out.print("method \"").print(CiUtil.format("%f %r %H.%n(%p)", method, true)).println('"'); + out.print("name \" ").print(CiUtil.format("%H::%n", method)).println('"'); + out.print("method \"").print(CiUtil.format("%f %r %H.%n(%p)", method)).println('"'); out.print("date ").println(System.currentTimeMillis()); end("compilation"); } @@ -125,11 +125,12 @@ } if (codePos != null) { + CiCodePos curCodePos = codePos; do { - sb.append(CiUtil.toLocation(codePos.method, codePos.bci)); + sb.append(CiUtil.toLocation(curCodePos.method, curCodePos.bci)); sb.append('\n'); - if (codePos instanceof CiFrame) { - CiFrame frame = (CiFrame) codePos; + if (curCodePos instanceof CiFrame) { + CiFrame frame = (CiFrame) curCodePos; if (frame.numStack > 0) { sb.append("stack: "); for (int i = 0; i < frame.numStack; i++) { @@ -152,8 +153,8 @@ } sb.append("\n"); } - codePos = codePos.caller; - } while (codePos != null); + curCodePos = curCodePos.caller; + } while (curCodePos != null); } return sb.toString(); }