561 , _osr_bci(osr_bci)
562 , _hir(NULL)
563 , _max_spills(-1)
564 , _frame_map(NULL)
565 , _masm(NULL)
566 , _has_exception_handlers(false)
567 , _has_fpu_code(true) // pessimistic assumption
568 , _has_unsafe_access(false)
569 , _has_irreducible_loops(false)
570 , _would_profile(false)
571 , _has_method_handle_invokes(false)
572 , _has_reserved_stack_access(method->has_reserved_stack_access())
573 , _has_monitors(false)
574 , _install_code(install_code)
575 , _bailout_msg(NULL)
576 , _exception_info_list(NULL)
577 , _allocator(NULL)
578 , _code(buffer_blob)
579 , _has_access_indexed(false)
580 , _interpreter_frame_size(0)
581 , _immediate_oops_patched(0)
582 , _current_instruction(NULL)
583 #ifndef PRODUCT
584 , _last_instruction_printed(NULL)
585 , _cfg_printer_output(NULL)
586 #endif // PRODUCT
587 {
588 PhaseTraceTime timeit(_t_compile);
589 _arena = Thread::current()->resource_area();
590 _env->set_compiler_data(this);
591 _exception_info_list = new ExceptionInfoList();
592 _implicit_exception_table.set_size(0);
593 #ifndef PRODUCT
594 if (PrintCFGToFile) {
595 _cfg_printer_output = new CFGPrinterOutput(this);
596 }
597 #endif
598 compile_method();
599 if (bailed_out()) {
600 _env->record_method_not_compilable(bailout_msg());
601 if (is_profiling()) {
602 // Compilation failed, create MDO, which would signal the interpreter
603 // to start profiling on its own.
604 _method->ensure_method_data();
605 }
606 } else if (is_profiling()) {
607 ciMethodData *md = method->method_data_or_null();
608 if (md != NULL) {
609 md->set_would_profile(_would_profile);
610 }
611 }
612 }
613
614 Compilation::~Compilation() {
615 // simulate crash during compilation
616 assert(CICrashAt < 0 || (uintx)_env->compile_id() != (uintx)CICrashAt, "just as planned");
617
|
561 , _osr_bci(osr_bci)
562 , _hir(NULL)
563 , _max_spills(-1)
564 , _frame_map(NULL)
565 , _masm(NULL)
566 , _has_exception_handlers(false)
567 , _has_fpu_code(true) // pessimistic assumption
568 , _has_unsafe_access(false)
569 , _has_irreducible_loops(false)
570 , _would_profile(false)
571 , _has_method_handle_invokes(false)
572 , _has_reserved_stack_access(method->has_reserved_stack_access())
573 , _has_monitors(false)
574 , _install_code(install_code)
575 , _bailout_msg(NULL)
576 , _exception_info_list(NULL)
577 , _allocator(NULL)
578 , _code(buffer_blob)
579 , _has_access_indexed(false)
580 , _interpreter_frame_size(0)
581 , _compiled_entry_signature(method->get_Method())
582 , _immediate_oops_patched(0)
583 , _current_instruction(NULL)
584 #ifndef PRODUCT
585 , _last_instruction_printed(NULL)
586 , _cfg_printer_output(NULL)
587 #endif // PRODUCT
588 {
589 PhaseTraceTime timeit(_t_compile);
590 _arena = Thread::current()->resource_area();
591 _env->set_compiler_data(this);
592 _exception_info_list = new ExceptionInfoList();
593 _implicit_exception_table.set_size(0);
594 #ifndef PRODUCT
595 if (PrintCFGToFile) {
596 _cfg_printer_output = new CFGPrinterOutput(this);
597 }
598 #endif
599 {
600 ResetNoHandleMark rnhm; // Huh? Required when doing class lookup of the Q-types
601 _compiled_entry_signature.compute_calling_conventions(false);
602 }
603 compile_method();
604 if (bailed_out()) {
605 _env->record_method_not_compilable(bailout_msg());
606 if (is_profiling()) {
607 // Compilation failed, create MDO, which would signal the interpreter
608 // to start profiling on its own.
609 _method->ensure_method_data();
610 }
611 } else if (is_profiling()) {
612 ciMethodData *md = method->method_data_or_null();
613 if (md != NULL) {
614 md->set_would_profile(_would_profile);
615 }
616 }
617 }
618
619 Compilation::~Compilation() {
620 // simulate crash during compilation
621 assert(CICrashAt < 0 || (uintx)_env->compile_id() != (uintx)CICrashAt, "just as planned");
622
|