Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 1632935c070175358cdf8eabeef0139b243ad64d..2dac2b6044c030247072682aebab4cf0e991eac0 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -46,8 +46,6 @@ bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
if (info->will_serialize()) masm.enable_serializer(); |
FullCodeGenerator cgen(&masm, info); |
- LOG_CODE_EVENT(isolate, CodeStartLinePosInfoRecordEvent( |
- &cgen.source_position_table_builder_)); |
cgen.Generate(); |
if (cgen.HasStackOverflow()) { |
DCHECK(!isolate->has_pending_exception()); |
@@ -67,11 +65,9 @@ bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
Handle<ByteArray> source_positions = |
cgen.source_position_table_builder_.ToSourcePositionTable(); |
code->set_source_position_table(*source_positions); |
+ cgen.source_position_table_builder_.EndJitLogging(AbstractCode::cast(*code)); |
CodeGenerator::PrintCode(code, info); |
info->SetCode(code); |
- void* line_info = cgen.source_position_table_builder_.DetachJITHandlerData(); |
- LOG_CODE_EVENT(isolate, CodeEndLinePosInfoRecordEvent( |
- AbstractCode::cast(*code), line_info)); |
#ifdef DEBUG |
// Check that no context-specific object has been embedded. |