Index: src/x87/lithium-codegen-x87.cc |
diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc |
index e78df9701929da382d1537a21cb7d83503b1a3e0..f2074fd138de7232e78725493a6725ca27907e37 100644 |
--- a/src/x87/lithium-codegen-x87.cc |
+++ b/src/x87/lithium-codegen-x87.cc |
@@ -2971,6 +2971,15 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
ASSERT(ToRegister(instr->result()).is(eax)); |
__ mov(LoadIC::NameRegister(), instr->name()); |
+ if (FLAG_vector_ics) { |
+ Register vector = ToRegister(instr->temp_vector()); |
+ ASSERT(vector.is(LoadIC::VectorRegister())); |
+ __ mov(vector, instr->hydrogen()->feedback_vector()); |
+ // No need to allocate this register. |
+ ASSERT(LoadIC::SlotRegister().is(eax)); |
+ __ mov(LoadIC::SlotRegister(), |
+ Immediate(Smi::FromInt(instr->hydrogen()->slot()))); |
+ } |
ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; |
Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
@@ -3103,6 +3112,15 @@ void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { |
ASSERT(ToRegister(instr->result()).is(eax)); |
__ mov(LoadIC::NameRegister(), instr->name()); |
+ if (FLAG_vector_ics) { |
+ Register vector = ToRegister(instr->temp_vector()); |
+ ASSERT(vector.is(LoadIC::VectorRegister())); |
+ __ mov(vector, instr->hydrogen()->feedback_vector()); |
+ // No need to allocate this register. |
+ ASSERT(LoadIC::SlotRegister().is(eax)); |
+ __ mov(LoadIC::SlotRegister(), |
+ Immediate(Smi::FromInt(instr->hydrogen()->slot()))); |
+ } |
Handle<Code> ic = LoadIC::initialize_stub(isolate(), NOT_CONTEXTUAL); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -3340,6 +3358,16 @@ void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
ASSERT(ToRegister(instr->object()).is(LoadIC::ReceiverRegister())); |
ASSERT(ToRegister(instr->key()).is(LoadIC::NameRegister())); |
+ if (FLAG_vector_ics) { |
+ Register vector = ToRegister(instr->temp_vector()); |
+ ASSERT(vector.is(LoadIC::VectorRegister())); |
+ __ mov(vector, instr->hydrogen()->feedback_vector()); |
+ // No need to allocate this register. |
+ ASSERT(LoadIC::SlotRegister().is(eax)); |
+ __ mov(LoadIC::SlotRegister(), |
+ Immediate(Smi::FromInt(instr->hydrogen()->slot()))); |
+ } |
+ |
Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |