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

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

Issue 2351643005: [ic] Reorder parameters of StoreIC_Miss and KeyedStoreIC_Miss runtime functions. (Closed)
Patch Set: Created 4 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/mips64/ic-mips64.cc ('k') | src/ic/s390/ic-s390.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 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 #if V8_TARGET_ARCH_PPC 5 #if V8_TARGET_ARCH_PPC
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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 __ Ret(); 444 __ Ret();
445 445
446 __ bind(&index_name); 446 __ bind(&index_name);
447 __ IndexFromHash(r6, key); 447 __ IndexFromHash(r6, key);
448 // Now jump to the place where smi keys are handled. 448 // Now jump to the place where smi keys are handled.
449 __ b(&index_smi); 449 __ b(&index_smi);
450 } 450 }
451 451
452 452
453 static void StoreIC_PushArgs(MacroAssembler* masm) { 453 static void StoreIC_PushArgs(MacroAssembler* masm) {
454 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), 454 __ Push(StoreWithVectorDescriptor::ValueRegister(),
455 StoreDescriptor::ValueRegister(),
456 StoreWithVectorDescriptor::SlotRegister(), 455 StoreWithVectorDescriptor::SlotRegister(),
457 StoreWithVectorDescriptor::VectorRegister()); 456 StoreWithVectorDescriptor::VectorRegister(),
457 StoreWithVectorDescriptor::ReceiverRegister(),
458 StoreWithVectorDescriptor::NameRegister());
458 } 459 }
459 460
460 461
461 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) { 462 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) {
462 StoreIC_PushArgs(masm); 463 StoreIC_PushArgs(masm);
463 464
464 __ TailCallRuntime(Runtime::kKeyedStoreIC_Miss); 465 __ TailCallRuntime(Runtime::kKeyedStoreIC_Miss);
465 } 466 }
466 467
467 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { 468 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) {
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 patcher.EmitCondition(ne); 871 patcher.EmitCondition(ne);
871 } else { 872 } else {
872 DCHECK(Assembler::GetCondition(branch_instr) == ne); 873 DCHECK(Assembler::GetCondition(branch_instr) == ne);
873 patcher.EmitCondition(eq); 874 patcher.EmitCondition(eq);
874 } 875 }
875 } 876 }
876 } // namespace internal 877 } // namespace internal
877 } // namespace v8 878 } // namespace v8
878 879
879 #endif // V8_TARGET_ARCH_PPC 880 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ic/mips64/ic-mips64.cc ('k') | src/ic/s390/ic-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698