LoadV8Snapshot has been moved from gin::IsolateHolder to gin::V8Initializer.
authorHaojian Wu <hokein.wu@gmail.com>
Tue, 4 Aug 2015 08:39:37 +0000 (16:39 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 11 Aug 2015 01:48:29 +0000 (09:48 +0800)
atom/app/node_main.cc
atom/browser/javascript_environment.cc

index 7446a0a..fe4f3fc 100644 (file)
@@ -8,6 +8,7 @@
 #include "atom/common/node_includes.h"
 #include "gin/array_buffer.h"
 #include "gin/public/isolate_holder.h"
+#include "gin/v8_initializer.h"
 
 namespace atom {
 
@@ -19,7 +20,7 @@ int NodeMain(int argc, char *argv[]) {
 
   int exit_code = 1;
   {
-    gin::IsolateHolder::LoadV8Snapshot();
+    gin::V8Initializer::LoadV8Snapshot();
     gin::IsolateHolder::Initialize(
         gin::IsolateHolder::kNonStrictMode,
         gin::ArrayBufferAllocator::SharedInstance());
index 887c593..3788fca 100644 (file)
@@ -5,6 +5,7 @@
 #include "atom/browser/javascript_environment.h"
 
 #include "gin/array_buffer.h"
+#include "gin/v8_initializer.h"
 
 namespace atom {
 
@@ -19,7 +20,7 @@ JavascriptEnvironment::JavascriptEnvironment()
 }
 
 bool JavascriptEnvironment::Initialize() {
-  gin::IsolateHolder::LoadV8Snapshot();
+  gin::V8Initializer::LoadV8Snapshot();
   gin::IsolateHolder::Initialize(gin::IsolateHolder::kNonStrictMode,
                                  gin::ArrayBufferAllocator::SharedInstance());
   return true;