LoadV8Snapshot has been moved from gin::IsolateHolder to gin::V8Initializer.

This commit is contained in:
Haojian Wu 2015-08-04 16:39:37 +08:00 committed by Cheng Zhao
parent 8fda175264
commit d003b1bb57
2 changed files with 4 additions and 2 deletions

View 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());

View 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;