From 47448c9b19c6c64eda9c6f8f9b4bab5d4a61beee Mon Sep 17 00:00:00 2001 From: "chunyang.dai" Date: Mon, 25 May 2015 06:13:34 -0700 Subject: [PATCH] X87: Vector ICs: Introduce Store and KeyedStore IC code stubs. port a86384f192f88458bb46eece0a8f2709979057b8 (r28597). original commit message: Also introduce new interface descriptors for the trampoline and full versions of those stubs. Currently, the stubs aren't functional. BUG= Review URL: https://codereview.chromium.org/1148963003 Cr-Commit-Position: refs/heads/master@{#28605} --- src/x87/code-stubs-x87.cc | 52 ++++++++++++++++++++++++++++++++++++ src/x87/interface-descriptors-x87.cc | 6 +++++ 2 files changed, 58 insertions(+) diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc index 899967c..7da27aa 100644 --- a/src/x87/code-stubs-x87.cc +++ b/src/x87/code-stubs-x87.cc @@ -4310,6 +4310,58 @@ void KeyedLoadICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { } +void VectorStoreICTrampolineStub::Generate(MacroAssembler* masm) { + EmitLoadTypeFeedbackVector(masm, VectorStoreICDescriptor::VectorRegister()); + VectorStoreICStub stub(isolate(), state()); + stub.GenerateForTrampoline(masm); +} + + +void VectorKeyedStoreICTrampolineStub::Generate(MacroAssembler* masm) { + EmitLoadTypeFeedbackVector(masm, VectorStoreICDescriptor::VectorRegister()); + VectorKeyedStoreICStub stub(isolate(), state()); + stub.GenerateForTrampoline(masm); +} + + +void VectorStoreICStub::Generate(MacroAssembler* masm) { + GenerateImpl(masm, false); +} + + +void VectorStoreICStub::GenerateForTrampoline(MacroAssembler* masm) { + GenerateImpl(masm, true); +} + + +void VectorStoreICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { + Label miss; + + // TODO(mvstanton): Implement. + __ bind(&miss); + StoreIC::GenerateMiss(masm); +} + + +void VectorKeyedStoreICStub::Generate(MacroAssembler* masm) { + GenerateImpl(masm, false); +} + + +void VectorKeyedStoreICStub::GenerateForTrampoline(MacroAssembler* masm) { + GenerateImpl(masm, true); +} + + +void VectorKeyedStoreICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { + Label miss; + + // TODO(mvstanton): Implement. + __ bind(&miss); + KeyedStoreIC::GenerateMiss(masm); +} + + void CallICTrampolineStub::Generate(MacroAssembler* masm) { EmitLoadTypeFeedbackVector(masm, ebx); CallICStub stub(isolate(), state()); diff --git a/src/x87/interface-descriptors-x87.cc b/src/x87/interface-descriptors-x87.cc index 642d91b..99ad597 100644 --- a/src/x87/interface-descriptors-x87.cc +++ b/src/x87/interface-descriptors-x87.cc @@ -26,6 +26,12 @@ const Register StoreDescriptor::NameRegister() { return ecx; } const Register StoreDescriptor::ValueRegister() { return eax; } +const Register VectorStoreICTrampolineDescriptor::SlotRegister() { return edi; } + + +const Register VectorStoreICDescriptor::VectorRegister() { return ebx; } + + const Register StoreTransitionDescriptor::MapRegister() { return ebx; } -- 2.7.4