| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/workers/WorkerBackingThread.h" | 5 #include "core/workers/WorkerBackingThread.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include "bindings/core/v8/V8BindingForCore.h" | 8 #include "bindings/core/v8/V8BindingForCore.h" |
| 9 #include "bindings/core/v8/V8GCController.h" | 9 #include "bindings/core/v8/V8GCController.h" |
| 10 #include "bindings/core/v8/V8IdleTaskRunner.h" | 10 #include "bindings/core/v8/V8IdleTaskRunner.h" |
| 11 #include "bindings/core/v8/V8Initializer.h" | 11 #include "bindings/core/v8/V8Initializer.h" |
| 12 #include "bindings/core/v8/V8PerIsolateData.h" | |
| 13 #include "core/inspector/WorkerThreadDebugger.h" | 12 #include "core/inspector/WorkerThreadDebugger.h" |
| 14 #include "platform/CrossThreadFunctional.h" | 13 #include "platform/CrossThreadFunctional.h" |
| 15 #include "platform/RuntimeEnabledFeatures.h" | 14 #include "platform/RuntimeEnabledFeatures.h" |
| 16 #include "platform/WebThreadSupportingGC.h" | 15 #include "platform/WebThreadSupportingGC.h" |
| 16 #include "platform/bindings/V8PerIsolateData.h" |
| 17 #include "platform/wtf/PtrUtil.h" | 17 #include "platform/wtf/PtrUtil.h" |
| 18 #include "public/platform/Platform.h" | 18 #include "public/platform/Platform.h" |
| 19 #include "public/platform/WebTraceLocation.h" | 19 #include "public/platform/WebTraceLocation.h" |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 #define DEFINE_STATIC_LOCAL_WITH_LOCK(type, name, arguments) \ | 23 #define DEFINE_STATIC_LOCAL_WITH_LOCK(type, name, arguments) \ |
| 24 ASSERT(IsolatesMutex().Locked()); \ | 24 ASSERT(IsolatesMutex().Locked()); \ |
| 25 static type& name = *new type arguments | 25 static type& name = *new type arguments |
| 26 | 26 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 // static | 109 // static |
| 110 void WorkerBackingThread::SetRAILModeOnWorkerThreadIsolates( | 110 void WorkerBackingThread::SetRAILModeOnWorkerThreadIsolates( |
| 111 v8::RAILMode rail_mode) { | 111 v8::RAILMode rail_mode) { |
| 112 MutexLocker lock(IsolatesMutex()); | 112 MutexLocker lock(IsolatesMutex()); |
| 113 for (v8::Isolate* isolate : Isolates()) | 113 for (v8::Isolate* isolate : Isolates()) |
| 114 isolate->SetRAILMode(rail_mode); | 114 isolate->SetRAILMode(rail_mode); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace blink | 117 } // namespace blink |
| OLD | NEW |