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

Side by Side Diff: src/ic/arm/ic-arm.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/full-codegen/x64/full-codegen-x64.cc ('k') | src/ic/arm64/ic-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 static void LoadIC_PushArgs(MacroAssembler* masm) { 293 static void LoadIC_PushArgs(MacroAssembler* masm) {
294 Register receiver = LoadDescriptor::ReceiverRegister(); 294 Register receiver = LoadDescriptor::ReceiverRegister();
295 Register name = LoadDescriptor::NameRegister(); 295 Register name = LoadDescriptor::NameRegister();
296 Register slot = LoadDescriptor::SlotRegister(); 296 Register slot = LoadDescriptor::SlotRegister();
297 Register vector = LoadWithVectorDescriptor::VectorRegister(); 297 Register vector = LoadWithVectorDescriptor::VectorRegister();
298 298
299 __ Push(receiver, name, slot, vector); 299 __ Push(receiver, name, slot, vector);
300 } 300 }
301 301
302 302
303 void LoadIC::GenerateMiss(MacroAssembler* masm) { 303 void LoadIC::GenerateMiss(MacroAssembler* masm, int stress) {
304 // The return address is in lr. 304 // The return address is in lr.
305 Isolate* isolate = masm->isolate(); 305 Isolate* isolate = masm->isolate();
306 306
307 DCHECK(!AreAliased(r4, r5, LoadWithVectorDescriptor::SlotRegister(), 307 DCHECK(!AreAliased(r4, r5, LoadWithVectorDescriptor::SlotRegister(),
308 LoadWithVectorDescriptor::VectorRegister())); 308 LoadWithVectorDescriptor::VectorRegister()));
309 __ IncrementCounter(isolate->counters()->load_miss(), 1, r4, r5); 309 __ IncrementCounter(isolate->counters()->load_miss(), 1, r4, r5);
310 310
311 LoadIC_PushArgs(masm); 311 LoadIC_PushArgs(masm);
312 312
313 // Perform tail call to the entry. 313 // Perform tail call to the entry.
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 patcher.EmitCondition(ne); 911 patcher.EmitCondition(ne);
912 } else { 912 } else {
913 DCHECK(Assembler::GetCondition(branch_instr) == ne); 913 DCHECK(Assembler::GetCondition(branch_instr) == ne);
914 patcher.EmitCondition(eq); 914 patcher.EmitCondition(eq);
915 } 915 }
916 } 916 }
917 } // namespace internal 917 } // namespace internal
918 } // namespace v8 918 } // namespace v8
919 919
920 #endif // V8_TARGET_ARCH_ARM 920 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/ic/arm64/ic-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698