OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 | 406 |
407 // Internal configurable move event. | 407 // Internal configurable move event. |
408 void DeleteEventInternal(LogEventsAndTags event, Address from); | 408 void DeleteEventInternal(LogEventsAndTags event, Address from); |
409 | 409 |
410 // Emits the source code of a regexp. Used by regexp events. | 410 // Emits the source code of a regexp. Used by regexp events. |
411 void LogRegExpSource(Handle<JSRegExp> regexp); | 411 void LogRegExpSource(Handle<JSRegExp> regexp); |
412 | 412 |
413 // Used for logging stubs found in the snapshot. | 413 // Used for logging stubs found in the snapshot. |
414 void LogCodeObject(Object* code_object); | 414 void LogCodeObject(Object* code_object); |
415 | 415 |
| 416 // Appends standard code header. |
| 417 void AppendCodeCreateHeader(LogMessageBuilder*, LogEventsAndTags, |
| 418 Code*, int override_code_kind = 0); |
| 419 |
| 420 // Appends symbol for the name. |
| 421 void AppendSymbolName(LogMessageBuilder*, Symbol*); |
| 422 |
416 // Emits general information about generated code. | 423 // Emits general information about generated code. |
417 void LogCodeInfo(); | 424 void LogCodeInfo(); |
418 | 425 |
419 void RegisterSnapshotCodeName(Code* code, const char* name, int name_size); | 426 void RegisterSnapshotCodeName(Code* code, const char* name, int name_size); |
420 | 427 |
421 // Low-level logging support. | 428 // Low-level logging support. |
422 | 429 |
423 void LowLevelCodeCreateEvent(Code* code, const char* name, int name_size); | 430 void LowLevelCodeCreateEvent(Code* code, const char* name, int name_size); |
424 | 431 |
425 void LowLevelCodeMoveEvent(Address from, Address to); | 432 void LowLevelCodeMoveEvent(Address from, Address to); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 int64_t epoch_; | 511 int64_t epoch_; |
505 | 512 |
506 friend class CpuProfiler; | 513 friend class CpuProfiler; |
507 }; | 514 }; |
508 | 515 |
509 | 516 |
510 } } // namespace v8::internal | 517 } } // namespace v8::internal |
511 | 518 |
512 | 519 |
513 #endif // V8_LOG_H_ | 520 #endif // V8_LOG_H_ |
OLD | NEW |