Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 80141db5729d6d7af72f9591527996c94b71fb60..4f1db4e99343a692b1f3dfe89a12f5614e1d3267 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -441,6 +441,14 @@ void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode, |
} |
+void FullCodeGenerator::CallGlobalLoadIC(Handle<String> name) { |
+ if (masm()->serializer_enabled()) return CallLoadIC(CONTEXTUAL); |
+ Handle<Code> ic = CodeFactory::LoadGlobalIC( |
+ isolate(), isolate()->global_object(), name).code(); |
+ CallIC(ic, TypeFeedbackId::None()); |
+} |
+ |
+ |
void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { |
Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code(); |
CallIC(ic, id); |