| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "public/web/WebKit.h" | 31 #include "public/web/WebKit.h" |
| 32 | 32 |
| 33 #include <v8.h> |
| 34 #include <memory> |
| 33 #include "bindings/core/v8/Microtask.h" | 35 #include "bindings/core/v8/Microtask.h" |
| 34 #include "bindings/core/v8/V8Binding.h" | 36 #include "bindings/core/v8/V8Binding.h" |
| 35 #include "bindings/core/v8/V8GCController.h" | 37 #include "bindings/core/v8/V8GCController.h" |
| 36 #include "bindings/core/v8/V8Initializer.h" | 38 #include "bindings/core/v8/V8Initializer.h" |
| 37 #include "core/animation/AnimationClock.h" | 39 #include "core/animation/AnimationClock.h" |
| 38 #include "core/layout/LayoutTheme.h" | 40 #include "core/layout/LayoutTheme.h" |
| 39 #include "core/page/Page.h" | 41 #include "core/page/Page.h" |
| 40 #include "core/workers/WorkerBackingThread.h" | 42 #include "core/workers/WorkerBackingThread.h" |
| 41 #include "gin/public/v8_platform.h" | 43 #include "gin/public/v8_platform.h" |
| 42 #include "modules/ModulesInitializer.h" | 44 #include "modules/ModulesInitializer.h" |
| 43 #include "platform/LayoutTestSupport.h" | 45 #include "platform/LayoutTestSupport.h" |
| 44 #include "platform/heap/Heap.h" | 46 #include "platform/heap/Heap.h" |
| 45 #include "public/platform/Platform.h" | 47 #include "public/platform/Platform.h" |
| 46 #include "public/platform/WebThread.h" | 48 #include "public/platform/WebThread.h" |
| 47 #include "wtf/Assertions.h" | 49 #include "wtf/Assertions.h" |
| 48 #include "wtf/PtrUtil.h" | 50 #include "wtf/PtrUtil.h" |
| 49 #include "wtf/WTF.h" | 51 #include "wtf/WTF.h" |
| 50 #include "wtf/allocator/Partitions.h" | 52 #include "wtf/allocator/Partitions.h" |
| 51 #include "wtf/text/AtomicString.h" | 53 #include "wtf/text/AtomicString.h" |
| 52 #include "wtf/text/TextEncoding.h" | 54 #include "wtf/text/TextEncoding.h" |
| 53 #include <memory> | |
| 54 #include <v8.h> | |
| 55 | 55 |
| 56 namespace blink { | 56 namespace blink { |
| 57 | 57 |
| 58 namespace { | 58 namespace { |
| 59 | 59 |
| 60 class EndOfTaskRunner : public WebThread::TaskObserver { | 60 class EndOfTaskRunner : public WebThread::TaskObserver { |
| 61 public: | 61 public: |
| 62 void willProcessTask() override { AnimationClock::notifyTaskStart(); } | 62 void willProcessTask() override { AnimationClock::notifyTaskStart(); } |
| 63 void didProcessTask() override { | 63 void didProcessTask() override { |
| 64 Microtask::performCheckpoint(mainThreadIsolate()); | 64 Microtask::performCheckpoint(mainThreadIsolate()); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 void MemoryPressureNotificationToWorkerThreadIsolates( | 131 void MemoryPressureNotificationToWorkerThreadIsolates( |
| 132 v8::MemoryPressureLevel level) { | 132 v8::MemoryPressureLevel level) { |
| 133 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); | 133 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) { | 136 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) { |
| 137 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); | 137 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace blink | 140 } // namespace blink |
| OLD | NEW |