OLD | NEW |
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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 Register receiver = StoreDescriptor::ReceiverRegister(); | 737 Register receiver = StoreDescriptor::ReceiverRegister(); |
738 Register name = StoreDescriptor::NameRegister(); | 738 Register name = StoreDescriptor::NameRegister(); |
739 DCHECK(receiver.is(a1)); | 739 DCHECK(receiver.is(a1)); |
740 DCHECK(name.is(a2)); | 740 DCHECK(name.is(a2)); |
741 DCHECK(StoreDescriptor::ValueRegister().is(a0)); | 741 DCHECK(StoreDescriptor::ValueRegister().is(a0)); |
742 | 742 |
743 // Get the receiver from the stack and probe the stub cache. | 743 // Get the receiver from the stack and probe the stub cache. |
744 Code::Flags flags = | 744 Code::Flags flags = |
745 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); | 745 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
746 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, | 746 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, |
747 receiver, name, a3, a4, a5, a6); | 747 receiver, name, a5, a6, a7, t0); |
748 | 748 |
749 // Cache miss: Jump to runtime. | 749 // Cache miss: Jump to runtime. |
750 GenerateMiss(masm); | 750 GenerateMiss(masm); |
751 } | 751 } |
752 | 752 |
753 | 753 |
754 void StoreIC::GenerateMiss(MacroAssembler* masm) { | 754 void StoreIC::GenerateMiss(MacroAssembler* masm) { |
755 StoreIC_PushArgs(masm); | 755 StoreIC_PushArgs(masm); |
756 | 756 |
757 // Perform tail call to the entry. | 757 // Perform tail call to the entry. |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 break; | 904 break; |
905 default: | 905 default: |
906 UNIMPLEMENTED(); | 906 UNIMPLEMENTED(); |
907 } | 907 } |
908 patcher.ChangeBranchCondition(branch_instr, opcode); | 908 patcher.ChangeBranchCondition(branch_instr, opcode); |
909 } | 909 } |
910 } // namespace internal | 910 } // namespace internal |
911 } // namespace v8 | 911 } // namespace v8 |
912 | 912 |
913 #endif // V8_TARGET_ARCH_MIPS64 | 913 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |