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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 Register name = StoreDescriptor::NameRegister(); | 740 Register name = StoreDescriptor::NameRegister(); |
741 DCHECK(receiver.is(r1)); | 741 DCHECK(receiver.is(r1)); |
742 DCHECK(name.is(r2)); | 742 DCHECK(name.is(r2)); |
743 DCHECK(StoreDescriptor::ValueRegister().is(r0)); | 743 DCHECK(StoreDescriptor::ValueRegister().is(r0)); |
744 | 744 |
745 // Get the receiver from the stack and probe the stub cache. | 745 // Get the receiver from the stack and probe the stub cache. |
746 Code::Flags flags = | 746 Code::Flags flags = |
747 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); | 747 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
748 | 748 |
749 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, | 749 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, |
750 receiver, name, r5, r6, r7, r8); | 750 receiver, name, r3, r4, r5, r6); |
751 | 751 |
752 // Cache miss: Jump to runtime. | 752 // Cache miss: Jump to runtime. |
753 GenerateMiss(masm); | 753 GenerateMiss(masm); |
754 } | 754 } |
755 | 755 |
756 | 756 |
757 void StoreIC::GenerateMiss(MacroAssembler* masm) { | 757 void StoreIC::GenerateMiss(MacroAssembler* masm) { |
758 StoreIC_PushArgs(masm); | 758 StoreIC_PushArgs(masm); |
759 | 759 |
760 // Perform tail call to the entry. | 760 // Perform tail call to the entry. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 patcher.EmitCondition(ne); | 879 patcher.EmitCondition(ne); |
880 } else { | 880 } else { |
881 DCHECK(Assembler::GetCondition(branch_instr) == ne); | 881 DCHECK(Assembler::GetCondition(branch_instr) == ne); |
882 patcher.EmitCondition(eq); | 882 patcher.EmitCondition(eq); |
883 } | 883 } |
884 } | 884 } |
885 } // namespace internal | 885 } // namespace internal |
886 } // namespace v8 | 886 } // namespace v8 |
887 | 887 |
888 #endif // V8_TARGET_ARCH_ARM | 888 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |