Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/libplatform/default-platform.h

Issue 2380583002: [tracing] Avoid Gcc compilation fail by declaring AddTraceEvent function in Class derived from Plat… (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/d8.cc ('k') | test/cctest/heap/test-incremental-marking.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | test/cctest/heap/test-incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698