82 ShouldNotReachHere();
83 }
84 #endif
85 }
86
87 PatchingStub::PatchID LIR_Assembler::patching_id(CodeEmitInfo* info) {
88 IRScope* scope = info->scope();
89 Bytecodes::Code bc_raw = scope->method()->raw_code_at_bci(info->stack()->bci());
90 if (Bytecodes::has_optional_appendix(bc_raw)) {
91 return PatchingStub::load_appendix_id;
92 }
93 return PatchingStub::load_mirror_id;
94 }
95
96 //---------------------------------------------------------------
97
98
99 LIR_Assembler::LIR_Assembler(Compilation* c):
100 _compilation(c)
101 , _masm(c->masm())
102 , _bs(Universe::heap()->barrier_set())
103 , _frame_map(c->frame_map())
104 , _current_block(NULL)
105 , _pending_non_safepoint(NULL)
106 , _pending_non_safepoint_offset(0)
107 {
108 _slow_case_stubs = new CodeStubList();
109 }
110
111
112 LIR_Assembler::~LIR_Assembler() {
113 }
114
115
116 void LIR_Assembler::check_codespace() {
117 CodeSection* cs = _masm->code_section();
118 if (cs->remaining() < (int)(NOT_LP64(1*K)LP64_ONLY(2*K))) {
119 BAILOUT("CodeBuffer overflow");
120 }
121 }
122
|
82 ShouldNotReachHere();
83 }
84 #endif
85 }
86
87 PatchingStub::PatchID LIR_Assembler::patching_id(CodeEmitInfo* info) {
88 IRScope* scope = info->scope();
89 Bytecodes::Code bc_raw = scope->method()->raw_code_at_bci(info->stack()->bci());
90 if (Bytecodes::has_optional_appendix(bc_raw)) {
91 return PatchingStub::load_appendix_id;
92 }
93 return PatchingStub::load_mirror_id;
94 }
95
96 //---------------------------------------------------------------
97
98
99 LIR_Assembler::LIR_Assembler(Compilation* c):
100 _compilation(c)
101 , _masm(c->masm())
102 , _bs(GC::gc()->heap()->barrier_set())
103 , _frame_map(c->frame_map())
104 , _current_block(NULL)
105 , _pending_non_safepoint(NULL)
106 , _pending_non_safepoint_offset(0)
107 {
108 _slow_case_stubs = new CodeStubList();
109 }
110
111
112 LIR_Assembler::~LIR_Assembler() {
113 }
114
115
116 void LIR_Assembler::check_codespace() {
117 CodeSection* cs = _masm->code_section();
118 if (cs->remaining() < (int)(NOT_LP64(1*K)LP64_ONLY(2*K))) {
119 BAILOUT("CodeBuffer overflow");
120 }
121 }
122
|