852 #ifndef PRODUCT
853 if (should_print_igv(1)) {
854 _igv_printer->print_inlining();
855 }
856 #endif
857
858 if (failing()) return;
859 NOT_PRODUCT( verify_graph_edges(); )
860
861 // Now optimize
862 Optimize();
863 if (failing()) return;
864 NOT_PRODUCT( verify_graph_edges(); )
865
866 #ifndef PRODUCT
867 if (should_print_ideal()) {
868 print_ideal_ir("PrintIdeal");
869 }
870 #endif
871
872 #ifdef ASSERT
873 BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2();
874 bs->verify_gc_barriers(this, BarrierSetC2::BeforeCodeGen);
875 #endif
876
877 // Dump compilation data to replay it.
878 if (directive->DumpReplayOption) {
879 env()->dump_replay_data(_compile_id);
880 }
881 if (directive->DumpInlineOption && (ilt() != nullptr)) {
882 env()->dump_inline_data(_compile_id);
883 }
884
885 // Now that we know the size of all the monitors we can add a fixed slot
886 // for the original deopt pc.
887 int next_slot = fixed_slots() + (sizeof(address) / VMRegImpl::stack_slot_size);
888 set_fixed_slots(next_slot);
889
890 // Compute when to use implicit null checks. Used by matching trap based
891 // nodes and NullCheck optimization.
892 set_allowed_deopt_reasons();
893
|
852 #ifndef PRODUCT
853 if (should_print_igv(1)) {
854 _igv_printer->print_inlining();
855 }
856 #endif
857
858 if (failing()) return;
859 NOT_PRODUCT( verify_graph_edges(); )
860
861 // Now optimize
862 Optimize();
863 if (failing()) return;
864 NOT_PRODUCT( verify_graph_edges(); )
865
866 #ifndef PRODUCT
867 if (should_print_ideal()) {
868 print_ideal_ir("PrintIdeal");
869 }
870 #endif
871
872 BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2();
873
874 #ifdef ASSERT
875 bs->verify_gc_barriers(this, BarrierSetC2::AfterOptimize);
876 #endif
877
878 bs->final_refinement(this);
879
880 #ifdef ASSERT
881 bs->verify_gc_barriers(this, BarrierSetC2::BeforeCodeGen);
882 #endif
883
884 // Dump compilation data to replay it.
885 if (directive->DumpReplayOption) {
886 env()->dump_replay_data(_compile_id);
887 }
888 if (directive->DumpInlineOption && (ilt() != nullptr)) {
889 env()->dump_inline_data(_compile_id);
890 }
891
892 // Now that we know the size of all the monitors we can add a fixed slot
893 // for the original deopt pc.
894 int next_slot = fixed_slots() + (sizeof(address) / VMRegImpl::stack_slot_size);
895 set_fixed_slots(next_slot);
896
897 // Compute when to use implicit null checks. Used by matching trap based
898 // nodes and NullCheck optimization.
899 set_allowed_deopt_reasons();
900
|