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

Side by Side Diff: src/log.cc

Issue 27325: Push bleeding_edge@1391 and bleeding_edge@1392 to trunk. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/api.cc ('k') | src/regexp-delay.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 Append("\\\\"); 379 Append("\\\\");
380 } else { 380 } else {
381 Append("%lc", c); 381 Append("%lc", c);
382 } 382 }
383 } 383 }
384 } 384 }
385 385
386 // Write the log message to the log file currently opened. 386 // Write the log message to the log file currently opened.
387 void LogMessageBuilder::WriteToLogFile() { 387 void LogMessageBuilder::WriteToLogFile() {
388 ASSERT(pos_ <= Logger::kMessageBufferSize); 388 ASSERT(pos_ <= Logger::kMessageBufferSize);
389 fwrite(Logger::message_buffer_, 1, pos_, Logger::logfile_); 389 size_t rv = fwrite(Logger::message_buffer_, 1, pos_, Logger::logfile_);
390 ASSERT(rv == static_cast<size_t>(pos_));
391 USE(rv);
390 } 392 }
391 #endif 393 #endif
392 394
393 395
394 // 396 //
395 // Logger class implementation. 397 // Logger class implementation.
396 // 398 //
397 Ticker* Logger::ticker_ = NULL; 399 Ticker* Logger::ticker_ = NULL;
398 char* Logger::message_buffer_ = NULL; 400 char* Logger::message_buffer_ = NULL;
399 FILE* Logger::logfile_ = NULL; 401 FILE* Logger::logfile_ = NULL;
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 if (FLAG_log_state_changes) { 1138 if (FLAG_log_state_changes) {
1137 LOG(UncheckedStringEvent("Leaving", StateToString(state_))); 1139 LOG(UncheckedStringEvent("Leaving", StateToString(state_)));
1138 if (previous_) { 1140 if (previous_) {
1139 LOG(UncheckedStringEvent("To", StateToString(previous_->state_))); 1141 LOG(UncheckedStringEvent("To", StateToString(previous_->state_)));
1140 } 1142 }
1141 } 1143 }
1142 } 1144 }
1143 #endif 1145 #endif
1144 1146
1145 } } // namespace v8::internal 1147 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/regexp-delay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698