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( | 54 uint64_t AddTraceEvent(char phase, const uint8_t* category_enabled_flag, |
55 char phase, const uint8_t* category_enabled_flag, const char* name, | 55 const char* name, const char* scope, uint64_t id, |
56 const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, | 56 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 std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertables, | 59 unsigned int flags) override; |
60 unsigned int flags) override; | |
61 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, | 60 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, |
62 const char* name, uint64_t handle) override; | 61 const char* name, uint64_t handle) override; |
63 void SetTracingController(tracing::TracingController* tracing_controller); | 62 void SetTracingController(tracing::TracingController* tracing_controller); |
64 | 63 |
65 private: | 64 private: |
66 static const int kMaxThreadPoolSize; | 65 static const int kMaxThreadPoolSize; |
67 | 66 |
68 Task* PopTaskInMainThreadQueue(v8::Isolate* isolate); | 67 Task* PopTaskInMainThreadQueue(v8::Isolate* isolate); |
69 Task* PopTaskInMainThreadDelayedQueue(v8::Isolate* isolate); | 68 Task* PopTaskInMainThreadDelayedQueue(v8::Isolate* isolate); |
70 | 69 |
(...skipping 13 matching lines...) Expand all Loading... |
84 | 83 |
85 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); | 84 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); |
86 }; | 85 }; |
87 | 86 |
88 | 87 |
89 } // namespace platform | 88 } // namespace platform |
90 } // namespace v8 | 89 } // namespace v8 |
91 | 90 |
92 | 91 |
93 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ | 92 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ |
OLD | NEW |