comparison graal/com.oracle.max.criutils/src/com/oracle/max/criutils/CompilationPrinter.java @ 5719:429accae15aa

moved some methods from CodeUtil to MetaUtil renamed BaseUnresolved[Method|Field] to Unresolved[Method|Field] and moved them to the graal.api.meta project
author Doug Simon <doug.simon@oracle.com>
date Thu, 28 Jun 2012 13:36:39 +0200
parents 4d7175cf3526
children
comparison
equal deleted inserted replaced
5718:10341299528c 5719:429accae15aa
95 * 95 *
96 * @param method the method for which a timestamp will be printed 96 * @param method the method for which a timestamp will be printed
97 */ 97 */
98 public void printCompilation(JavaMethod method) { 98 public void printCompilation(JavaMethod method) {
99 begin("compilation"); 99 begin("compilation");
100 out.print("name \" ").print(CodeUtil.format("%H::%n", method)).println('"'); 100 out.print("name \" ").print(MetaUtil.format("%H::%n", method)).println('"');
101 out.print("method \"").print(CodeUtil.format("%f %r %H.%n(%p)", method)).println('"'); 101 out.print("method \"").print(MetaUtil.format("%f %r %H.%n(%p)", method)).println('"');
102 out.print("date ").println(System.currentTimeMillis()); 102 out.print("date ").println(System.currentTimeMillis());
103 end("compilation"); 103 end("compilation");
104 } 104 }
105 105
106 /** 106 /**
127 127
128 if (codePos != null) { 128 if (codePos != null) {
129 BytecodePosition curCodePos = codePos; 129 BytecodePosition curCodePos = codePos;
130 List<VirtualObject> virtualObjects = new ArrayList<>(); 130 List<VirtualObject> virtualObjects = new ArrayList<>();
131 do { 131 do {
132 sb.append(CodeUtil.toLocation(curCodePos.getMethod(), curCodePos.getBCI())); 132 sb.append(MetaUtil.toLocation(curCodePos.getMethod(), curCodePos.getBCI()));
133 sb.append('\n'); 133 sb.append('\n');
134 if (curCodePos instanceof BytecodeFrame) { 134 if (curCodePos instanceof BytecodeFrame) {
135 BytecodeFrame frame = (BytecodeFrame) curCodePos; 135 BytecodeFrame frame = (BytecodeFrame) curCodePos;
136 if (frame.numStack > 0) { 136 if (frame.numStack > 0) {
137 sb.append("stack: "); 137 sb.append("stack: ");