Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 4f1db4e99343a692b1f3dfe89a12f5614e1d3267..6f2317cf102959db039ac79054b23e39999d527f 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -442,7 +442,10 @@ void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode, |
void FullCodeGenerator::CallGlobalLoadIC(Handle<String> name) { |
- if (masm()->serializer_enabled()) return CallLoadIC(CONTEXTUAL); |
+ if (masm()->serializer_enabled() || FLAG_vector_ics) { |
+ // Vector-ICs don't work with LoadGlobalIC. |
+ return CallLoadIC(CONTEXTUAL); |
+ } |
Handle<Code> ic = CodeFactory::LoadGlobalIC( |
isolate(), isolate()->global_object(), name).code(); |
CallIC(ic, TypeFeedbackId::None()); |