| 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 22 matching lines...) Expand all Loading... |
| 33 #include "bindings/core/v8/Microtask.h" | 33 #include "bindings/core/v8/Microtask.h" |
| 34 #include "bindings/core/v8/V8Binding.h" | 34 #include "bindings/core/v8/V8Binding.h" |
| 35 #include "bindings/core/v8/V8GCController.h" | 35 #include "bindings/core/v8/V8GCController.h" |
| 36 #include "bindings/core/v8/V8Initializer.h" | 36 #include "bindings/core/v8/V8Initializer.h" |
| 37 #include "core/animation/AnimationClock.h" | 37 #include "core/animation/AnimationClock.h" |
| 38 #include "core/page/Page.h" | 38 #include "core/page/Page.h" |
| 39 #include "core/workers/WorkerBackingThread.h" | 39 #include "core/workers/WorkerBackingThread.h" |
| 40 #include "gin/public/v8_platform.h" | 40 #include "gin/public/v8_platform.h" |
| 41 #include "modules/ModulesInitializer.h" | 41 #include "modules/ModulesInitializer.h" |
| 42 #include "platform/LayoutTestSupport.h" | 42 #include "platform/LayoutTestSupport.h" |
| 43 #include "platform/Logging.h" | |
| 44 #include "platform/heap/Heap.h" | 43 #include "platform/heap/Heap.h" |
| 45 #include "public/platform/Platform.h" | 44 #include "public/platform/Platform.h" |
| 46 #include "public/platform/WebThread.h" | 45 #include "public/platform/WebThread.h" |
| 47 #include "wtf/Assertions.h" | 46 #include "wtf/Assertions.h" |
| 48 #include "wtf/PtrUtil.h" | 47 #include "wtf/PtrUtil.h" |
| 49 #include "wtf/WTF.h" | 48 #include "wtf/WTF.h" |
| 50 #include "wtf/allocator/Partitions.h" | 49 #include "wtf/allocator/Partitions.h" |
| 51 #include "wtf/text/AtomicString.h" | 50 #include "wtf/text/AtomicString.h" |
| 52 #include "wtf/text/TextEncoding.h" | 51 #include "wtf/text/TextEncoding.h" |
| 53 #include <memory> | 52 #include <memory> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 void setAlwaysUseComplexTextForTest(bool value) | 151 void setAlwaysUseComplexTextForTest(bool value) |
| 153 { | 152 { |
| 154 LayoutTestSupport::setAlwaysUseComplexTextForTest(value); | 153 LayoutTestSupport::setAlwaysUseComplexTextForTest(value); |
| 155 } | 154 } |
| 156 | 155 |
| 157 bool alwaysUseComplexTextForTest() | 156 bool alwaysUseComplexTextForTest() |
| 158 { | 157 { |
| 159 return LayoutTestSupport::alwaysUseComplexTextForTest(); | 158 return LayoutTestSupport::alwaysUseComplexTextForTest(); |
| 160 } | 159 } |
| 161 | 160 |
| 162 void enableLogChannel(const char* name) | |
| 163 { | |
| 164 #if !LOG_DISABLED | |
| 165 WTFLogChannel* channel = getChannelFromName(name); | |
| 166 if (channel) | |
| 167 channel->state = WTFLogChannelOn; | |
| 168 #endif // !LOG_DISABLED | |
| 169 } | |
| 170 | |
| 171 void resetPluginCache(bool reloadPages) | 161 void resetPluginCache(bool reloadPages) |
| 172 { | 162 { |
| 173 DCHECK(!reloadPages); | 163 DCHECK(!reloadPages); |
| 174 Page::refreshPlugins(); | 164 Page::refreshPlugins(); |
| 175 } | 165 } |
| 176 | 166 |
| 177 void decommitFreeableMemory() | 167 void decommitFreeableMemory() |
| 178 { | 168 { |
| 179 WTF::Partitions::decommitFreeableMemory(); | 169 WTF::Partitions::decommitFreeableMemory(); |
| 180 } | 170 } |
| 181 | 171 |
| 182 void MemoryPressureNotificationToWorkerThreadIsolates( | 172 void MemoryPressureNotificationToWorkerThreadIsolates( |
| 183 v8::MemoryPressureLevel level) | 173 v8::MemoryPressureLevel level) |
| 184 { | 174 { |
| 185 WorkerBackingThread:: | 175 WorkerBackingThread:: |
| 186 MemoryPressureNotificationToWorkerThreadIsolates(level); | 176 MemoryPressureNotificationToWorkerThreadIsolates(level); |
| 187 } | 177 } |
| 188 | 178 |
| 189 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) | 179 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) |
| 190 { | 180 { |
| 191 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); | 181 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); |
| 192 } | 182 } |
| 193 | 183 |
| 194 } // namespace blink | 184 } // namespace blink |
| OLD | NEW |