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); |