| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 void Add(const char* format); | 130 void Add(const char* format); |
| 131 void Add(Vector<const char> format); | 131 void Add(Vector<const char> format); |
| 132 void Add(const char* format, FmtElm arg0); | 132 void Add(const char* format, FmtElm arg0); |
| 133 void Add(const char* format, FmtElm arg0, FmtElm arg1); | 133 void Add(const char* format, FmtElm arg0, FmtElm arg1); |
| 134 void Add(const char* format, FmtElm arg0, FmtElm arg1, FmtElm arg2); | 134 void Add(const char* format, FmtElm arg0, FmtElm arg1, FmtElm arg2); |
| 135 void Add(const char* format, | 135 void Add(const char* format, |
| 136 FmtElm arg0, | 136 FmtElm arg0, |
| 137 FmtElm arg1, | 137 FmtElm arg1, |
| 138 FmtElm arg2, | 138 FmtElm arg2, |
| 139 FmtElm arg3); | 139 FmtElm arg3); |
| 140 void Add(const char* format, |
| 141 FmtElm arg0, |
| 142 FmtElm arg1, |
| 143 FmtElm arg2, |
| 144 FmtElm arg3, |
| 145 FmtElm arg4); |
| 140 | 146 |
| 141 // Getting the message out. | 147 // Getting the message out. |
| 142 void OutputToFile(FILE* out); | 148 void OutputToFile(FILE* out); |
| 143 void OutputToStdOut() { OutputToFile(stdout); } | 149 void OutputToStdOut() { OutputToFile(stdout); } |
| 144 void Log(); | 150 void Log(); |
| 145 Handle<String> ToString(); | 151 Handle<String> ToString(); |
| 146 SmartArrayPointer<const char> ToCString() const; | 152 SmartArrayPointer<const char> ToCString() const; |
| 147 int length() const { return length_; } | 153 int length() const { return length_; } |
| 148 | 154 |
| 149 // Object printing support. | 155 // Object printing support. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 private: | 214 private: |
| 209 bool first_; | 215 bool first_; |
| 210 char separator_; | 216 char separator_; |
| 211 StringStream* stream_; | 217 StringStream* stream_; |
| 212 }; | 218 }; |
| 213 | 219 |
| 214 | 220 |
| 215 } } // namespace v8::internal | 221 } } // namespace v8::internal |
| 216 | 222 |
| 217 #endif // V8_STRING_STREAM_H_ | 223 #endif // V8_STRING_STREAM_H_ |
| OLD | NEW |