Commit eaa84580 authored by leonclarke@gmail.com's avatar leonclarke@gmail.com

Get it to compile when ENABLE_LOGGING_AND_PROFILING isn't defined.

I think it currently is defined on all platforms except Android.
Review URL: http://codereview.chromium.org/554101

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3723 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5fe8bd99
...@@ -904,10 +904,10 @@ void Logger::FunctionDeleteEvent(Address from) { ...@@ -904,10 +904,10 @@ void Logger::FunctionDeleteEvent(Address from) {
} }
#ifdef ENABLE_LOGGING_AND_PROFILING
void Logger::MoveEventInternal(LogEventsAndTags event, void Logger::MoveEventInternal(LogEventsAndTags event,
Address from, Address from,
Address to) { Address to) {
#ifdef ENABLE_LOGGING_AND_PROFILING
static Address prev_to_ = NULL; static Address prev_to_ = NULL;
if (!Log::IsEnabled() || !FLAG_log_code) return; if (!Log::IsEnabled() || !FLAG_log_code) return;
LogMessageBuilder msg; LogMessageBuilder msg;
...@@ -922,12 +922,12 @@ void Logger::MoveEventInternal(LogEventsAndTags event, ...@@ -922,12 +922,12 @@ void Logger::MoveEventInternal(LogEventsAndTags event,
} }
msg.Append('\n'); msg.Append('\n');
msg.WriteToLogFile(); msg.WriteToLogFile();
#endif
} }
#endif
void Logger::DeleteEventInternal(LogEventsAndTags event, Address from) {
#ifdef ENABLE_LOGGING_AND_PROFILING #ifdef ENABLE_LOGGING_AND_PROFILING
void Logger::DeleteEventInternal(LogEventsAndTags event, Address from) {
if (!Log::IsEnabled() || !FLAG_log_code) return; if (!Log::IsEnabled() || !FLAG_log_code) return;
LogMessageBuilder msg; LogMessageBuilder msg;
msg.Append("%s,", log_events_[event]); msg.Append("%s,", log_events_[event]);
...@@ -938,8 +938,8 @@ void Logger::DeleteEventInternal(LogEventsAndTags event, Address from) { ...@@ -938,8 +938,8 @@ void Logger::DeleteEventInternal(LogEventsAndTags event, Address from) {
} }
msg.Append('\n'); msg.Append('\n');
msg.WriteToLogFile(); msg.WriteToLogFile();
#endif
} }
#endif
void Logger::ResourceEvent(const char* name, const char* tag) { void Logger::ResourceEvent(const char* name, const char* tag) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment