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

Side by Side Diff: src/ia32/code-stubs-ia32.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_IA32 7 #if V8_TARGET_ARCH_IA32
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 4632 matching lines...) Expand 10 before | Expand all | Expand 10 after
4643 // at least one map/handler pair. 4643 // at least one map/handler pair.
4644 __ mov(feedback, FieldOperand(vector, slot, times_half_pointer_size, 4644 __ mov(feedback, FieldOperand(vector, slot, times_half_pointer_size,
4645 FixedArray::kHeaderSize + kPointerSize)); 4645 FixedArray::kHeaderSize + kPointerSize));
4646 HandleArrayCases(masm, receiver, key, vector, slot, feedback, false, &miss); 4646 HandleArrayCases(masm, receiver, key, vector, slot, feedback, false, &miss);
4647 4647
4648 __ bind(&miss); 4648 __ bind(&miss);
4649 KeyedLoadIC::GenerateMiss(masm); 4649 KeyedLoadIC::GenerateMiss(masm);
4650 } 4650 }
4651 4651
4652 4652
4653 void VectorStoreICTrampolineStub::Generate(MacroAssembler* masm) {
4654 EmitLoadTypeFeedbackVector(masm, VectorStoreICDescriptor::VectorRegister());
4655 VectorStoreICStub stub(isolate(), state());
4656 stub.GenerateForTrampoline(masm);
4657 }
4658
4659
4660 void VectorKeyedStoreICTrampolineStub::Generate(MacroAssembler* masm) {
4661 EmitLoadTypeFeedbackVector(masm, VectorStoreICDescriptor::VectorRegister());
4662 VectorKeyedStoreICStub stub(isolate(), state());
4663 stub.GenerateForTrampoline(masm);
4664 }
4665
4666
4667 void VectorStoreICStub::Generate(MacroAssembler* masm) {
4668 GenerateImpl(masm, false);
4669 }
4670
4671
4672 void VectorStoreICStub::GenerateForTrampoline(MacroAssembler* masm) {
4673 GenerateImpl(masm, true);
4674 }
4675
4676
4677 void VectorStoreICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) {
4678 Label miss;
4679
4680 // TODO(mvstanton): Implement.
Jakob Kummerow 2015/05/22 11:38:17 If you put "UNIMPLEMENTED();" here, you'll get a l
mvstanton 2015/05/22 12:06:16 Cool. Actually, though I'm pleased enough with thi
4681 __ bind(&miss);
4682 StoreIC::GenerateMiss(masm);
4683 }
4684
4685
4686 void VectorKeyedStoreICStub::Generate(MacroAssembler* masm) {
4687 GenerateImpl(masm, false);
4688 }
4689
4690
4691 void VectorKeyedStoreICStub::GenerateForTrampoline(MacroAssembler* masm) {
4692 GenerateImpl(masm, true);
4693 }
4694
4695
4696 void VectorKeyedStoreICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) {
4697 Label miss;
4698
4699 // TODO(mvstanton): Implement.
4700 __ bind(&miss);
4701 KeyedStoreIC::GenerateMiss(masm);
4702 }
4703
4704
4653 void CallICTrampolineStub::Generate(MacroAssembler* masm) { 4705 void CallICTrampolineStub::Generate(MacroAssembler* masm) {
4654 EmitLoadTypeFeedbackVector(masm, ebx); 4706 EmitLoadTypeFeedbackVector(masm, ebx);
4655 CallICStub stub(isolate(), state()); 4707 CallICStub stub(isolate(), state());
4656 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); 4708 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4657 } 4709 }
4658 4710
4659 4711
4660 void CallIC_ArrayTrampolineStub::Generate(MacroAssembler* masm) { 4712 void CallIC_ArrayTrampolineStub::Generate(MacroAssembler* masm) {
4661 EmitLoadTypeFeedbackVector(masm, ebx); 4713 EmitLoadTypeFeedbackVector(masm, ebx);
4662 CallIC_ArrayStub stub(isolate(), state()); 4714 CallIC_ArrayStub stub(isolate(), state());
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
5423 ApiParameterOperand(2), kStackSpace, nullptr, 5475 ApiParameterOperand(2), kStackSpace, nullptr,
5424 Operand(ebp, 7 * kPointerSize), NULL); 5476 Operand(ebp, 7 * kPointerSize), NULL);
5425 } 5477 }
5426 5478
5427 5479
5428 #undef __ 5480 #undef __
5429 5481
5430 } } // namespace v8::internal 5482 } } // namespace v8::internal
5431 5483
5432 #endif // V8_TARGET_ARCH_IA32 5484 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698