Index: src/code-factory.cc |
diff --git a/src/code-factory.cc b/src/code-factory.cc |
index 4e0da2a3c941bf4c95bc7f740f3ba75f678e4023..944f780c04f8ff61153b61d8c5db3e10a2e16048 100644 |
--- a/src/code-factory.cc |
+++ b/src/code-factory.cc |
@@ -36,7 +36,7 @@ Callable CodeFactory::LoadICInOptimizedCode(Isolate* isolate) { |
// static |
Callable CodeFactory::LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode) { |
LoadGlobalICTrampolineStub stub(isolate, LoadGlobalICState(typeof_mode)); |
- return Callable(stub.GetCode(), LoadDescriptor(isolate)); |
+ return Callable(stub.GetCode(), LoadGlobalDescriptor(isolate)); |
} |
// static |
@@ -44,7 +44,7 @@ Callable CodeFactory::LoadGlobalICInOptimizedCode(Isolate* isolate, |
TypeofMode typeof_mode) { |
auto code = LoadGlobalIC::initialize_stub_in_optimized_code( |
isolate, LoadGlobalICState(typeof_mode).GetExtraICState()); |
- return Callable(code, LoadWithVectorDescriptor(isolate)); |
+ return Callable(code, LoadGlobalWithVectorDescriptor(isolate)); |
} |
// static |