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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Work for some comments Created 3 years, 7 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
Index: third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
index 6b902633af6d7c9abac5e23d479646e620a486d7..28b0c9f7a5946da64a937c0856f2f56800b85a82 100644
--- a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
@@ -9,6 +9,7 @@
#include "bindings/core/v8/V8GCController.h"
#include "bindings/core/v8/V8IdleTaskRunner.h"
#include "bindings/core/v8/V8Initializer.h"
+#include "bindings/core/v8/V8SnapshotCreator.h"
#include "core/inspector/WorkerThreadDebugger.h"
#include "platform/CrossThreadFunctional.h"
#include "platform/RuntimeEnabledFeatures.h"
@@ -62,7 +63,8 @@ void WorkerBackingThread::Initialize() {
DCHECK(!isolate_);
backing_thread_->Initialize();
isolate_ = V8PerIsolateData::Initialize(
- backing_thread_->PlatformThread().GetWebTaskRunner());
+ backing_thread_->PlatformThread().GetWebTaskRunner(),
+ V8SnapshotCreator::GetReferenceTable(), gin::IsolateHolder::kUseSnapshot);
haraken 2017/05/20 19:10:03 gin::IsolateHolder::kUseSnapshot won't make sense
peria 2017/05/30 08:25:44 Done.
AddWorkerIsolate(isolate_);
V8Initializer::InitializeWorker(isolate_);

Powered by Google App Engine
This is Rietveld 408576698