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

Unified Diff: src/isolate.cc

Issue 2123983004: [ic] Split megamorphic stub cache in two caches (for loads and for stores). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@flags-fix
Patch Set: Created 4 years, 5 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/isolate.h ('k') | src/mips/code-stubs-mips.cc » ('j') | src/type-info.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index ea06d73b84f52eb313053062f271f870ce47b698..86acbec4112f6f196626f5035deecab7ac09d7b0 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -1858,7 +1858,8 @@ Isolate::Isolate(bool enable_serializer)
counters_(NULL),
logger_(NULL),
stats_table_(NULL),
- stub_cache_(NULL),
+ load_stub_cache_(NULL),
+ store_stub_cache_(NULL),
code_aging_helper_(NULL),
deoptimizer_data_(NULL),
deoptimizer_lazy_throw_(false),
@@ -2096,8 +2097,10 @@ Isolate::~Isolate() {
delete keyed_lookup_cache_;
keyed_lookup_cache_ = NULL;
- delete stub_cache_;
- stub_cache_ = NULL;
+ delete load_stub_cache_;
+ load_stub_cache_ = NULL;
+ delete store_stub_cache_;
+ store_stub_cache_ = NULL;
delete code_aging_helper_;
code_aging_helper_ = NULL;
delete stats_table_;
@@ -2240,7 +2243,8 @@ bool Isolate::Init(Deserializer* des) {
eternal_handles_ = new EternalHandles();
bootstrapper_ = new Bootstrapper(this);
handle_scope_implementer_ = new HandleScopeImplementer(this);
- stub_cache_ = new StubCache(this);
+ load_stub_cache_ = new StubCache(this, Code::LOAD_IC);
+ store_stub_cache_ = new StubCache(this, Code::STORE_IC);
materialized_object_store_ = new MaterializedObjectStore(this);
regexp_stack_ = new RegExpStack();
regexp_stack_->isolate_ = this;
@@ -2316,7 +2320,8 @@ bool Isolate::Init(Deserializer* des) {
if (!create_heap_objects) {
des->Deserialize(this);
}
- stub_cache_->Initialize();
+ load_stub_cache_->Initialize();
+ store_stub_cache_->Initialize();
if (FLAG_ignition || serializer_enabled()) {
interpreter_->Initialize();
}
« no previous file with comments | « src/isolate.h ('k') | src/mips/code-stubs-mips.cc » ('j') | src/type-info.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698