summaryrefslogtreecommitdiffstats
path: root/gin/shell
diff options
context:
space:
mode:
authoroth <oth@chromium.org>2015-04-05 07:30:57 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-05 14:31:16 +0000
commit05c26fde422600a25247a22f9670463216d0519a (patch)
treea2443f512888c10b64f892b4f78f200d18c4575d /gin/shell
parentf13b7592e312f69e70062fbcf72b746eefaf13fc (diff)
downloadchromium_src-05c26fde422600a25247a22f9670463216d0519a.zip
chromium_src-05c26fde422600a25247a22f9670463216d0519a.tar.gz
chromium_src-05c26fde422600a25247a22f9670463216d0519a.tar.bz2
Move V8 snapshot loading code from isolate_holder to gin/v8_startup_data.{h,cc}.
isolate_holder.h is public and used by blink and therefore cannot refer to types from base. As part of porting this to other platforms we needed to load snapshots from BaseFile descriptors. BUG=421063 Review URL: https://codereview.chromium.org/1011133006 Cr-Commit-Position: refs/heads/master@{#323886}
Diffstat (limited to 'gin/shell')
-rw-r--r--gin/shell/gin_main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gin/shell/gin_main.cc b/gin/shell/gin_main.cc
index 532f996..d3bab72 100644
--- a/gin/shell/gin_main.cc
+++ b/gin/shell/gin_main.cc
@@ -13,6 +13,7 @@
#include "gin/modules/module_runner_delegate.h"
#include "gin/public/isolate_holder.h"
#include "gin/try_catch.h"
+#include "gin/v8_initializer.h"
namespace gin {
namespace {
@@ -60,7 +61,7 @@ int main(int argc, char** argv) {
base::CommandLine::Init(argc, argv);
base::i18n::InitializeICU();
#ifdef V8_USE_EXTERNAL_STARTUP_DATA
- gin::IsolateHolder::LoadV8Snapshot();
+ gin::V8Initializer::LoadV8Snapshot();
#endif
gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode,