| Index: src/log.cc
|
| diff --git a/src/log.cc b/src/log.cc
|
| index 3abaaaa805e05d4a471af40a341937e62dcaa590..a530e5b536718a051862934eaa5179629e159b7f 100644
|
| --- a/src/log.cc
|
| +++ b/src/log.cc
|
| @@ -326,14 +326,6 @@ class LowLevelLogger : public CodeEventLogger {
|
| };
|
|
|
|
|
| - struct SnapshotPositionStruct {
|
| - static const char kTag = 'P';
|
| -
|
| - Address address;
|
| - int32_t position;
|
| - };
|
| -
|
| -
|
| static const char kCodeMovingGCTag = 'G';
|
|
|
|
|
| @@ -426,17 +418,6 @@ void LowLevelLogger::CodeMoveEvent(AbstractCode* from, Address to) {
|
| LogWriteStruct(event);
|
| }
|
|
|
| -void LowLevelLogger::SnapshotPositionEvent(HeapObject* obj, int pos) {
|
| - if (obj->IsAbstractCode()) {
|
| - SnapshotPositionStruct event;
|
| - event.address =
|
| - obj->address() +
|
| - (obj->IsCode() ? Code::kHeaderSize : BytecodeArray::kHeaderSize);
|
| - event.position = pos;
|
| - LogWriteStruct(event);
|
| - }
|
| -}
|
| -
|
|
|
| void LowLevelLogger::LogWriteBytes(const char* bytes, int size) {
|
| size_t rv = fwrite(bytes, 1, size, ll_output_handle_);
|
| @@ -1296,17 +1277,6 @@ void Logger::CodeNameEvent(Address addr, int pos, const char* code_name) {
|
| msg.WriteToLogFile();
|
| }
|
|
|
| -void Logger::SnapshotPositionEvent(HeapObject* obj, int pos) {
|
| - if (!log_->IsEnabled()) return;
|
| - LL_LOG(SnapshotPositionEvent(obj, pos));
|
| - if (!FLAG_log_snapshot_positions) return;
|
| - Log::MessageBuilder msg(log_);
|
| - msg.Append("%s,", kLogEventsNames[SNAPSHOT_POSITION_EVENT]);
|
| - msg.AppendAddress(obj->address());
|
| - msg.Append(",%d", pos);
|
| - msg.WriteToLogFile();
|
| -}
|
| -
|
|
|
| void Logger::SharedFunctionInfoMoveEvent(Address from, Address to) {
|
| if (!is_logging_code_events()) return;
|
| @@ -1782,11 +1752,6 @@ bool Logger::SetUp(Isolate* isolate) {
|
| if (is_initialized_) return true;
|
| is_initialized_ = true;
|
|
|
| - // --ll-prof implies --log-code and --log-snapshot-positions.
|
| - if (FLAG_ll_prof) {
|
| - FLAG_log_snapshot_positions = true;
|
| - }
|
| -
|
| std::ostringstream log_file_name;
|
| PrepareLogFileName(log_file_name, isolate, FLAG_logfile);
|
| log_->Initialize(log_file_name.str().c_str());
|
|
|