Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: src/code-factory.cc

Issue 2608893002: [builtins] Move LoadGlobalICStub to builtins (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins/builtins-ic.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/builtins/builtins-ic.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698