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

Unified Diff: src/code-factory.cc

Issue 2065373003: [ic] LoadICState cleanup. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@cleanup-load-global-ic
Patch Set: Rebasing Created 4 years, 6 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/arm64/code-stubs-arm64.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 0be0ae77afea27c79125b2bae72ca69caad90f1d..8e4df625776840b7023a41f947d9105a3954927e 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -14,10 +14,10 @@ namespace internal {
// static
Callable CodeFactory::LoadIC(Isolate* isolate) {
if (FLAG_tf_load_ic_stub) {
- LoadICTrampolineTFStub stub(isolate, LoadICState(NOT_INSIDE_TYPEOF));
+ LoadICTrampolineTFStub stub(isolate);
return Callable(stub.GetCode(), LoadDescriptor(isolate));
}
- LoadICTrampolineStub stub(isolate, LoadICState(NOT_INSIDE_TYPEOF));
+ LoadICTrampolineStub stub(isolate);
return Callable(stub.GetCode(), LoadDescriptor(isolate));
}
@@ -29,14 +29,13 @@ Callable CodeFactory::ApiGetter(Isolate* isolate) {
// static
Callable CodeFactory::LoadICInOptimizedCode(Isolate* isolate) {
- auto code = LoadIC::initialize_stub_in_optimized_code(
- isolate, LoadICState(NOT_INSIDE_TYPEOF).GetExtraICState());
+ auto code = LoadIC::initialize_stub_in_optimized_code(isolate);
return Callable(code, LoadWithVectorDescriptor(isolate));
}
// static
Callable CodeFactory::LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode) {
- LoadGlobalICTrampolineStub stub(isolate, LoadICState(typeof_mode));
+ LoadGlobalICTrampolineStub stub(isolate, LoadGlobalICState(typeof_mode));
return Callable(stub.GetCode(), LoadDescriptor(isolate));
}
@@ -44,13 +43,13 @@ Callable CodeFactory::LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode) {
Callable CodeFactory::LoadGlobalICInOptimizedCode(Isolate* isolate,
TypeofMode typeof_mode) {
auto code = LoadGlobalIC::initialize_stub_in_optimized_code(
- isolate, LoadICState(typeof_mode).GetExtraICState());
+ isolate, LoadGlobalICState(typeof_mode).GetExtraICState());
return Callable(code, LoadWithVectorDescriptor(isolate));
}
// static
Callable CodeFactory::KeyedLoadIC(Isolate* isolate) {
- KeyedLoadICTrampolineStub stub(isolate, LoadICState(kNoExtraICState));
+ KeyedLoadICTrampolineStub stub(isolate);
return Callable(stub.GetCode(), LoadDescriptor(isolate));
}
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698