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

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

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Rebase Created 3 years, 5 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 a632bb795150d13093836fd1e1ec0a6d2561a610..aa749891b753798c306498d68661fac0caa60bde 100644
--- a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
@@ -6,6 +6,7 @@
#include <memory>
#include "bindings/core/v8/V8BindingForCore.h"
+#include "bindings/core/v8/V8ContextSnapshot.h"
#include "bindings/core/v8/V8GCController.h"
#include "bindings/core/v8/V8IdleTaskRunner.h"
#include "bindings/core/v8/V8Initializer.h"
@@ -64,8 +65,12 @@ void WorkerBackingThread::InitializeOnBackingThread(
backing_thread_->InitializeOnThread();
DCHECK(!isolate_);
+ // TODO(peria): Replace GetReferenceTable with nullptr.
+ // (http://crbug.com/v8/6448)
isolate_ = V8PerIsolateData::Initialize(
- backing_thread_->PlatformThread().GetWebTaskRunner());
+ backing_thread_->PlatformThread().GetWebTaskRunner(),
+ V8ContextSnapshot::GetReferenceTable(),
+ V8PerIsolateData::V8ContextSnapshotMode::kDontUseSnapshot);
AddWorkerIsolate(isolate_);
V8Initializer::InitializeWorker(isolate_);
« no previous file with comments | « third_party/WebKit/Source/core/exported/WebV8ContextSnapshot.cpp ('k') | third_party/WebKit/Source/modules/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698