Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_LOG_H_ | 5 #ifndef V8_LOG_H_ |
| 6 #define V8_LOG_H_ | 6 #define V8_LOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| 11 #include "src/base/platform/elapsed-timer.h" | 11 #include "src/base/platform/elapsed-timer.h" |
| 12 #include "src/base/platform/platform.h" | 12 #include "src/base/platform/platform.h" |
| 13 #include "src/flags.h" | |
|
Jakob Kummerow
2015/06/24 13:40:01
I don't think flags.h is needed below.
Djordje.Pesic
2015/06/25 08:06:16
I have to include flags.h because log-utils.h uses
Jakob Kummerow
2015/06/29 09:11:50
Yes, please include it exactly where it's needed (
Djordje.Pesic
2015/06/29 13:08:38
Done.
| |
| 14 #include "src/log-utils.h" | |
| 13 #include "src/objects.h" | 15 #include "src/objects.h" |
| 14 | 16 |
| 15 namespace v8 { | 17 namespace v8 { |
| 16 | 18 |
| 17 namespace base { | 19 namespace base { |
| 18 class Semaphore; | 20 class Semaphore; |
| 19 } | 21 } |
| 20 | 22 |
| 21 namespace internal { | 23 namespace internal { |
| 22 | 24 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 348 | 350 |
| 349 // Emits callback event messages. | 351 // Emits callback event messages. |
| 350 void CallbackEventInternal(const char* prefix, | 352 void CallbackEventInternal(const char* prefix, |
| 351 Name* name, | 353 Name* name, |
| 352 Address entry_point); | 354 Address entry_point); |
| 353 | 355 |
| 354 // Internal configurable move event. | 356 // Internal configurable move event. |
| 355 void MoveEventInternal(LogEventsAndTags event, Address from, Address to); | 357 void MoveEventInternal(LogEventsAndTags event, Address from, Address to); |
| 356 | 358 |
| 357 // Emits the source code of a regexp. Used by regexp events. | 359 // Emits the source code of a regexp. Used by regexp events. |
| 358 void LogRegExpSource(Handle<JSRegExp> regexp); | 360 void LogRegExpSource(Handle<JSRegExp> regexp, Log::MessageBuilder& msg); |
|
Jakob Kummerow
2015/06/24 13:40:01
The style guide forbids non-const references. Eith
Djordje.Pesic
2015/06/25 08:06:16
I have to include log-utils.h because class Messag
Jakob Kummerow
2015/06/29 09:11:50
Hm... But I'd really like to get as far away as po
Djordje.Pesic
2015/06/29 13:08:38
Done.
| |
| 359 | |
| 360 // Used for logging stubs found in the snapshot. | 361 // Used for logging stubs found in the snapshot. |
| 361 void LogCodeObject(Object* code_object); | 362 void LogCodeObject(Object* code_object); |
| 362 | 363 |
| 363 // Helper method. It resets name_buffer_ and add tag name into it. | 364 // Helper method. It resets name_buffer_ and add tag name into it. |
| 364 void InitNameBuffer(LogEventsAndTags tag); | 365 void InitNameBuffer(LogEventsAndTags tag); |
| 365 | 366 |
| 366 // Emits a profiler tick event. Used by the profiler thread. | 367 // Emits a profiler tick event. Used by the profiler thread. |
| 367 void TickEvent(TickSample* sample, bool overflow); | 368 void TickEvent(TickSample* sample, bool overflow); |
| 368 | 369 |
| 369 void ApiEvent(const char* name, ...); | 370 void ApiEvent(const char* name, ...); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 526 int length) = 0; | 527 int length) = 0; |
| 527 | 528 |
| 528 NameBuffer* name_buffer_; | 529 NameBuffer* name_buffer_; |
| 529 }; | 530 }; |
| 530 | 531 |
| 531 | 532 |
| 532 } } // namespace v8::internal | 533 } } // namespace v8::internal |
| 533 | 534 |
| 534 | 535 |
| 535 #endif // V8_LOG_H_ | 536 #endif // V8_LOG_H_ |
| OLD | NEW |