Index: src/code-factory.cc |
diff --git a/src/code-factory.cc b/src/code-factory.cc |
index e7221c98c4020e1a4646583047b7eaeebf7f9720..7c6a3363197f9adf2dbcc4d8cea0e13f3ed09b82 100644 |
--- a/src/code-factory.cc |
+++ b/src/code-factory.cc |
@@ -47,15 +47,20 @@ Callable CodeFactory::LoadICInOptimizedCode(Isolate* isolate) { |
// static |
Callable CodeFactory::LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode) { |
- LoadGlobalICTrampolineStub stub(isolate, LoadGlobalICState(typeof_mode)); |
- return make_callable(stub); |
+ return Callable( |
+ typeof_mode == NOT_INSIDE_TYPEOF |
+ ? isolate->builtins()->LoadGlobalICTrampoline() |
+ : isolate->builtins()->LoadGlobalICInsideTypeofTrampoline(), |
+ LoadGlobalDescriptor(isolate)); |
} |
// static |
Callable CodeFactory::LoadGlobalICInOptimizedCode(Isolate* isolate, |
TypeofMode typeof_mode) { |
- LoadGlobalICStub stub(isolate, LoadGlobalICState(typeof_mode)); |
- return make_callable(stub); |
+ return Callable(typeof_mode == NOT_INSIDE_TYPEOF |
+ ? isolate->builtins()->LoadGlobalIC() |
+ : isolate->builtins()->LoadGlobalICInsideTypeof(), |
+ LoadGlobalWithVectorDescriptor(isolate)); |
} |
// static |