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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 ExpectedRuntime expected_runtime) override; | 44 ExpectedRuntime expected_runtime) override; |
45 void CallOnForegroundThread(v8::Isolate* isolate, Task* task) override; | 45 void CallOnForegroundThread(v8::Isolate* isolate, Task* task) override; |
46 void CallDelayedOnForegroundThread(Isolate* isolate, Task* task, | 46 void CallDelayedOnForegroundThread(Isolate* isolate, Task* task, |
47 double delay_in_seconds) override; | 47 double delay_in_seconds) override; |
48 void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) override; | 48 void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) override; |
49 bool IdleTasksEnabled(Isolate* isolate) override; | 49 bool IdleTasksEnabled(Isolate* isolate) override; |
50 double MonotonicallyIncreasingTime() override; | 50 double MonotonicallyIncreasingTime() override; |
51 const uint8_t* GetCategoryGroupEnabled(const char* name) override; | 51 const uint8_t* GetCategoryGroupEnabled(const char* name) override; |
52 const char* GetCategoryGroupName( | 52 const char* GetCategoryGroupName( |
53 const uint8_t* category_enabled_flag) override; | 53 const uint8_t* category_enabled_flag) override; |
54 uint64_t AddTraceEvent(char phase, const uint8_t* category_enabled_flag, | 54 uint64_t AddTraceEvent( |
55 const char* name, const char* scope, uint64_t id, | 55 char phase, const uint8_t* category_enabled_flag, const char* name, |
56 uint64_t bind_id, int32_t num_args, | 56 const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, |
57 const char** arg_names, const uint8_t* arg_types, | 57 const char** arg_names, const uint8_t* arg_types, |
58 const uint64_t* arg_values, | 58 const uint64_t* arg_values, |
59 unsigned int flags) override; | 59 std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertables, |
| 60 unsigned int flags) override; |
60 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, | 61 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, |
61 const char* name, uint64_t handle) override; | 62 const char* name, uint64_t handle) override; |
62 void SetTracingController(tracing::TracingController* tracing_controller); | 63 void SetTracingController(tracing::TracingController* tracing_controller); |
63 | 64 |
64 private: | 65 private: |
65 static const int kMaxThreadPoolSize; | 66 static const int kMaxThreadPoolSize; |
66 | 67 |
67 Task* PopTaskInMainThreadQueue(v8::Isolate* isolate); | 68 Task* PopTaskInMainThreadQueue(v8::Isolate* isolate); |
68 Task* PopTaskInMainThreadDelayedQueue(v8::Isolate* isolate); | 69 Task* PopTaskInMainThreadDelayedQueue(v8::Isolate* isolate); |
69 | 70 |
(...skipping 13 matching lines...) Expand all Loading... |
83 | 84 |
84 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); | 85 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); |
85 }; | 86 }; |
86 | 87 |
87 | 88 |
88 } // namespace platform | 89 } // namespace platform |
89 } // namespace v8 | 90 } // namespace v8 |
90 | 91 |
91 | 92 |
92 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ | 93 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ |
OLD | NEW |