src/share/vm/ci/ciMethod.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8028468 Sdiff src/share/vm/ci

src/share/vm/ci/ciMethod.cpp

Print this page




1340   if (_bcea == NULL) {
1341     _bcea = new (CURRENT_ENV->arena()) BCEscapeAnalyzer(this, NULL);
1342   }
1343   return _bcea;
1344 #else // COMPILER2
1345   ShouldNotReachHere();
1346   return NULL;
1347 #endif // COMPILER2
1348 }
1349 
1350 ciMethodBlocks  *ciMethod::get_method_blocks() {
1351   Arena *arena = CURRENT_ENV->arena();
1352   if (_method_blocks == NULL) {
1353     _method_blocks = new (arena) ciMethodBlocks(arena, this);
1354   }
1355   return _method_blocks;
1356 }
1357 
1358 #undef FETCH_FLAG_FROM_VM
1359 








1360 void ciMethod::dump_replay_data(outputStream* st) {
1361   ResourceMark rm;
1362   Method* method = get_Method();
1363   MethodCounters* mcs = method->method_counters();
1364   Klass*  holder = method->method_holder();
1365   st->print_cr("ciMethod %s %s %s %d %d %d %d %d",
1366                holder->name()->as_quoted_ascii(),
1367                method->name()->as_quoted_ascii(),
1368                method->signature()->as_quoted_ascii(),
1369                mcs == NULL ? 0 : mcs->invocation_counter()->raw_counter(),
1370                mcs == NULL ? 0 : mcs->backedge_counter()->raw_counter(),
1371                interpreter_invocation_count(),
1372                interpreter_throwout_count(),
1373                _instructions_size);
1374 }
1375 
1376 // ------------------------------------------------------------------
1377 // ciMethod::print_codes
1378 //
1379 // Print a range of the bytecodes for this method.
1380 void ciMethod::print_codes_on(int from, int to, outputStream* st) {
1381   check_is_loaded();
1382   GUARDED_VM_ENTRY(get_Method()->print_codes_on(from, to, st);)
1383 }
1384 
1385 // ------------------------------------------------------------------
1386 // ciMethod::print_name
1387 //
1388 // Print the name of this method, including signature and some flags.




1340   if (_bcea == NULL) {
1341     _bcea = new (CURRENT_ENV->arena()) BCEscapeAnalyzer(this, NULL);
1342   }
1343   return _bcea;
1344 #else // COMPILER2
1345   ShouldNotReachHere();
1346   return NULL;
1347 #endif // COMPILER2
1348 }
1349 
1350 ciMethodBlocks  *ciMethod::get_method_blocks() {
1351   Arena *arena = CURRENT_ENV->arena();
1352   if (_method_blocks == NULL) {
1353     _method_blocks = new (arena) ciMethodBlocks(arena, this);
1354   }
1355   return _method_blocks;
1356 }
1357 
1358 #undef FETCH_FLAG_FROM_VM
1359 
1360 void ciMethod::dump_name_as_ascii(outputStream* st) {
1361   Method* method = get_Method();
1362   st->print("%s %s %s",
1363             method->klass_name()->as_quoted_ascii(),
1364             method->name()->as_quoted_ascii(),
1365             method->signature()->as_quoted_ascii());
1366 }
1367 
1368 void ciMethod::dump_replay_data(outputStream* st) {
1369   ResourceMark rm;
1370   Method* method = get_Method();
1371   MethodCounters* mcs = method->method_counters();
1372   st->print("ciMethod ");
1373   dump_name_as_ascii(st);
1374   st->print_cr(" %d %d %d %d %d",


1375                mcs == NULL ? 0 : mcs->invocation_counter()->raw_counter(),
1376                mcs == NULL ? 0 : mcs->backedge_counter()->raw_counter(),
1377                interpreter_invocation_count(),
1378                interpreter_throwout_count(),
1379                _instructions_size);
1380 }
1381 
1382 // ------------------------------------------------------------------
1383 // ciMethod::print_codes
1384 //
1385 // Print a range of the bytecodes for this method.
1386 void ciMethod::print_codes_on(int from, int to, outputStream* st) {
1387   check_is_loaded();
1388   GUARDED_VM_ENTRY(get_Method()->print_codes_on(from, to, st);)
1389 }
1390 
1391 // ------------------------------------------------------------------
1392 // ciMethod::print_name
1393 //
1394 // Print the name of this method, including signature and some flags.


src/share/vm/ci/ciMethod.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File