Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: src/ppc/debug-ppc.cc

Issue 1232123006: PPC: Debugger: record reloc info for debug break slot immediate before the slot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@patch7
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 132
133 void DebugCodegen::GenerateReturnDebugBreak(MacroAssembler* masm) { 133 void DebugCodegen::GenerateReturnDebugBreak(MacroAssembler* masm) {
134 // In places other than IC call sites it is expected that r3 is TOS which 134 // In places other than IC call sites it is expected that r3 is TOS which
135 // is an object - this is not generally the case so this should be used with 135 // is an object - this is not generally the case so this should be used with
136 // care. 136 // care.
137 Generate_DebugBreakCallHelper(masm, r3.bit()); 137 Generate_DebugBreakCallHelper(masm, r3.bit());
138 } 138 }
139 139
140 140
141 void DebugCodegen::GenerateSlot(MacroAssembler* masm) { 141 void DebugCodegen::GenerateSlot(MacroAssembler* masm,
142 DebugCodegen::SlotLocation location,
143 int call_argc) {
142 // Generate enough nop's to make space for a call instruction. Avoid emitting 144 // Generate enough nop's to make space for a call instruction. Avoid emitting
143 // the trampoline pool in the debug break slot code. 145 // the trampoline pool in the debug break slot code.
144 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm); 146 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm);
145 Label check_codesize; 147 Label check_codesize;
146 __ bind(&check_codesize); 148 __ bind(&check_codesize);
149 RecordRelocInfo(masm, location, call_argc);
147 for (int i = 0; i < Assembler::kDebugBreakSlotInstructions; i++) { 150 for (int i = 0; i < Assembler::kDebugBreakSlotInstructions; i++) {
148 __ nop(MacroAssembler::DEBUG_BREAK_NOP); 151 __ nop(MacroAssembler::DEBUG_BREAK_NOP);
149 } 152 }
150 DCHECK_EQ(Assembler::kDebugBreakSlotInstructions, 153 DCHECK_EQ(Assembler::kDebugBreakSlotInstructions,
151 masm->InstructionsGeneratedSince(&check_codesize)); 154 masm->InstructionsGeneratedSince(&check_codesize));
152 } 155 }
153 156
154 157
155 void DebugCodegen::GenerateSlotDebugBreak(MacroAssembler* masm) { 158 void DebugCodegen::GenerateSlotDebugBreak(MacroAssembler* masm) {
156 // In the places where a debug break slot is inserted no registers can contain 159 // In the places where a debug break slot is inserted no registers can contain
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 195 }
193 196
194 197
195 const bool LiveEdit::kFrameDropperSupported = true; 198 const bool LiveEdit::kFrameDropperSupported = true;
196 199
197 #undef __ 200 #undef __
198 } // namespace internal 201 } // namespace internal
199 } // namespace v8 202 } // namespace v8
200 203
201 #endif // V8_TARGET_ARCH_PPC 204 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698