< prev index next >

src/hotspot/share/c1/c1_LIRAssembler.cpp

Print this page
rev 51443 : 8208480: Test failure: assert(is_bound() || is_unused()) after JDK-8206075 in C1


  95   return PatchingStub::load_mirror_id;
  96 }
  97 
  98 //---------------------------------------------------------------
  99 
 100 
 101 LIR_Assembler::LIR_Assembler(Compilation* c):
 102    _masm(c->masm())
 103  , _bs(BarrierSet::barrier_set())
 104  , _compilation(c)
 105  , _frame_map(c->frame_map())
 106  , _current_block(NULL)
 107  , _pending_non_safepoint(NULL)
 108  , _pending_non_safepoint_offset(0)
 109 {
 110   _slow_case_stubs = new CodeStubList();
 111 }
 112 
 113 
 114 LIR_Assembler::~LIR_Assembler() {



 115 }
 116 
 117 
 118 void LIR_Assembler::check_codespace() {
 119   CodeSection* cs = _masm->code_section();
 120   if (cs->remaining() < (int)(NOT_LP64(1*K)LP64_ONLY(2*K))) {
 121     BAILOUT("CodeBuffer overflow");
 122   }
 123 }
 124 
 125 
 126 void LIR_Assembler::append_code_stub(CodeStub* stub) {
 127   _slow_case_stubs->append(stub);
 128 }
 129 
 130 void LIR_Assembler::emit_stubs(CodeStubList* stub_list) {
 131   for (int m = 0; m < stub_list->length(); m++) {
 132     CodeStub* s = stub_list->at(m);
 133 
 134     check_codespace();




  95   return PatchingStub::load_mirror_id;
  96 }
  97 
  98 //---------------------------------------------------------------
  99 
 100 
 101 LIR_Assembler::LIR_Assembler(Compilation* c):
 102    _masm(c->masm())
 103  , _bs(BarrierSet::barrier_set())
 104  , _compilation(c)
 105  , _frame_map(c->frame_map())
 106  , _current_block(NULL)
 107  , _pending_non_safepoint(NULL)
 108  , _pending_non_safepoint_offset(0)
 109 {
 110   _slow_case_stubs = new CodeStubList();
 111 }
 112 
 113 
 114 LIR_Assembler::~LIR_Assembler() {
 115   // The unwind handler label may be unnbound if this destructor is invoked because of a bail-out.
 116   // Reset it here to avoid an assertion.
 117   _unwind_handler_entry.reset();
 118 }
 119 
 120 
 121 void LIR_Assembler::check_codespace() {
 122   CodeSection* cs = _masm->code_section();
 123   if (cs->remaining() < (int)(NOT_LP64(1*K)LP64_ONLY(2*K))) {
 124     BAILOUT("CodeBuffer overflow");
 125   }
 126 }
 127 
 128 
 129 void LIR_Assembler::append_code_stub(CodeStub* stub) {
 130   _slow_case_stubs->append(stub);
 131 }
 132 
 133 void LIR_Assembler::emit_stubs(CodeStubList* stub_list) {
 134   for (int m = 0; m < stub_list->length(); m++) {
 135     CodeStub* s = stub_list->at(m);
 136 
 137     check_codespace();


< prev index next >