Index: src/arm64/lithium-arm64.cc |
diff --git a/src/arm64/lithium-arm64.cc b/src/arm64/lithium-arm64.cc |
index ff3d45005f3489074f4d06f5fe291f0179a63ec6..2d5f7f297c3deea0be673e4a73fda67e8bd8ef9a 100644 |
--- a/src/arm64/lithium-arm64.cc |
+++ b/src/arm64/lithium-arm64.cc |
@@ -1564,9 +1564,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); |
} |
@@ -1675,7 +1683,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()); |
} |
@@ -1738,7 +1746,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()); |
} |
@@ -1760,7 +1768,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()); |
} |