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

Unified Diff: src/isolate.cc

Issue 8536042: Extension state made per-siolate in genesis (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index a073af9c379dc5610c93085500b18e4d904774d7..3a5169f2ea690e82bd7a6fd94cfe323b69da191f 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -30,6 +30,7 @@
#include "v8.h"
#include "ast.h"
+#include "api.h"
#include "bootstrapper.h"
#include "codegen.h"
#include "compilation-cache.h"
@@ -1412,6 +1413,7 @@ Isolate::Isolate()
// Must be initialized early to allow v8::Debug calls.
debugger_access_(OS::CreateMutex()),
logger_(NULL),
+ extension_states_(NULL),
stats_table_(NULL),
stub_cache_(NULL),
deoptimizer_data_(NULL),
@@ -1539,6 +1541,7 @@ void Isolate::Deinit() {
delete runtime_profiler_;
runtime_profiler_ = NULL;
}
+
heap_.TearDown();
logger_->TearDown();
@@ -1584,6 +1587,9 @@ Isolate::~Isolate() {
delete stats_table_;
stats_table_ = NULL;
+ delete extension_states_;
+ extension_states_ = NULL;
+
delete logger_;
logger_ = NULL;
@@ -1732,6 +1738,8 @@ bool Isolate::Init(Deserializer* des) {
regexp_stack_ = new RegExpStack();
regexp_stack_->isolate_ = this;
+ extension_states_ = new ExtensionStates();
+
// Enable logging before setting up the heap
logger_->Setup();

Powered by Google App Engine
This is Rietveld 408576698