| 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 Register receiver = StoreDescriptor::ReceiverRegister(); | 733 Register receiver = StoreDescriptor::ReceiverRegister(); |
| 734 Register name = StoreDescriptor::NameRegister(); | 734 Register name = StoreDescriptor::NameRegister(); |
| 735 DCHECK(receiver.is(a1)); | 735 DCHECK(receiver.is(a1)); |
| 736 DCHECK(name.is(a2)); | 736 DCHECK(name.is(a2)); |
| 737 DCHECK(StoreDescriptor::ValueRegister().is(a0)); | 737 DCHECK(StoreDescriptor::ValueRegister().is(a0)); |
| 738 | 738 |
| 739 // Get the receiver from the stack and probe the stub cache. | 739 // Get the receiver from the stack and probe the stub cache. |
| 740 Code::Flags flags = | 740 Code::Flags flags = |
| 741 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); | 741 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
| 742 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, | 742 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, |
| 743 receiver, name, a3, t0, t1, t2); | 743 receiver, name, t1, t2, t3, t4); |
| 744 | 744 |
| 745 // Cache miss: Jump to runtime. | 745 // Cache miss: Jump to runtime. |
| 746 GenerateMiss(masm); | 746 GenerateMiss(masm); |
| 747 } | 747 } |
| 748 | 748 |
| 749 | 749 |
| 750 void StoreIC::GenerateMiss(MacroAssembler* masm) { | 750 void StoreIC::GenerateMiss(MacroAssembler* masm) { |
| 751 StoreIC_PushArgs(masm); | 751 StoreIC_PushArgs(masm); |
| 752 | 752 |
| 753 // Perform tail call to the entry. | 753 // Perform tail call to the entry. |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 break; | 902 break; |
| 903 default: | 903 default: |
| 904 UNIMPLEMENTED(); | 904 UNIMPLEMENTED(); |
| 905 } | 905 } |
| 906 patcher.ChangeBranchCondition(branch_instr, opcode); | 906 patcher.ChangeBranchCondition(branch_instr, opcode); |
| 907 } | 907 } |
| 908 } // namespace internal | 908 } // namespace internal |
| 909 } // namespace v8 | 909 } // namespace v8 |
| 910 | 910 |
| 911 #endif // V8_TARGET_ARCH_MIPS | 911 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |