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

Unified Diff: src/isolate.cc

Issue 2469002: - Add a pointer to Bootstrapper from Isolate.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 7 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
===================================================================
--- src/isolate.cc (revision 4768)
+++ src/isolate.cc (working copy)
@@ -65,19 +65,22 @@
Isolate::Isolate()
- : stub_cache_(NULL) {
+ : bootstrapper_(NULL),
+ stub_cache_(NULL) {
}
Isolate::~Isolate() {
delete stub_cache_;
stub_cache_ = NULL;
+ delete bootstrapper_;
+ bootstrapper_ = NULL;
}
bool Isolate::Init(Deserializer* des) {
ASSERT(global_isolate == this);
-
+
bool create_heap_objects = des == NULL;
#ifdef DEBUG
@@ -85,6 +88,9 @@
DisallowAllocationFailure disallow_allocation_failure;
#endif
+ // Allocate per-isolate globals early.
+ bootstrapper_ = new Bootstrapper();
+
// Enable logging before setting up the heap
Logger::Setup();
« no previous file with comments | « src/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698