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

Unified Diff: src/isolate.cc

Issue 2718007: [Isolates] Moving TranscendentalCache 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/runtime.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 efdc93bed223fd31fc02f522c353d200a49cd258..3f3e4ccf5579015c190e59cd1edfd54830895b65 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -91,6 +91,7 @@ Isolate::Isolate()
bootstrapper_(NULL),
break_access_(OS::CreateMutex()),
stub_cache_(NULL),
+ transcendental_cache_(new TranscendentalCache()),
handle_scope_implementer_(NULL) {
heap_.isolate_ = this;
stack_guard_.isolate_ = this;
@@ -110,6 +111,8 @@ Isolate::Isolate()
Isolate::~Isolate() {
+ delete transcendental_cache_;
+ transcendental_cache_ = NULL;
delete stub_cache_;
stub_cache_ = NULL;
delete bootstrapper_;
« no previous file with comments | « src/isolate.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698