Chromium Code Reviews| Index: src/full-codegen.cc |
| =================================================================== |
| --- src/full-codegen.cc (revision 13419) |
| +++ 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()) { |
|
danno
2013/02/01 13:43:10
ove enabled check inside logger API.
|
| + void* line_info = |
|
danno
2013/02/01 13:43:10
jit_handler_info
|
| + isolate->logger()->CodeStartLinePosInfoRecordEvent(); |
| + masm.positions_recorder()->InitializeUserData(line_info); |
| + } |
| 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()) { |
|
danno
2013/02/01 13:43:10
Move enabled check inside logger API.
|
| + if (!code.is_null()) { |
| + void* line_info = |
|
danno
2013/02/01 13:43:10
jit_handler_info
|
| + masm.positions_recorder()->DetachJITLineInfo(); |
| + LOG_CODE_EVENT(isolate, CodeEndLinePosInfoRecordEvent(*code, line_info)); |
| + } |
| + } |
| return !code.is_null(); |
| } |