Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index e15e40e534f07c4cef6ab04ec75f6d1aef8a2be8..8ffbc6463bba0c551aef6c048c6b37c1ccaca801 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6927,7 +6927,7 @@ HInstruction* HOptimizedGraphBuilder::BuildKeyedGeneric( |
New<HLoadKeyedGeneric>(object, key, initial_state); |
// HLoadKeyedGeneric with vector ics benefits from being encoded as |
// MEGAMORPHIC because the vector/slot combo becomes unnecessary. |
- if (initial_state != MEGAMORPHIC) { |
+ if (FLAG_vector_ics && initial_state != MEGAMORPHIC) { |
// We need to pass vector information. |
Handle<TypeFeedbackVector> vector = |
handle(current_feedback_vector(), isolate()); |