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> |
(...skipping 43 matching lines...) Loading... |
54 int thread_pool_size_; | 54 int thread_pool_size_; |
55 std::vector<WorkerThread*> thread_pool_; | 55 std::vector<WorkerThread*> thread_pool_; |
56 TaskQueue queue_; | 56 TaskQueue queue_; |
57 std::map<v8::Isolate*, std::queue<Task*> > main_thread_queue_; | 57 std::map<v8::Isolate*, std::queue<Task*> > main_thread_queue_; |
58 | 58 |
59 typedef std::pair<double, Task*> DelayedEntry; | 59 typedef std::pair<double, Task*> DelayedEntry; |
60 std::map<v8::Isolate*, | 60 std::map<v8::Isolate*, |
61 std::priority_queue<DelayedEntry, std::vector<DelayedEntry>, | 61 std::priority_queue<DelayedEntry, std::vector<DelayedEntry>, |
62 std::greater<DelayedEntry> > > | 62 std::greater<DelayedEntry> > > |
63 main_thread_delayed_queue_; | 63 main_thread_delayed_queue_; |
| 64 // Used for --verify-predictable mode only. |
| 65 double synthetic_time_in_sec_; |
64 | 66 |
65 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); | 67 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); |
66 }; | 68 }; |
67 | 69 |
68 | 70 |
69 } // namespace platform | 71 } // namespace platform |
70 } // namespace v8 | 72 } // namespace v8 |
71 | 73 |
72 | 74 |
73 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ | 75 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ |
OLD | NEW |