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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 Register receiver = StoreDescriptor::ReceiverRegister(); | 743 Register receiver = StoreDescriptor::ReceiverRegister(); |
744 Register name = StoreDescriptor::NameRegister(); | 744 Register name = StoreDescriptor::NameRegister(); |
745 DCHECK(receiver.is(r4)); | 745 DCHECK(receiver.is(r4)); |
746 DCHECK(name.is(r5)); | 746 DCHECK(name.is(r5)); |
747 DCHECK(StoreDescriptor::ValueRegister().is(r3)); | 747 DCHECK(StoreDescriptor::ValueRegister().is(r3)); |
748 | 748 |
749 // Get the receiver from the stack and probe the stub cache. | 749 // Get the receiver from the stack and probe the stub cache. |
750 Code::Flags flags = | 750 Code::Flags flags = |
751 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); | 751 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
752 | 752 |
753 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, | 753 masm->isolate()->stub_cache()->GenerateProbe( |
754 receiver, name, r6, r7, r8, r9); | 754 masm, Code::STORE_IC, flags, receiver, name, r8, r9, r10, r11); |
755 | 755 |
756 // Cache miss: Jump to runtime. | 756 // Cache miss: Jump to runtime. |
757 GenerateMiss(masm); | 757 GenerateMiss(masm); |
758 } | 758 } |
759 | 759 |
760 | 760 |
761 void StoreIC::GenerateMiss(MacroAssembler* masm) { | 761 void StoreIC::GenerateMiss(MacroAssembler* masm) { |
762 StoreIC_PushArgs(masm); | 762 StoreIC_PushArgs(masm); |
763 | 763 |
764 // Perform tail call to the entry. | 764 // Perform tail call to the entry. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 patcher.EmitCondition(ne); | 887 patcher.EmitCondition(ne); |
888 } else { | 888 } else { |
889 DCHECK(Assembler::GetCondition(branch_instr) == ne); | 889 DCHECK(Assembler::GetCondition(branch_instr) == ne); |
890 patcher.EmitCondition(eq); | 890 patcher.EmitCondition(eq); |
891 } | 891 } |
892 } | 892 } |
893 } // namespace internal | 893 } // namespace internal |
894 } // namespace v8 | 894 } // namespace v8 |
895 | 895 |
896 #endif // V8_TARGET_ARCH_PPC | 896 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |