| 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 26 matching lines...) Expand all Loading... |
| 37 #include "bindings/core/v8/V8GCController.h" | 37 #include "bindings/core/v8/V8GCController.h" |
| 38 #include "bindings/core/v8/V8Initializer.h" | 38 #include "bindings/core/v8/V8Initializer.h" |
| 39 #include "core/animation/AnimationClock.h" | 39 #include "core/animation/AnimationClock.h" |
| 40 #include "core/layout/LayoutTheme.h" | 40 #include "core/layout/LayoutTheme.h" |
| 41 #include "core/page/Page.h" | 41 #include "core/page/Page.h" |
| 42 #include "core/workers/WorkerBackingThread.h" | 42 #include "core/workers/WorkerBackingThread.h" |
| 43 #include "gin/public/v8_platform.h" | 43 #include "gin/public/v8_platform.h" |
| 44 #include "modules/ModulesInitializer.h" | 44 #include "modules/ModulesInitializer.h" |
| 45 #include "platform/LayoutTestSupport.h" | 45 #include "platform/LayoutTestSupport.h" |
| 46 #include "platform/heap/Heap.h" | 46 #include "platform/heap/Heap.h" |
| 47 #include "platform/wtf/Assertions.h" |
| 48 #include "platform/wtf/PtrUtil.h" |
| 49 #include "platform/wtf/WTF.h" |
| 50 #include "platform/wtf/allocator/Partitions.h" |
| 51 #include "platform/wtf/text/AtomicString.h" |
| 52 #include "platform/wtf/text/TextEncoding.h" |
| 47 #include "public/platform/Platform.h" | 53 #include "public/platform/Platform.h" |
| 48 #include "public/platform/WebThread.h" | 54 #include "public/platform/WebThread.h" |
| 49 #include "v8/include/v8.h" | 55 #include "v8/include/v8.h" |
| 50 #include "wtf/Assertions.h" | |
| 51 #include "wtf/PtrUtil.h" | |
| 52 #include "wtf/WTF.h" | |
| 53 #include "wtf/allocator/Partitions.h" | |
| 54 #include "wtf/text/AtomicString.h" | |
| 55 #include "wtf/text/TextEncoding.h" | |
| 56 | 56 |
| 57 namespace blink { | 57 namespace blink { |
| 58 | 58 |
| 59 namespace { | 59 namespace { |
| 60 | 60 |
| 61 class EndOfTaskRunner : public WebThread::TaskObserver { | 61 class EndOfTaskRunner : public WebThread::TaskObserver { |
| 62 public: | 62 public: |
| 63 void willProcessTask() override { AnimationClock::notifyTaskStart(); } | 63 void willProcessTask() override { AnimationClock::notifyTaskStart(); } |
| 64 void didProcessTask() override { | 64 void didProcessTask() override { |
| 65 Microtask::performCheckpoint(mainThreadIsolate()); | 65 Microtask::performCheckpoint(mainThreadIsolate()); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void MemoryPressureNotificationToWorkerThreadIsolates( | 132 void MemoryPressureNotificationToWorkerThreadIsolates( |
| 133 v8::MemoryPressureLevel level) { | 133 v8::MemoryPressureLevel level) { |
| 134 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); | 134 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) { | 137 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) { |
| 138 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); | 138 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); |
| 139 } | 139 } |
| 140 | 140 |
| 141 } // namespace blink | 141 } // namespace blink |
| OLD | NEW |