< prev index next >

src/share/vm/c1/c1_CFGPrinter.cpp

Print this page




 144 }
 145 
 146 
 147 char* CFGPrinterOutput::method_name(ciMethod* method, bool short_name) {
 148   stringStream name;
 149   if (short_name) {
 150     method->print_short_name(&name);
 151   } else {
 152     method->print_name(&name);
 153   }
 154   return name.as_string();
 155 
 156 }
 157 
 158 
 159 void CFGPrinterOutput::print_compilation() {
 160   print_begin("compilation");
 161 
 162   print("name \"%s\"", method_name(_compilation->method(), true));
 163   print("method \"%s\"", method_name(_compilation->method()));
 164   print("date "INT64_FORMAT, (int64_t) os::javaTimeMillis());
 165 
 166   print_end("compilation");
 167 }
 168 
 169 
 170 
 171 
 172 
 173 void CFGPrinterOutput::print_state(BlockBegin* block) {
 174   print_begin("states");
 175 
 176   InstructionPrinter ip(true, output());
 177 
 178   ValueStack* state = block->state();
 179   int index;
 180   Value value;
 181 
 182   for_each_state(state) {
 183     print_begin("locals");
 184     print("size %d", state->locals_size());




 144 }
 145 
 146 
 147 char* CFGPrinterOutput::method_name(ciMethod* method, bool short_name) {
 148   stringStream name;
 149   if (short_name) {
 150     method->print_short_name(&name);
 151   } else {
 152     method->print_name(&name);
 153   }
 154   return name.as_string();
 155 
 156 }
 157 
 158 
 159 void CFGPrinterOutput::print_compilation() {
 160   print_begin("compilation");
 161 
 162   print("name \"%s\"", method_name(_compilation->method(), true));
 163   print("method \"%s\"", method_name(_compilation->method()));
 164   print("date " INT64_FORMAT, (int64_t) os::javaTimeMillis());
 165 
 166   print_end("compilation");
 167 }
 168 
 169 
 170 
 171 
 172 
 173 void CFGPrinterOutput::print_state(BlockBegin* block) {
 174   print_begin("states");
 175 
 176   InstructionPrinter ip(true, output());
 177 
 178   ValueStack* state = block->state();
 179   int index;
 180   Value value;
 181 
 182   for_each_state(state) {
 183     print_begin("locals");
 184     print("size %d", state->locals_size());


< prev index next >