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" |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 void ProfilerBeginEvent(); | 347 void ProfilerBeginEvent(); |
348 | 348 |
349 // Emits callback event messages. | 349 // Emits callback event messages. |
350 void CallbackEventInternal(const char* prefix, | 350 void CallbackEventInternal(const char* prefix, |
351 Name* name, | 351 Name* name, |
352 Address entry_point); | 352 Address entry_point); |
353 | 353 |
354 // Internal configurable move event. | 354 // Internal configurable move event. |
355 void MoveEventInternal(LogEventsAndTags event, Address from, Address to); | 355 void MoveEventInternal(LogEventsAndTags event, Address from, Address to); |
356 | 356 |
357 // Emits the source code of a regexp. Used by regexp events. | |
358 void LogRegExpSource(Handle<JSRegExp> regexp); | |
359 | |
360 // Used for logging stubs found in the snapshot. | 357 // Used for logging stubs found in the snapshot. |
361 void LogCodeObject(Object* code_object); | 358 void LogCodeObject(Object* code_object); |
362 | 359 |
363 // Helper method. It resets name_buffer_ and add tag name into it. | 360 // Helper method. It resets name_buffer_ and add tag name into it. |
364 void InitNameBuffer(LogEventsAndTags tag); | 361 void InitNameBuffer(LogEventsAndTags tag); |
365 | 362 |
366 // Emits a profiler tick event. Used by the profiler thread. | 363 // Emits a profiler tick event. Used by the profiler thread. |
367 void TickEvent(TickSample* sample, bool overflow); | 364 void TickEvent(TickSample* sample, bool overflow); |
368 | 365 |
369 void ApiEvent(const char* name, ...); | 366 void ApiEvent(const char* name, ...); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 int length) = 0; | 523 int length) = 0; |
527 | 524 |
528 NameBuffer* name_buffer_; | 525 NameBuffer* name_buffer_; |
529 }; | 526 }; |
530 | 527 |
531 | 528 |
532 } } // namespace v8::internal | 529 } } // namespace v8::internal |
533 | 530 |
534 | 531 |
535 #endif // V8_LOG_H_ | 532 #endif // V8_LOG_H_ |
OLD | NEW |