Mercurial > hg > truffle
diff src/cpu/sparc/vm/relocInfo_sparc.cpp @ 14396:583211d4b16b
Merge
author | kvn |
---|---|
date | Wed, 03 Jul 2013 11:50:29 -0700 |
parents | 7875ea94bea5 |
children | 740e263c80c6 |
line wrap: on
line diff
--- a/src/cpu/sparc/vm/relocInfo_sparc.cpp Wed Jun 26 16:06:38 2013 +0200 +++ b/src/cpu/sparc/vm/relocInfo_sparc.cpp Wed Jul 03 11:50:29 2013 -0700 @@ -193,36 +193,6 @@ return *(address*)addr(); } - -int Relocation::pd_breakpoint_size() { - // minimum breakpoint size, in short words - return NativeIllegalInstruction::instruction_size / sizeof(short); -} - -void Relocation::pd_swap_in_breakpoint(address x, short* instrs, int instrlen) { - Untested("pd_swap_in_breakpoint"); - // %%% probably do not need a general instrlen; just use the trap size - if (instrs != NULL) { - assert(instrlen * sizeof(short) == NativeIllegalInstruction::instruction_size, "enough instrlen in reloc. data"); - for (int i = 0; i < instrlen; i++) { - instrs[i] = ((short*)x)[i]; - } - } - NativeIllegalInstruction::insert(x); -} - - -void Relocation::pd_swap_out_breakpoint(address x, short* instrs, int instrlen) { - Untested("pd_swap_out_breakpoint"); - assert(instrlen * sizeof(short) == sizeof(int), "enough buf"); - union { int l; short s[1]; } u; - for (int i = 0; i < instrlen; i++) { - u.s[i] = instrs[i]; - } - NativeInstruction* ni = nativeInstruction_at(x); - ni->set_long_at(0, u.l); -} - void poll_Relocation::fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest) { }