| OLD | NEW |
| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 public: | 223 public: |
| 224 // Create a message builder starting from position 0. This acquires the mutex | 224 // Create a message builder starting from position 0. This acquires the mutex |
| 225 // in the log as well. | 225 // in the log as well. |
| 226 explicit LogMessageBuilder(); | 226 explicit LogMessageBuilder(); |
| 227 ~LogMessageBuilder() { } | 227 ~LogMessageBuilder() { } |
| 228 | 228 |
| 229 // Append string data to the log message. | 229 // Append string data to the log message. |
| 230 void Append(const char* format, ...); | 230 void Append(const char* format, ...); |
| 231 | 231 |
| 232 // Append string data to the log message. | 232 // Append string data to the log message. |
| 233 void Append(const char* format, va_list args); | 233 void AppendVA(const char* format, va_list args); |
| 234 | 234 |
| 235 // Append a character to the log message. | 235 // Append a character to the log message. |
| 236 void Append(const char c); | 236 void Append(const char c); |
| 237 | 237 |
| 238 // Append a heap string. | 238 // Append a heap string. |
| 239 void Append(String* str); | 239 void Append(String* str); |
| 240 | 240 |
| 241 // Appends an address, compressing it if needed by offsetting | 241 // Appends an address, compressing it if needed by offsetting |
| 242 // from Logger::last_address_. | 242 // from Logger::last_address_. |
| 243 void AppendAddress(Address addr); | 243 void AppendAddress(Address addr); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 279 |
| 280 ScopedLock sl; | 280 ScopedLock sl; |
| 281 int pos_; | 281 int pos_; |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 #endif // ENABLE_LOGGING_AND_PROFILING | 284 #endif // ENABLE_LOGGING_AND_PROFILING |
| 285 | 285 |
| 286 } } // namespace v8::internal | 286 } } // namespace v8::internal |
| 287 | 287 |
| 288 #endif // V8_LOG_UTILS_H_ | 288 #endif // V8_LOG_UTILS_H_ |
| OLD | NEW |