| 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 <memory> | 10 #include <memory> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 ExpectedRuntime expected_runtime) override; | 45 ExpectedRuntime expected_runtime) override; |
| 46 void CallOnForegroundThread(v8::Isolate* isolate, Task* task) override; | 46 void CallOnForegroundThread(v8::Isolate* isolate, Task* task) override; |
| 47 void CallDelayedOnForegroundThread(Isolate* isolate, Task* task, | 47 void CallDelayedOnForegroundThread(Isolate* isolate, Task* task, |
| 48 double delay_in_seconds) override; | 48 double delay_in_seconds) override; |
| 49 void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) override; | 49 void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) override; |
| 50 bool IdleTasksEnabled(Isolate* isolate) override; | 50 bool IdleTasksEnabled(Isolate* isolate) override; |
| 51 double MonotonicallyIncreasingTime() override; | 51 double MonotonicallyIncreasingTime() override; |
| 52 const uint8_t* GetCategoryGroupEnabled(const char* name) override; | 52 const uint8_t* GetCategoryGroupEnabled(const char* name) override; |
| 53 const char* GetCategoryGroupName( | 53 const char* GetCategoryGroupName( |
| 54 const uint8_t* category_enabled_flag) override; | 54 const uint8_t* category_enabled_flag) override; |
| 55 using Platform::AddTraceEvent; |
| 55 uint64_t AddTraceEvent( | 56 uint64_t AddTraceEvent( |
| 56 char phase, const uint8_t* category_enabled_flag, const char* name, | 57 char phase, const uint8_t* category_enabled_flag, const char* name, |
| 57 const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, | 58 const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, |
| 58 const char** arg_names, const uint8_t* arg_types, | 59 const char** arg_names, const uint8_t* arg_types, |
| 59 const uint64_t* arg_values, | 60 const uint64_t* arg_values, |
| 60 std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertables, | 61 std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertables, |
| 61 unsigned int flags) override; | 62 unsigned int flags) override; |
| 62 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, | 63 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, |
| 63 const char* name, uint64_t handle) override; | 64 const char* name, uint64_t handle) override; |
| 64 void SetTracingController(tracing::TracingController* tracing_controller); | 65 void SetTracingController(tracing::TracingController* tracing_controller); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); | 90 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 | 93 |
| 93 } // namespace platform | 94 } // namespace platform |
| 94 } // namespace v8 | 95 } // namespace v8 |
| 95 | 96 |
| 96 | 97 |
| 97 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ | 98 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ |
| OLD | NEW |