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

Side by Side Diff: src/log-utils.cc

Issue 21173004: Version 3.20.11.1 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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/log.cc ('k') | src/mark-compact.cc » ('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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 FLAG_log_gc = true; 59 FLAG_log_gc = true;
60 FLAG_log_suspect = true; 60 FLAG_log_suspect = true;
61 FLAG_log_handles = true; 61 FLAG_log_handles = true;
62 FLAG_log_regexp = true; 62 FLAG_log_regexp = true;
63 FLAG_log_internal_timer_events = true; 63 FLAG_log_internal_timer_events = true;
64 } 64 }
65 65
66 // --prof implies --log-code. 66 // --prof implies --log-code.
67 if (FLAG_prof) FLAG_log_code = true; 67 if (FLAG_prof) FLAG_log_code = true;
68 68
69 // --prof_lazy controls --log-code. 69 // --prof_lazy controls --log-code, implies --noprof_auto.
70 if (FLAG_prof_lazy) { 70 if (FLAG_prof_lazy) {
71 FLAG_log_code = false; 71 FLAG_log_code = false;
72 FLAG_prof_auto = false;
72 } 73 }
73 74
74 // If we're logging anything, we need to open the log file. 75 // If we're logging anything, we need to open the log file.
75 if (Log::InitLogAtStart()) { 76 if (Log::InitLogAtStart()) {
76 if (strcmp(log_file_name, kLogToConsole) == 0) { 77 if (strcmp(log_file_name, kLogToConsole) == 0) {
77 OpenStdout(); 78 OpenStdout();
78 } else if (strcmp(log_file_name, kLogToTemporaryFile) == 0) { 79 } else if (strcmp(log_file_name, kLogToTemporaryFile) == 0) {
79 OpenTemporaryFile(); 80 OpenTemporaryFile();
80 } else { 81 } else {
81 OpenFile(log_file_name); 82 OpenFile(log_file_name);
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 ASSERT(pos_ <= Log::kMessageBufferSize); 256 ASSERT(pos_ <= Log::kMessageBufferSize);
256 const int written = log_->WriteToFile(log_->message_buffer_, pos_); 257 const int written = log_->WriteToFile(log_->message_buffer_, pos_);
257 if (written != pos_) { 258 if (written != pos_) {
258 log_->stop(); 259 log_->stop();
259 log_->logger_->LogFailure(); 260 log_->logger_->LogFailure();
260 } 261 }
261 } 262 }
262 263
263 264
264 } } // namespace v8::internal 265 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698