hotspot/src/share/vm/code/nmethod.cpp
changeset 36078 954c49c0ba57
parent 35951 eb6971bc8c95
child 36591 d0622cab5983
child 36300 5b47f168b948
equal deleted inserted replaced
36077:fa6d92de1c70 36078:954c49c0ba57
    31 #include "code/scopeDesc.hpp"
    31 #include "code/scopeDesc.hpp"
    32 #include "compiler/abstractCompiler.hpp"
    32 #include "compiler/abstractCompiler.hpp"
    33 #include "compiler/compileBroker.hpp"
    33 #include "compiler/compileBroker.hpp"
    34 #include "compiler/compileLog.hpp"
    34 #include "compiler/compileLog.hpp"
    35 #include "compiler/compilerDirectives.hpp"
    35 #include "compiler/compilerDirectives.hpp"
       
    36 #include "compiler/directivesParser.hpp"
    36 #include "compiler/disassembler.hpp"
    37 #include "compiler/disassembler.hpp"
    37 #include "interpreter/bytecode.hpp"
    38 #include "interpreter/bytecode.hpp"
    38 #include "oops/methodData.hpp"
    39 #include "oops/methodData.hpp"
    39 #include "oops/oop.inline.hpp"
    40 #include "oops/oop.inline.hpp"
    40 #include "prims/jvmtiRedefineClassesTrace.hpp"
    41 #include "prims/jvmtiRedefineClassesTrace.hpp"
   963       CompileTask::print(st, this, msg, /*short_form:*/ false);
   964       CompileTask::print(st, this, msg, /*short_form:*/ false);
   964     }
   965     }
   965   }
   966   }
   966 }
   967 }
   967 
   968 
       
   969 void nmethod::maybe_print_nmethod(DirectiveSet* directive) {
       
   970   bool printnmethods = directive->PrintAssemblyOption || directive->PrintNMethodsOption;
       
   971   if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) {
       
   972     print_nmethod(printnmethods);
       
   973   }
       
   974 }
   968 
   975 
   969 void nmethod::print_nmethod(bool printmethod) {
   976 void nmethod::print_nmethod(bool printmethod) {
   970   ttyLocker ttyl;  // keep the following output all in one block
   977   ttyLocker ttyl;  // keep the following output all in one block
   971   if (xtty != NULL) {
   978   if (xtty != NULL) {
   972     xtty->begin_head("print_nmethod");
   979     xtty->begin_head("print_nmethod");