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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 void Add(const char* format, | 140 void Add(const char* format, |
141 FmtElm arg0, | 141 FmtElm arg0, |
142 FmtElm arg1, | 142 FmtElm arg1, |
143 FmtElm arg2, | 143 FmtElm arg2, |
144 FmtElm arg3, | 144 FmtElm arg3, |
145 FmtElm arg4); | 145 FmtElm arg4); |
146 | 146 |
147 // Getting the message out. | 147 // Getting the message out. |
148 void OutputToFile(FILE* out); | 148 void OutputToFile(FILE* out); |
149 void OutputToStdOut() { OutputToFile(stdout); } | 149 void OutputToStdOut() { OutputToFile(stdout); } |
150 void Log(); | 150 void Log(Isolate* isolate); |
151 Handle<String> ToString(Isolate* isolate); | 151 Handle<String> ToString(Isolate* isolate); |
152 SmartArrayPointer<const char> ToCString() const; | 152 SmartArrayPointer<const char> ToCString() const; |
153 int length() const { return length_; } | 153 int length() const { return length_; } |
154 | 154 |
155 // Object printing support. | 155 // Object printing support. |
156 void PrintName(Object* o); | 156 void PrintName(Object* o); |
157 void PrintFixedArray(FixedArray* array, unsigned int limit); | 157 void PrintFixedArray(FixedArray* array, unsigned int limit); |
158 void PrintByteArray(ByteArray* ba); | 158 void PrintByteArray(ByteArray* ba); |
159 void PrintUsingMap(JSObject* js_object); | 159 void PrintUsingMap(JSObject* js_object); |
160 void PrintPrototype(JSFunction* fun, Object* receiver); | 160 void PrintPrototype(JSFunction* fun, Object* receiver); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 private: | 214 private: |
215 bool first_; | 215 bool first_; |
216 char separator_; | 216 char separator_; |
217 StringStream* stream_; | 217 StringStream* stream_; |
218 }; | 218 }; |
219 | 219 |
220 | 220 |
221 } } // namespace v8::internal | 221 } } // namespace v8::internal |
222 | 222 |
223 #endif // V8_STRING_STREAM_H_ | 223 #endif // V8_STRING_STREAM_H_ |
OLD | NEW |