Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 3f1c970885183f88721d2510d8aa72c6162b98bb..35cf0aa90bbbdd7eb1fba0dab19049c1eb486693 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -911,9 +911,10 @@ void Logger::SharedLibraryEvent(const std::string& library_path, |
} |
-void Logger::CodeDeoptEvent(Code* code) { |
- if (!log_->IsEnabled()) return; |
- DCHECK(FLAG_log_internal_timer_events); |
+void Logger::CodeDeoptEvent(Code* code, int bailout_id, Address from, |
+ int fp_to_sp_delta) { |
+ PROFILER_LOG(CodeDeoptEvent(code, bailout_id, from, fp_to_sp_delta)); |
+ if (!log_->IsEnabled() || !FLAG_log_internal_timer_events) return; |
Log::MessageBuilder msg(log_); |
int since_epoch = static_cast<int>(timer_.Elapsed().InMicroseconds()); |
msg.Append("code-deopt,%ld,%d", since_epoch, code->CodeSize()); |