| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/log.h" | 5 #include "src/log.h" |
| 6 | 6 |
| 7 #include <cstdarg> | 7 #include <cstdarg> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/v8.h" | 10 #include "src/v8.h" |
| (...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1405 if (!FLAG_log_snapshot_positions) return; | 1405 if (!FLAG_log_snapshot_positions) return; |
| 1406 Log::MessageBuilder msg(log_); | 1406 Log::MessageBuilder msg(log_); |
| 1407 msg.Append("%s,", kLogEventsNames[SNAPSHOT_POSITION_EVENT]); | 1407 msg.Append("%s,", kLogEventsNames[SNAPSHOT_POSITION_EVENT]); |
| 1408 msg.AppendAddress(addr); | 1408 msg.AppendAddress(addr); |
| 1409 msg.Append(",%d", pos); | 1409 msg.Append(",%d", pos); |
| 1410 msg.WriteToLogFile(); | 1410 msg.WriteToLogFile(); |
| 1411 } | 1411 } |
| 1412 | 1412 |
| 1413 | 1413 |
| 1414 void Logger::SharedFunctionInfoMoveEvent(Address from, Address to) { | 1414 void Logger::SharedFunctionInfoMoveEvent(Address from, Address to) { |
| 1415 PROFILER_LOG(SharedFunctionInfoMoveEvent(from, to)); | |
| 1416 | |
| 1417 if (!is_logging_code_events()) return; | 1415 if (!is_logging_code_events()) return; |
| 1418 MoveEventInternal(SHARED_FUNC_MOVE_EVENT, from, to); | 1416 MoveEventInternal(SHARED_FUNC_MOVE_EVENT, from, to); |
| 1419 } | 1417 } |
| 1420 | 1418 |
| 1421 | 1419 |
| 1422 void Logger::MoveEventInternal(LogEventsAndTags event, | 1420 void Logger::MoveEventInternal(LogEventsAndTags event, |
| 1423 Address from, | 1421 Address from, |
| 1424 Address to) { | 1422 Address to) { |
| 1425 if (!FLAG_log_code || !log_->IsEnabled()) return; | 1423 if (!FLAG_log_code || !log_->IsEnabled()) return; |
| 1426 Log::MessageBuilder msg(log_); | 1424 Log::MessageBuilder msg(log_); |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1934 if (jit_logger_) { | 1932 if (jit_logger_) { |
| 1935 removeCodeEventListener(jit_logger_); | 1933 removeCodeEventListener(jit_logger_); |
| 1936 delete jit_logger_; | 1934 delete jit_logger_; |
| 1937 jit_logger_ = NULL; | 1935 jit_logger_ = NULL; |
| 1938 } | 1936 } |
| 1939 | 1937 |
| 1940 return log_->Close(); | 1938 return log_->Close(); |
| 1941 } | 1939 } |
| 1942 | 1940 |
| 1943 } } // namespace v8::internal | 1941 } } // namespace v8::internal |
| OLD | NEW |