hotspot/src/share/vm/jvmci/jvmciCodeInstaller.cpp
changeset 36329 06727ae6971e
parent 36063 96e86c7f8fec
child 36842 8f0d0faa51e2
equal deleted inserted replaced
36328:f627026bc04a 36329:06727ae6971e
   549     result = JVMCIEnv::register_method(method, nm, entry_bci, &_offsets, _orig_pc_offset, &buffer,
   549     result = JVMCIEnv::register_method(method, nm, entry_bci, &_offsets, _orig_pc_offset, &buffer,
   550                                        stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table,
   550                                        stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table,
   551                                        compiler, _debug_recorder, _dependencies, env, id,
   551                                        compiler, _debug_recorder, _dependencies, env, id,
   552                                        has_unsafe_access, _has_wide_vector, installed_code, compiled_code, speculation_log);
   552                                        has_unsafe_access, _has_wide_vector, installed_code, compiled_code, speculation_log);
   553     cb = nm;
   553     cb = nm;
       
   554     if (nm != NULL && env == NULL) {
       
   555       DirectiveSet* directive = DirectivesStack::getMatchingDirective(method, compiler);
       
   556       bool printnmethods = directive->PrintAssemblyOption || directive->PrintNMethodsOption;
       
   557       if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) {
       
   558         nm->print_nmethod(printnmethods);
       
   559       }
       
   560       DirectivesStack::release(directive);
       
   561     }
   554   }
   562   }
   555 
   563 
   556   if (cb != NULL) {
   564   if (cb != NULL) {
   557     // Make sure the pre-calculated constants section size was correct.
   565     // Make sure the pre-calculated constants section size was correct.
   558     guarantee((cb->code_begin() - cb->content_begin()) >= _constants_size, "%d < %d", (int)(cb->code_begin() - cb->content_begin()), _constants_size);
   566     guarantee((cb->code_begin() - cb->content_begin()) >= _constants_size, "%d < %d", (int)(cb->code_begin() - cb->content_begin()), _constants_size);