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

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

Issue 1169763003: PPC: Vector ICs: debugger should save registers for vector store ics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 RegList regs = receiver.bit() | name.bit() | slot.bit(); 165 RegList regs = receiver.bit() | name.bit() | slot.bit();
166 Generate_DebugBreakCallHelper(masm, regs, 0); 166 Generate_DebugBreakCallHelper(masm, regs, 0);
167 } 167 }
168 168
169 169
170 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) { 170 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) {
171 // Calling convention for IC store (from ic-ppc.cc). 171 // Calling convention for IC store (from ic-ppc.cc).
172 Register receiver = StoreDescriptor::ReceiverRegister(); 172 Register receiver = StoreDescriptor::ReceiverRegister();
173 Register name = StoreDescriptor::NameRegister(); 173 Register name = StoreDescriptor::NameRegister();
174 Register value = StoreDescriptor::ValueRegister(); 174 Register value = StoreDescriptor::ValueRegister();
175 Generate_DebugBreakCallHelper(masm, receiver.bit() | name.bit() | value.bit(), 175 RegList regs = receiver.bit() | name.bit() | value.bit();
176 0); 176 if (FLAG_vector_stores) {
177 regs |= VectorStoreICDescriptor::SlotRegister().bit();
178 }
179 Generate_DebugBreakCallHelper(masm, regs, 0);
177 } 180 }
178 181
179 182
180 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { 183 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) {
181 // Calling convention for keyed IC load (from ic-ppc.cc). 184 // Calling convention for keyed IC load (from ic-ppc.cc).
182 GenerateLoadICDebugBreak(masm); 185 GenerateLoadICDebugBreak(masm);
183 } 186 }
184 187
185 188
186 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) { 189 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) {
187 // Calling convention for IC keyed store call (from ic-ppc.cc). 190 // Calling convention for IC keyed store call (from ic-ppc.cc).
188 Register receiver = StoreDescriptor::ReceiverRegister(); 191 GenerateStoreICDebugBreak(masm);
189 Register name = StoreDescriptor::NameRegister();
190 Register value = StoreDescriptor::ValueRegister();
191 Generate_DebugBreakCallHelper(masm, receiver.bit() | name.bit() | value.bit(),
192 0);
193 } 192 }
194 193
195 194
196 void DebugCodegen::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { 195 void DebugCodegen::GenerateCompareNilICDebugBreak(MacroAssembler* masm) {
197 // Register state for CompareNil IC 196 // Register state for CompareNil IC
198 // ----------- S t a t e ------------- 197 // ----------- S t a t e -------------
199 // -- r3 : value 198 // -- r3 : value
200 // ----------------------------------- 199 // -----------------------------------
201 Generate_DebugBreakCallHelper(masm, r3.bit(), 0); 200 Generate_DebugBreakCallHelper(masm, r3.bit(), 0);
202 } 201 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 } 296 }
298 297
299 298
300 const bool LiveEdit::kFrameDropperSupported = true; 299 const bool LiveEdit::kFrameDropperSupported = true;
301 300
302 #undef __ 301 #undef __
303 } // namespace internal 302 } // namespace internal
304 } // namespace v8 303 } // namespace v8
305 304
306 #endif // V8_TARGET_ARCH_PPC 305 #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