Index: src/lithium.cc |
=================================================================== |
--- src/lithium.cc (revision 13684) |
+++ src/lithium.cc (working copy) |
@@ -444,6 +444,9 @@ |
Handle<Code> LChunk::Codegen(Code::Kind kind) { |
MacroAssembler assembler(info()->isolate(), NULL, 0); |
+ LOG_CODE_EVENT(info()->isolate(), |
+ CodeStartLinePosInfoRecordEvent( |
+ assembler.positions_recorder())); |
LCodeGen generator(this, &assembler, info()); |
MarkEmptyBlocks(); |
@@ -457,6 +460,14 @@ |
Handle<Code> code = |
CodeGenerator::MakeCodeEpilogue(&assembler, flags, info()); |
generator.FinishCode(code); |
+ |
+ if (!code.is_null()) { |
+ void* jit_handler_data = |
+ assembler.positions_recorder()->DetachJITHandlerData(); |
+ LOG_CODE_EVENT(info()->isolate(), |
+ CodeEndLinePosInfoRecordEvent(*code, jit_handler_data)); |
+ } |
+ |
CodeGenerator::PrintCode(code, info()); |
return code; |
} |