OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |