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

Side by Side Diff: src/ic/mips64/ic-mips64.cc

Issue 1351493002: Extra code to diagnose a crash bug. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code comments. Created 5 years, 3 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 | « src/ic/mips/ic-mips.cc ('k') | src/ic/ppc/ic-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 #include "src/ic/ic-compiler.h" 9 #include "src/ic/ic-compiler.h"
10 #include "src/ic/stub-cache.h" 10 #include "src/ic/stub-cache.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 static void LoadIC_PushArgs(MacroAssembler* masm) { 296 static void LoadIC_PushArgs(MacroAssembler* masm) {
297 Register receiver = LoadDescriptor::ReceiverRegister(); 297 Register receiver = LoadDescriptor::ReceiverRegister();
298 Register name = LoadDescriptor::NameRegister(); 298 Register name = LoadDescriptor::NameRegister();
299 Register slot = LoadDescriptor::SlotRegister(); 299 Register slot = LoadDescriptor::SlotRegister();
300 Register vector = LoadWithVectorDescriptor::VectorRegister(); 300 Register vector = LoadWithVectorDescriptor::VectorRegister();
301 301
302 __ Push(receiver, name, slot, vector); 302 __ Push(receiver, name, slot, vector);
303 } 303 }
304 304
305 305
306 void LoadIC::GenerateMiss(MacroAssembler* masm) { 306 void LoadIC::GenerateMiss(MacroAssembler* masm, int stress) {
307 // The return address is on the stack. 307 // The return address is on the stack.
308 Isolate* isolate = masm->isolate(); 308 Isolate* isolate = masm->isolate();
309 309
310 DCHECK(!AreAliased(a4, a5, LoadWithVectorDescriptor::SlotRegister(), 310 DCHECK(!AreAliased(a4, a5, LoadWithVectorDescriptor::SlotRegister(),
311 LoadWithVectorDescriptor::VectorRegister())); 311 LoadWithVectorDescriptor::VectorRegister()));
312 __ IncrementCounter(isolate->counters()->load_miss(), 1, a4, a5); 312 __ IncrementCounter(isolate->counters()->load_miss(), 1, a4, a5);
313 313
314 LoadIC_PushArgs(masm); 314 LoadIC_PushArgs(masm);
315 315
316 // Perform tail call to the entry. 316 // Perform tail call to the entry.
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 patcher.ChangeBranchCondition(ne); 903 patcher.ChangeBranchCondition(ne);
904 } else { 904 } else {
905 DCHECK(Assembler::IsBne(branch_instr)); 905 DCHECK(Assembler::IsBne(branch_instr));
906 patcher.ChangeBranchCondition(eq); 906 patcher.ChangeBranchCondition(eq);
907 } 907 }
908 } 908 }
909 } // namespace internal 909 } // namespace internal
910 } // namespace v8 910 } // namespace v8
911 911
912 #endif // V8_TARGET_ARCH_MIPS64 912 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips/ic-mips.cc ('k') | src/ic/ppc/ic-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698