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

Unified Diff: src/isolate.cc

Issue 2816006: [Isolates] KeyedLookupCache / DescriptorLookupCache / ContextSlotCache moved to Isolate. (Closed)
Patch Set: Created 10 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/isolate.h ('k') | src/objects.cc » ('j') | no next file with comments »
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 3f3e4ccf5579015c190e59cd1edfd54830895b65..e255bcdf1928eddf2d474ac4ec58fa1c874808e0 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -34,6 +34,7 @@
#include "log.h"
#include "isolate.h"
#include "serialize.h"
+#include "scopeinfo.h"
#include "simulator.h"
#include "stub-cache.h"
#include "oprofile-agent.h"
@@ -92,6 +93,9 @@ Isolate::Isolate()
break_access_(OS::CreateMutex()),
stub_cache_(NULL),
transcendental_cache_(new TranscendentalCache()),
+ keyed_lookup_cache_(new KeyedLookupCache()),
+ context_slot_cache_(new ContextSlotCache()),
+ descriptor_lookup_cache_(new DescriptorLookupCache()),
handle_scope_implementer_(NULL) {
heap_.isolate_ = this;
stack_guard_.isolate_ = this;
@@ -111,6 +115,13 @@ Isolate::Isolate()
Isolate::~Isolate() {
+ delete descriptor_lookup_cache_;
+ descriptor_lookup_cache_ = NULL;
+ delete context_slot_cache_;
+ context_slot_cache_ = NULL;
+ delete keyed_lookup_cache_;
+ keyed_lookup_cache_ = NULL;
+
delete transcendental_cache_;
transcendental_cache_ = NULL;
delete stub_cache_;
« no previous file with comments | « src/isolate.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698