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

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

Issue 646007: Kill some unused code. (Closed)
Patch Set: some more Created 10 years, 10 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 | « src/log.cc ('k') | src/log-utils.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 return RetrieveCompressedPrevious(compressor, ""); 261 return RetrieveCompressedPrevious(compressor, "");
262 } 262 }
263 263
264 // Does the same at the version without arguments, and sets a prefix. 264 // Does the same at the version without arguments, and sets a prefix.
265 bool RetrieveCompressedPrevious(LogRecordCompressor* compressor, 265 bool RetrieveCompressedPrevious(LogRecordCompressor* compressor,
266 const char* prefix); 266 const char* prefix);
267 267
268 // Write the log message to the log file currently opened. 268 // Write the log message to the log file currently opened.
269 void WriteToLogFile(); 269 void WriteToLogFile();
270 270
271 // Write a null-terminated string to to the log file currently opened.
272 void WriteCStringToLogFile(const char* str);
273
274 // A handler that is called when Log::Write fails. 271 // A handler that is called when Log::Write fails.
275 typedef void (*WriteFailureHandler)(); 272 typedef void (*WriteFailureHandler)();
276 273
277 static void set_write_failure_handler(WriteFailureHandler handler) { 274 static void set_write_failure_handler(WriteFailureHandler handler) {
278 write_failure_handler = handler; 275 write_failure_handler = handler;
279 } 276 }
280 277
281 private: 278 private:
282 static WriteFailureHandler write_failure_handler; 279 static WriteFailureHandler write_failure_handler;
283 280
284 ScopedLock sl; 281 ScopedLock sl;
285 int pos_; 282 int pos_;
286 }; 283 };
287 284
288 #endif // ENABLE_LOGGING_AND_PROFILING 285 #endif // ENABLE_LOGGING_AND_PROFILING
289 286
290 } } // namespace v8::internal 287 } } // namespace v8::internal
291 288
292 #endif // V8_LOG_UTILS_H_ 289 #endif // V8_LOG_UTILS_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/log-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698