From cde53179bc28143438a4c341fbce22e1227cec63 Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Thu, 19 Jul 2018 15:14:57 +0200 Subject: [PATCH] Update common/chromium/gin_enable_disable_v8_platform.patch --- .../common/chromium/gin_enable_disable_v8_platform.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/common/chromium/gin_enable_disable_v8_platform.patch b/patches/common/chromium/gin_enable_disable_v8_platform.patch index 8b128b13..8e8d6628 100644 --- a/patches/common/chromium/gin_enable_disable_v8_platform.patch +++ b/patches/common/chromium/gin_enable_disable_v8_platform.patch @@ -30,10 +30,10 @@ index 2509aca609f9..94003c6031cf 100644 v8::Isolate* isolate() { return isolate_; } diff --git a/gin/v8_initializer.cc b/gin/v8_initializer.cc -index e03635f4378f..d6274f66da1a 100644 +index 02d4b1cd6521..ec6d51d7e5d8 100644 --- a/gin/v8_initializer.cc +++ b/gin/v8_initializer.cc -@@ -321,12 +321,14 @@ base::FilePath V8Initializer::GetSnapshotFilePath(bool abi_32_bit) { +@@ -236,12 +236,14 @@ LoadV8FileResult MapOpenedFile(const OpenedFileMap::mapped_type& file_region, // static void V8Initializer::Initialize(IsolateHolder::ScriptMode mode, @@ -48,8 +48,8 @@ index e03635f4378f..d6274f66da1a 100644 + if (create_v8_platform) + v8::V8::InitializePlatform(V8Platform::Get()); - if (IsolateHolder::kStrictMode == mode) { - static const char use_strict[] = "--use_strict"; + if (base::FeatureList::IsEnabled(features::kV8OptimizeJavascript)) { + static const char optimize[] = "--opt"; diff --git a/gin/v8_initializer.h b/gin/v8_initializer.h index f0a7c5e0fb68..df4ab4f3e4b9 100644 --- a/gin/v8_initializer.h