< prev index next >

src/share/vm/ci/ciMethod.cpp

Print this page
rev 7851 : 8073607: add trace events for inlining
Reviewed-by:


  31 #include "ci/ciMethodData.hpp"
  32 #include "ci/ciStreams.hpp"
  33 #include "ci/ciSymbol.hpp"
  34 #include "ci/ciReplay.hpp"
  35 #include "ci/ciUtilities.hpp"
  36 #include "classfile/systemDictionary.hpp"
  37 #include "compiler/abstractCompiler.hpp"
  38 #include "compiler/compilerOracle.hpp"
  39 #include "compiler/methodLiveness.hpp"
  40 #include "interpreter/interpreter.hpp"
  41 #include "interpreter/linkResolver.hpp"
  42 #include "interpreter/oopMapCache.hpp"
  43 #include "memory/allocation.inline.hpp"
  44 #include "memory/resourceArea.hpp"
  45 #include "oops/generateOopMap.hpp"
  46 #include "oops/oop.inline.hpp"
  47 #include "prims/nativeLookup.hpp"
  48 #include "runtime/deoptimization.hpp"
  49 #include "utilities/bitMap.inline.hpp"
  50 #include "utilities/xmlstream.hpp"

  51 #ifdef COMPILER2
  52 #include "ci/bcEscapeAnalyzer.hpp"
  53 #include "ci/ciTypeFlow.hpp"
  54 #include "oops/method.hpp"
  55 #endif
  56 #ifdef SHARK
  57 #include "ci/ciTypeFlow.hpp"
  58 #include "oops/method.hpp"
  59 #endif
  60 
  61 // ciMethod
  62 //
  63 // This class represents a Method* in the HotSpot virtual
  64 // machine.
  65 
  66 
  67 // ------------------------------------------------------------------
  68 // ciMethod::ciMethod
  69 //
  70 // Loaded method.


1449 // ciMethod::print_impl
1450 //
1451 // Implementation of the print method.
1452 void ciMethod::print_impl(outputStream* st) {
1453   ciMetadata::print_impl(st);
1454   st->print(" name=");
1455   name()->print_symbol_on(st);
1456   st->print(" holder=");
1457   holder()->print_name_on(st);
1458   st->print(" signature=");
1459   signature()->as_symbol()->print_symbol_on(st);
1460   if (is_loaded()) {
1461     st->print(" loaded=true");
1462     st->print(" arg_size=%d", arg_size());
1463     st->print(" flags=");
1464     flags().print_member_flags(st);
1465   } else {
1466     st->print(" loaded=false");
1467   }
1468 }












  31 #include "ci/ciMethodData.hpp"
  32 #include "ci/ciStreams.hpp"
  33 #include "ci/ciSymbol.hpp"
  34 #include "ci/ciReplay.hpp"
  35 #include "ci/ciUtilities.hpp"
  36 #include "classfile/systemDictionary.hpp"
  37 #include "compiler/abstractCompiler.hpp"
  38 #include "compiler/compilerOracle.hpp"
  39 #include "compiler/methodLiveness.hpp"
  40 #include "interpreter/interpreter.hpp"
  41 #include "interpreter/linkResolver.hpp"
  42 #include "interpreter/oopMapCache.hpp"
  43 #include "memory/allocation.inline.hpp"
  44 #include "memory/resourceArea.hpp"
  45 #include "oops/generateOopMap.hpp"
  46 #include "oops/oop.inline.hpp"
  47 #include "prims/nativeLookup.hpp"
  48 #include "runtime/deoptimization.hpp"
  49 #include "utilities/bitMap.inline.hpp"
  50 #include "utilities/xmlstream.hpp"
  51 #include "trace/tracing.hpp"
  52 #ifdef COMPILER2
  53 #include "ci/bcEscapeAnalyzer.hpp"
  54 #include "ci/ciTypeFlow.hpp"
  55 #include "oops/method.hpp"
  56 #endif
  57 #ifdef SHARK
  58 #include "ci/ciTypeFlow.hpp"
  59 #include "oops/method.hpp"
  60 #endif
  61 
  62 // ciMethod
  63 //
  64 // This class represents a Method* in the HotSpot virtual
  65 // machine.
  66 
  67 
  68 // ------------------------------------------------------------------
  69 // ciMethod::ciMethod
  70 //
  71 // Loaded method.


1450 // ciMethod::print_impl
1451 //
1452 // Implementation of the print method.
1453 void ciMethod::print_impl(outputStream* st) {
1454   ciMetadata::print_impl(st);
1455   st->print(" name=");
1456   name()->print_symbol_on(st);
1457   st->print(" holder=");
1458   holder()->print_name_on(st);
1459   st->print(" signature=");
1460   signature()->as_symbol()->print_symbol_on(st);
1461   if (is_loaded()) {
1462     st->print(" loaded=true");
1463     st->print(" arg_size=%d", arg_size());
1464     st->print(" flags=");
1465     flags().print_member_flags(st);
1466   } else {
1467     st->print(" loaded=false");
1468   }
1469 }
1470 
1471 #if INCLUDE_TRACE
1472 TraceStructCiMethod ciMethod::to_trace_struct() const {
1473   TraceStructCiMethod result;
1474   result.set_class(holder()->name()->as_utf8());
1475   result.set_method(name()->as_utf8());
1476   result.set_signature(signature()->as_symbol()->as_utf8());
1477   return result;
1478 }
1479 #endif
< prev index next >