Chromium Code Reviews| Index: src/full-codegen.cc |
| =================================================================== |
| --- src/full-codegen.cc (revision 13276) |
| +++ src/full-codegen.cc (working copy) |
| @@ -307,7 +307,11 @@ |
| #ifdef ENABLE_GDB_JIT_INTERFACE |
| masm.positions_recorder()->StartGDBJITLineInfoRecording(); |
| #endif |
| - |
| + if (isolate->logger()->is_code_event_handler_enabled()) { |
| + JITCodeLineInfo* lineinfo = |
| + masm.positions_recorder()->InitializeJITLineInfo(); |
| + LOG_CODE_EVENT(isolate, CodeStartLinePosInfoRecordEvent(lineinfo)); |
|
danno
2013/01/10 16:47:33
nit: here and elsewhere: line_info
chunyang.dai
2013/01/18 10:22:44
Done.
|
| + } |
| FullCodeGenerator cgen(&masm, info); |
| cgen.Generate(); |
| if (cgen.HasStackOverflow()) { |
| @@ -344,6 +348,13 @@ |
| GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); |
| } |
| #endif |
| + if (isolate->logger()->is_code_event_handler_enabled()) { |
| + if (!code.is_null()) { |
| + JITCodeLineInfo* lineinfo = |
| + masm.positions_recorder()->DetachJITLineInfo(); |
| + LOG_CODE_EVENT(isolate, CodeEndLinePosInfoRecordEvent(*code, lineinfo)); |
| + } |
| + } |
| return !code.is_null(); |
| } |