Chromium Code Reviews| 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 d2709fe37ec439602166a57e6f6568ace7b8699c..f19f70304812a29daf3d89af05c838d828f14655 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" |
| @@ -60,8 +61,11 @@ WorkerBackingThread::~WorkerBackingThread() {} |
| void WorkerBackingThread::Initialize() { |
| DCHECK(!isolate_); |
| backing_thread_->Initialize(); |
| + // TODO(peria): Replace GetReferenceTable with nullptr. |
|
Yuki
2017/05/30 14:35:57
Could you elaborate why we'd like to replace it?
O
peria
2017/06/01 08:33:33
Due to V8 issue.
http://crbug.com/v8/6448
|
| isolate_ = V8PerIsolateData::Initialize( |
| - backing_thread_->PlatformThread().GetWebTaskRunner()); |
| + backing_thread_->PlatformThread().GetWebTaskRunner(), |
| + V8SnapshotCreator::GetReferenceTable(), |
| + V8PerIsolateData::V8ContextMode::kDontUseSnapshot); |
| AddWorkerIsolate(isolate_); |
| V8Initializer::InitializeWorker(isolate_); |