Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 541d37ad6e66c3c48d262514bc8249eadecc821b..c1831af84bf366c9df5a8a38d68925fad6523bf3 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1118,9 +1118,17 @@ LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( |
UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); |
LOperand* name_register = |
UseFixed(instr->name(), LoadDescriptor::NameRegister()); |
+ LOperand* slot = NULL; |
+ LOperand* vector = NULL; |
+ if (FLAG_vector_ics) { |
+ slot = UseFixed(instr->slot(), VectorLoadICDescriptor::SlotRegister()); |
+ vector = |
+ UseFixed(instr->vector(), VectorLoadICDescriptor::VectorRegister()); |
+ } |
+ |
// Not marked as call. It can't deoptimize, and it never returns. |
return new (zone()) LTailCallThroughMegamorphicCache( |
- context, receiver_register, name_register); |
+ context, receiver_register, name_register, slot, vector); |
} |
@@ -2067,7 +2075,7 @@ LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
LOperand* global_object = |
UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); |
LOperand* vector = NULL; |
- if (FLAG_vector_ics) { |
+ if (instr->HasVectorAndSlot()) { |
vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); |
} |
@@ -2140,7 +2148,7 @@ LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { |
LOperand* object = |
UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); |
LOperand* vector = NULL; |
- if (FLAG_vector_ics) { |
+ if (instr->HasVectorAndSlot()) { |
vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); |
} |
LLoadNamedGeneric* result = new(zone()) LLoadNamedGeneric( |
@@ -2233,7 +2241,7 @@ LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { |
UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); |
LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister()); |
LOperand* vector = NULL; |
- if (FLAG_vector_ics) { |
+ if (instr->HasVectorAndSlot()) { |
vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); |
} |