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
This commit is contained in:
parent
5fe8bd9919
commit
eaa845804e
@ -904,10 +904,10 @@ void Logger::FunctionDeleteEvent(Address from) {
|
||||
}
|
||||
|
||||
|
||||
#ifdef ENABLE_LOGGING_AND_PROFILING
|
||||
void Logger::MoveEventInternal(LogEventsAndTags event,
|
||||
Address from,
|
||||
Address to) {
|
||||
#ifdef ENABLE_LOGGING_AND_PROFILING
|
||||
static Address prev_to_ = NULL;
|
||||
if (!Log::IsEnabled() || !FLAG_log_code) return;
|
||||
LogMessageBuilder msg;
|
||||
@ -922,12 +922,12 @@ void Logger::MoveEventInternal(LogEventsAndTags event,
|
||||
}
|
||||
msg.Append('\n');
|
||||
msg.WriteToLogFile();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
void Logger::DeleteEventInternal(LogEventsAndTags event, Address from) {
|
||||
#ifdef ENABLE_LOGGING_AND_PROFILING
|
||||
void Logger::DeleteEventInternal(LogEventsAndTags event, Address from) {
|
||||
if (!Log::IsEnabled() || !FLAG_log_code) return;
|
||||
LogMessageBuilder msg;
|
||||
msg.Append("%s,", log_events_[event]);
|
||||
@ -938,8 +938,8 @@ void Logger::DeleteEventInternal(LogEventsAndTags event, Address from) {
|
||||
}
|
||||
msg.Append('\n');
|
||||
msg.WriteToLogFile();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
void Logger::ResourceEvent(const char* name, const char* tag) {
|
||||
|
Loading…
Reference in New Issue
Block a user