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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 // Append string data to the log message. | 126 // Append string data to the log message. |
127 void Append(const char* format, ...); | 127 void Append(const char* format, ...); |
128 | 128 |
129 // Append string data to the log message. | 129 // Append string data to the log message. |
130 void AppendVA(const char* format, va_list args); | 130 void AppendVA(const char* format, va_list args); |
131 | 131 |
132 // Append a character to the log message. | 132 // Append a character to the log message. |
133 void Append(const char c); | 133 void Append(const char c); |
134 | 134 |
| 135 // Append double quoted string to the log message. |
| 136 void AppendDoubleQuotedString(const char* string); |
| 137 |
135 // Append a heap string. | 138 // Append a heap string. |
136 void Append(String* str); | 139 void Append(String* str); |
137 | 140 |
138 // Appends an address. | 141 // Appends an address. |
139 void AppendAddress(Address addr); | 142 void AppendAddress(Address addr); |
140 | 143 |
141 void AppendDetailed(String* str, bool show_impl_info); | 144 void AppendDetailed(String* str, bool show_impl_info); |
142 | 145 |
143 // Append a portion of a string. | 146 // Append a portion of a string. |
144 void AppendStringPart(const char* str, int len); | 147 void AppendStringPart(const char* str, int len); |
145 | 148 |
146 // Write the log message to the log file currently opened. | 149 // Write the log message to the log file currently opened. |
147 void WriteToLogFile(); | 150 void WriteToLogFile(); |
148 | 151 |
149 private: | 152 private: |
150 Log* log_; | 153 Log* log_; |
151 ScopedLock sl; | 154 ScopedLock sl; |
152 int pos_; | 155 int pos_; |
153 }; | 156 }; |
154 | 157 |
155 } } // namespace v8::internal | 158 } } // namespace v8::internal |
156 | 159 |
157 #endif // V8_LOG_UTILS_H_ | 160 #endif // V8_LOG_UTILS_H_ |
OLD | NEW |