Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Side by Side Diff: src/log.cc

Issue 113094: X64: Changed TickSample to hold pointer-sized values for registers. (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/platform.h » ('j') | src/platform-win32.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 DeleteArray(parameter_string); 1075 DeleteArray(parameter_string);
1076 msg.WriteToLogFile(); 1076 msg.WriteToLogFile();
1077 #endif 1077 #endif
1078 } 1078 }
1079 1079
1080 1080
1081 #ifdef ENABLE_LOGGING_AND_PROFILING 1081 #ifdef ENABLE_LOGGING_AND_PROFILING
1082 void Logger::TickEvent(TickSample* sample, bool overflow) { 1082 void Logger::TickEvent(TickSample* sample, bool overflow) {
1083 if (!Log::is_enabled() || !FLAG_prof) return; 1083 if (!Log::is_enabled() || !FLAG_prof) return;
1084 LogMessageBuilder msg; 1084 LogMessageBuilder msg;
1085 msg.Append("tick,0x%x,0x%x,%d", sample->pc, sample->sp, 1085 msg.Append("tick,0x%p,0x%p,%d", sample->pc, sample->sp,
Dean McNamee 2009/05/07 08:34:08 I realize this is our own StringStream, but just F
Lasse Reichstein 2009/05/07 09:06:01 Yes, it needs to be changed. Will do that in anoth
1086 static_cast<int>(sample->state)); 1086 static_cast<int>(sample->state));
1087 if (overflow) { 1087 if (overflow) {
1088 msg.Append(",overflow"); 1088 msg.Append(",overflow");
1089 } 1089 }
1090 for (int i = 0; i < sample->frames_count; ++i) { 1090 for (int i = 0; i < sample->frames_count; ++i) {
1091 msg.Append(",0x%x", reinterpret_cast<uint32_t>(sample->stack[i])); 1091 msg.Append(",0x%p", reinterpret_cast<uint32_t>(sample->stack[i]));
Dean McNamee 2009/05/07 08:34:08 why are you usin %p for a non-pointer?
Lasse Reichstein 2009/05/07 09:06:01 Because I forgot to remove the cast. Good catch.
1092 } 1092 }
1093 msg.Append('\n'); 1093 msg.Append('\n');
1094 msg.WriteToLogFile(); 1094 msg.WriteToLogFile();
1095 } 1095 }
1096 1096
1097 1097
1098 bool Logger::IsProfilerPaused() { 1098 bool Logger::IsProfilerPaused() {
1099 return profiler_->paused(); 1099 return profiler_->paused();
1100 } 1100 }
1101 1101
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 } else if (previous_->state_ == EXTERNAL) { 1322 } else if (previous_->state_ == EXTERNAL) {
1323 // We are leaving V8. 1323 // We are leaving V8.
1324 Heap::Protect(); 1324 Heap::Protect();
1325 } 1325 }
1326 } 1326 }
1327 #endif 1327 #endif
1328 } 1328 }
1329 #endif 1329 #endif
1330 1330
1331 } } // namespace v8::internal 1331 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/platform.h » ('j') | src/platform-win32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698