comparison src/cpu/sparc/vm/relocInfo_sparc.cpp @ 11041:7875ea94bea5

8017308: Remove unused breakpoint relocation type Summary: remove unused breakpoint relocation type Reviewed-by: kvn
author goetz
date Mon, 24 Jun 2013 11:53:54 -0700
parents f0c2369fda5a
children 740e263c80c6
comparison
equal deleted inserted replaced
11025:fc8a1a5de78e 11041:7875ea94bea5
191 // SPARC never embeds addresses in code, at present. 191 // SPARC never embeds addresses in code, at present.
192 //assert(type() == relocInfo::oop_type, "only oops are inlined at present"); 192 //assert(type() == relocInfo::oop_type, "only oops are inlined at present");
193 return *(address*)addr(); 193 return *(address*)addr();
194 } 194 }
195 195
196
197 int Relocation::pd_breakpoint_size() {
198 // minimum breakpoint size, in short words
199 return NativeIllegalInstruction::instruction_size / sizeof(short);
200 }
201
202 void Relocation::pd_swap_in_breakpoint(address x, short* instrs, int instrlen) {
203 Untested("pd_swap_in_breakpoint");
204 // %%% probably do not need a general instrlen; just use the trap size
205 if (instrs != NULL) {
206 assert(instrlen * sizeof(short) == NativeIllegalInstruction::instruction_size, "enough instrlen in reloc. data");
207 for (int i = 0; i < instrlen; i++) {
208 instrs[i] = ((short*)x)[i];
209 }
210 }
211 NativeIllegalInstruction::insert(x);
212 }
213
214
215 void Relocation::pd_swap_out_breakpoint(address x, short* instrs, int instrlen) {
216 Untested("pd_swap_out_breakpoint");
217 assert(instrlen * sizeof(short) == sizeof(int), "enough buf");
218 union { int l; short s[1]; } u;
219 for (int i = 0; i < instrlen; i++) {
220 u.s[i] = instrs[i];
221 }
222 NativeInstruction* ni = nativeInstruction_at(x);
223 ni->set_long_at(0, u.l);
224 }
225
226 void poll_Relocation::fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest) { 196 void poll_Relocation::fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest) {
227 } 197 }
228 198
229 void poll_return_Relocation::fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest) { 199 void poll_return_Relocation::fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest) {
230 } 200 }