< prev index next >

src/hotspot/share/c1/c1_Compilation.cpp

Print this page

553 , _method(method)
554 , _osr_bci(osr_bci)
555 , _hir(NULL)
556 , _max_spills(-1)
557 , _frame_map(NULL)
558 , _masm(NULL)
559 , _has_exception_handlers(false)
560 , _has_fpu_code(true)   // pessimistic assumption
561 , _has_unsafe_access(false)
562 , _has_irreducible_loops(false)
563 , _would_profile(false)
564 , _has_method_handle_invokes(false)
565 , _has_reserved_stack_access(method->has_reserved_stack_access())
566 , _install_code(install_code)
567 , _bailout_msg(NULL)
568 , _exception_info_list(NULL)
569 , _allocator(NULL)
570 , _code(buffer_blob)
571 , _has_access_indexed(false)
572 , _interpreter_frame_size(0)

573 , _current_instruction(NULL)
574 #ifndef PRODUCT
575 , _last_instruction_printed(NULL)
576 , _cfg_printer_output(NULL)
577 #endif // PRODUCT
578 {
579   PhaseTraceTime timeit(_t_compile);
580   _arena = Thread::current()->resource_area();
581   _env->set_compiler_data(this);
582   _exception_info_list = new ExceptionInfoList();
583   _implicit_exception_table.set_size(0);
584 #ifndef PRODUCT
585   if (PrintCFGToFile) {
586     _cfg_printer_output = new CFGPrinterOutput(this);
587   }
588 #endif




589   compile_method();
590   if (bailed_out()) {
591     _env->record_method_not_compilable(bailout_msg());
592     if (is_profiling()) {
593       // Compilation failed, create MDO, which would signal the interpreter
594       // to start profiling on its own.
595       _method->ensure_method_data();
596     }
597   } else if (is_profiling()) {
598     ciMethodData *md = method->method_data_or_null();
599     if (md != NULL) {
600       md->set_would_profile(_would_profile);
601     }
602   }
603 }
604 
605 Compilation::~Compilation() {
606   // simulate crash during compilation
607   assert(CICrashAt < 0 || (uintx)_env->compile_id() != (uintx)CICrashAt, "just as planned");
608 

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