Chromium Code Reviews| Index: src/log.h |
| =================================================================== |
| --- src/log.h (revision 13614) |
| +++ src/log.h (working copy) |
| @@ -76,6 +76,7 @@ |
| class Semaphore; |
| class Ticker; |
| class Isolate; |
| +class PositionsRecorder; |
| #undef LOG |
| #define LOG(isolate, Call) \ |
| @@ -246,6 +247,19 @@ |
| void CodeMoveEvent(Address from, Address to); |
| // Emits a code delete event. |
| void CodeDeleteEvent(Address from); |
| + // Emits a code line info add event with Postion type. |
| + void CodeLinePosInfoAddPositionEvent(void* jit_handler_data, |
| + int pc_offset, |
| + int position); |
| + // Emits a code line info add event with StatementPostion type. |
| + void CodeLinePosInfoAddStatementPositionEvent(void* jit_handler_data, |
| + int pc_offset, |
| + int position); |
| + // Emits a code line info start to record event |
| + void CodeStartLinePosInfoRecordEvent(PositionsRecorder* pos_recorder); |
| + // Emits a code line info finish record event. |
| + // It's the callee's responsibility to dispose the parameter jit_handler_data. |
| + void CodeEndLinePosInfoRecordEvent(Code* code, void* jit_handler_data); |
| void SharedFunctionInfoMoveEvent(Address from, Address to); |
| @@ -316,6 +330,10 @@ |
| return logging_nesting_ > 0; |
| } |
| + bool is_code_event_handler_enabled() { |
| + return code_event_handler_ != NULL; |
| + } |
| + |
| bool is_logging_code_events() { |
| return is_logging() || code_event_handler_ != NULL; |
| } |
| @@ -359,10 +377,18 @@ |
| ~Logger(); |
| // Issue code notifications. |
| - void IssueCodeAddedEvent(Code* code, const char* name, size_t name_len); |
| + void IssueCodeAddedEvent(Code* code, |
| + Handle<Script> script, |
|
danno
2013/02/11 15:17:57
Sorry, I think I gave you slightly misleading advi
|
| + const char* name, |
| + size_t name_len); |
| void IssueCodeMovedEvent(Address from, Address to); |
| void IssueCodeRemovedEvent(Address from); |
| - |
| + void IssueAddCodeLinePosInfoEvent(void* jit_handler_data, |
| + int pc_offset, |
| + int position, |
| + JitCodeEvent::PositionType position_Type); |
| + void* IssueStartCodePosInfoEvent(); |
| + void IssueEndCodePosInfoEvent(Code* code, void* jit_handler_data); |
| // Emits the profiler's first message. |
| void ProfilerBeginEvent(); |