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

Unified Diff: src/isolate.cc

Issue 2878014: [Isolates] Fixing Win32 compile and running tests failure. (Closed)
Patch Set: Typos 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/v8.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 4227c9c73916ae3d80504d773047384f098f9900..724b59dc5f642a39824165c61e2d7cf682e11b56 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -285,12 +285,15 @@ Isolate::Isolate()
#undef ISOLATE_INIT_ARRAY_EXECUTE
}
-
-void Isolate::TearDownAndRecreateGlobalIsolate() {
+void Isolate::TearDown() {
if (global_isolate_ != NULL) {
delete global_isolate_;
global_isolate_ = NULL;
}
+}
+
+void Isolate::TearDownAndRecreateGlobalIsolate() {
+ TearDown();
global_isolate_ = new Isolate();
global_isolate_->PreInit();
« no previous file with comments | « src/isolate.h ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698