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

Unified Diff: src/bootstrapper.cc

Issue 582953002: Revert "Require V8 to be explicitly initialized before an Isolate is created" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/base/utils/random-number-generator.cc ('k') | src/d8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index e6f8a133123995a8191a3832a3c99cd6881e332d..855080c34869ea5b69d800df9f8f34ec626733aa 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2594,6 +2594,9 @@ Genesis::Genesis(Isolate* isolate,
active_(isolate->bootstrapper()) {
NoTrackDoubleFieldsForSerializerScope disable_scope(isolate);
result_ = Handle<Context>::null();
+ // If V8 cannot be initialized, just return.
+ if (!V8::Initialize(NULL)) return;
+
// Before creating the roots we must save the context and restore it
// on all function exits.
SaveContext saved_context(isolate);
« no previous file with comments | « src/base/utils/random-number-generator.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698