| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project 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 #ifndef V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ | 5 #ifndef V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ |
| 6 #define V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ | 6 #define V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ |
| 7 | 7 |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "include/libplatform/libplatform-export.h" |
| 13 #include "include/libplatform/v8-tracing.h" | 14 #include "include/libplatform/v8-tracing.h" |
| 14 #include "include/v8-platform.h" | 15 #include "include/v8-platform.h" |
| 16 #include "src/base/compiler-specific.h" |
| 15 #include "src/base/macros.h" | 17 #include "src/base/macros.h" |
| 16 #include "src/base/platform/mutex.h" | 18 #include "src/base/platform/mutex.h" |
| 17 #include "src/libplatform/task-queue.h" | 19 #include "src/libplatform/task-queue.h" |
| 18 | 20 |
| 19 namespace v8 { | 21 namespace v8 { |
| 20 namespace platform { | 22 namespace platform { |
| 21 | 23 |
| 22 class TaskQueue; | 24 class TaskQueue; |
| 23 class Thread; | 25 class Thread; |
| 24 class WorkerThread; | 26 class WorkerThread; |
| 25 | 27 |
| 26 namespace tracing { | 28 namespace tracing { |
| 27 class TracingController; | 29 class TracingController; |
| 28 } | 30 } |
| 29 | 31 |
| 30 class DefaultPlatform : public Platform { | 32 class V8_PLATFORM_EXPORT DefaultPlatform : public NON_EXPORTED_BASE(Platform) { |
| 31 public: | 33 public: |
| 32 DefaultPlatform(); | 34 DefaultPlatform(); |
| 33 virtual ~DefaultPlatform(); | 35 virtual ~DefaultPlatform(); |
| 34 | 36 |
| 35 void SetThreadPoolSize(int thread_pool_size); | 37 void SetThreadPoolSize(int thread_pool_size); |
| 36 | 38 |
| 37 void EnsureInitialized(); | 39 void EnsureInitialized(); |
| 38 | 40 |
| 39 bool PumpMessageLoop(v8::Isolate* isolate); | 41 bool PumpMessageLoop(v8::Isolate* isolate); |
| 40 | 42 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 85 |
| 84 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); | 86 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 | 89 |
| 88 } // namespace platform | 90 } // namespace platform |
| 89 } // namespace v8 | 91 } // namespace v8 |
| 90 | 92 |
| 91 | 93 |
| 92 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ | 94 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ |
| OLD | NEW |