PPC: Debugger: record reloc info for debug break slot immediate before the slot.
Port 0a19e44925
Original commit message:
If we do it too early, we might get a constant pool between the reloc info
and the actual slot.
R=yangguo@chromium.org, dstence@us.ibm.com, michael_dawson@ca.ibm.com
BUG=
Review URL: https://codereview.chromium.org/1232123006
Cr-Commit-Position: refs/heads/master@{#29585}
This commit is contained in:
parent
ceb6de68dc
commit
f91119c455
@ -138,12 +138,15 @@ void DebugCodegen::GenerateReturnDebugBreak(MacroAssembler* masm) {
|
||||
}
|
||||
|
||||
|
||||
void DebugCodegen::GenerateSlot(MacroAssembler* masm) {
|
||||
void DebugCodegen::GenerateSlot(MacroAssembler* masm,
|
||||
DebugCodegen::SlotLocation location,
|
||||
int call_argc) {
|
||||
// Generate enough nop's to make space for a call instruction. Avoid emitting
|
||||
// the trampoline pool in the debug break slot code.
|
||||
Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm);
|
||||
Label check_codesize;
|
||||
__ bind(&check_codesize);
|
||||
RecordRelocInfo(masm, location, call_argc);
|
||||
for (int i = 0; i < Assembler::kDebugBreakSlotInstructions; i++) {
|
||||
__ nop(MacroAssembler::DEBUG_BREAK_NOP);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user