| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 void AppendDetailed(String* str, bool show_impl_info); | 135 void AppendDetailed(String* str, bool show_impl_info); |
| 136 | 136 |
| 137 // Append a portion of a string. | 137 // Append a portion of a string. |
| 138 void AppendStringPart(const char* str, int len); | 138 void AppendStringPart(const char* str, int len); |
| 139 | 139 |
| 140 // Write the log message to the log file currently opened. | 140 // Write the log message to the log file currently opened. |
| 141 void WriteToLogFile(); | 141 void WriteToLogFile(); |
| 142 | 142 |
| 143 private: | 143 private: |
| 144 | |
| 145 Log* log_; | 144 Log* log_; |
| 146 ScopedLock sl; | 145 ScopedLock sl; |
| 147 int pos_; | 146 int pos_; |
| 148 }; | 147 }; |
| 149 | 148 |
| 150 } } // namespace v8::internal | 149 } } // namespace v8::internal |
| 151 | 150 |
| 152 #endif // V8_LOG_UTILS_H_ | 151 #endif // V8_LOG_UTILS_H_ |
| OLD | NEW |