Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 1149903005: Vector ICs: Introduce Store and KeyedStore IC code stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@vector-stores
Patch Set: REBASE. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 4809 matching lines...) Expand 10 before | Expand all | Expand 10 after
4820 4820
4821 __ bind(&miss); 4821 __ bind(&miss);
4822 KeyedLoadIC::GenerateMiss(masm); 4822 KeyedLoadIC::GenerateMiss(masm);
4823 4823
4824 __ bind(&load_smi_map); 4824 __ bind(&load_smi_map);
4825 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); 4825 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex);
4826 __ jmp(&compare_map); 4826 __ jmp(&compare_map);
4827 } 4827 }
4828 4828
4829 4829
4830 void VectorStoreICTrampolineStub::Generate(MacroAssembler* masm) {
4831 EmitLoadTypeFeedbackVector(masm, VectorStoreICDescriptor::VectorRegister());
4832 VectorStoreICStub stub(isolate(), state());
4833 stub.GenerateForTrampoline(masm);
4834 }
4835
4836
4837 void VectorKeyedStoreICTrampolineStub::Generate(MacroAssembler* masm) {
4838 EmitLoadTypeFeedbackVector(masm, VectorStoreICDescriptor::VectorRegister());
4839 VectorKeyedStoreICStub stub(isolate(), state());
4840 stub.GenerateForTrampoline(masm);
4841 }
4842
4843
4844 void VectorStoreICStub::Generate(MacroAssembler* masm) {
4845 GenerateImpl(masm, false);
4846 }
4847
4848
4849 void VectorStoreICStub::GenerateForTrampoline(MacroAssembler* masm) {
4850 GenerateImpl(masm, true);
4851 }
4852
4853
4854 void VectorStoreICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) {
4855 Label miss;
4856
4857 // TODO(mvstanton): Implement.
4858 __ bind(&miss);
4859 StoreIC::GenerateMiss(masm);
4860 }
4861
4862
4863 void VectorKeyedStoreICStub::Generate(MacroAssembler* masm) {
4864 GenerateImpl(masm, false);
4865 }
4866
4867
4868 void VectorKeyedStoreICStub::GenerateForTrampoline(MacroAssembler* masm) {
4869 GenerateImpl(masm, true);
4870 }
4871
4872
4873 void VectorKeyedStoreICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) {
4874 Label miss;
4875
4876 // TODO(mvstanton): Implement.
4877 __ bind(&miss);
4878 KeyedStoreIC::GenerateMiss(masm);
4879 }
4880
4881
4830 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 4882 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
4831 if (masm->isolate()->function_entry_hook() != NULL) { 4883 if (masm->isolate()->function_entry_hook() != NULL) {
4832 ProfileEntryHookStub stub(masm->isolate()); 4884 ProfileEntryHookStub stub(masm->isolate());
4833 __ push(ra); 4885 __ push(ra);
4834 __ CallStub(&stub); 4886 __ CallStub(&stub);
4835 __ pop(ra); 4887 __ pop(ra);
4836 } 4888 }
4837 } 4889 }
4838 4890
4839 4891
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
5511 kStackUnwindSpace, kInvalidStackOffset, 5563 kStackUnwindSpace, kInvalidStackOffset,
5512 MemOperand(fp, 6 * kPointerSize), NULL); 5564 MemOperand(fp, 6 * kPointerSize), NULL);
5513 } 5565 }
5514 5566
5515 5567
5516 #undef __ 5568 #undef __
5517 5569
5518 } } // namespace v8::internal 5570 } } // namespace v8::internal
5519 5571
5520 #endif // V8_TARGET_ARCH_MIPS 5572 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698