< prev index next >

src/hotspot/share/opto/output.cpp

Print this page

3390     if (C->is_osr_compilation()) {
3391       _code_offsets.set_value(CodeOffsets::Verified_Entry, 0);
3392       _code_offsets.set_value(CodeOffsets::OSR_Entry, _first_block_size);
3393     } else {
3394       _code_offsets.set_value(CodeOffsets::Verified_Entry, _first_block_size);
3395       _code_offsets.set_value(CodeOffsets::OSR_Entry, 0);
3396     }
3397 
3398     C->env()->register_method(target,
3399                                      entry_bci,
3400                                      &_code_offsets,
3401                                      _orig_pc_slot_offset_in_bytes,
3402                                      code_buffer(),
3403                                      frame_size_in_words(),
3404                                      oop_map_set(),
3405                                      &_handler_table,
3406                                      inc_table(),
3407                                      compiler,
3408                                      has_unsafe_access,
3409                                      SharedRuntime::is_wide_vector(C->max_vector_size()),
3410                                      C->rtm_state(),
3411                                      C->native_invokers());
3412 
3413     if (C->log() != NULL) { // Print code cache state into compiler log
3414       C->log()->code_cache_state();
3415     }
3416   }
3417 }
3418 void PhaseOutput::install_stub(const char* stub_name) {
3419   // Entry point will be accessed using stub_entry_point();
3420   if (code_buffer() == NULL) {
3421     Matcher::soft_match_failure();
3422   } else {
3423     if (PrintAssembly && (WizardMode || Verbose))
3424       tty->print_cr("### Stub::%s", stub_name);
3425 
3426     if (!C->failing()) {
3427       assert(C->fixed_slots() == 0, "no fixed slots used for runtime stubs");
3428 
3429       // Make the NMethod
3430       // For now we mark the frame as never safe for profile stackwalking
3431       RuntimeStub *rs = RuntimeStub::new_runtime_stub(stub_name,

3390     if (C->is_osr_compilation()) {
3391       _code_offsets.set_value(CodeOffsets::Verified_Entry, 0);
3392       _code_offsets.set_value(CodeOffsets::OSR_Entry, _first_block_size);
3393     } else {
3394       _code_offsets.set_value(CodeOffsets::Verified_Entry, _first_block_size);
3395       _code_offsets.set_value(CodeOffsets::OSR_Entry, 0);
3396     }
3397 
3398     C->env()->register_method(target,
3399                                      entry_bci,
3400                                      &_code_offsets,
3401                                      _orig_pc_slot_offset_in_bytes,
3402                                      code_buffer(),
3403                                      frame_size_in_words(),
3404                                      oop_map_set(),
3405                                      &_handler_table,
3406                                      inc_table(),
3407                                      compiler,
3408                                      has_unsafe_access,
3409                                      SharedRuntime::is_wide_vector(C->max_vector_size()),
3410                                      C->rtm_state());

3411 
3412     if (C->log() != NULL) { // Print code cache state into compiler log
3413       C->log()->code_cache_state();
3414     }
3415   }
3416 }
3417 void PhaseOutput::install_stub(const char* stub_name) {
3418   // Entry point will be accessed using stub_entry_point();
3419   if (code_buffer() == NULL) {
3420     Matcher::soft_match_failure();
3421   } else {
3422     if (PrintAssembly && (WizardMode || Verbose))
3423       tty->print_cr("### Stub::%s", stub_name);
3424 
3425     if (!C->failing()) {
3426       assert(C->fixed_slots() == 0, "no fixed slots used for runtime stubs");
3427 
3428       // Make the NMethod
3429       // For now we mark the frame as never safe for profile stackwalking
3430       RuntimeStub *rs = RuntimeStub::new_runtime_stub(stub_name,
< prev index next >