Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Side by Side Diff: src/string-stream.h

Issue 23549011: remove Isolate::Current from most files starting with 's' through 'v' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
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();
151 Handle<String> ToString(); 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);
161 void PrintSecurityTokenIfChanged(Object* function); 161 void PrintSecurityTokenIfChanged(Object* function);
162 // NOTE: Returns the code in the output parameter. 162 // NOTE: Returns the code in the output parameter.
163 void PrintFunction(Object* function, Object* receiver, Code** code); 163 void PrintFunction(Object* function, Object* receiver, Code** code);
164 164
165 // Reset the stream. 165 // Reset the stream.
166 void Reset() { 166 void Reset() {
167 length_ = 0; 167 length_ = 0;
168 buffer_[0] = 0; 168 buffer_[0] = 0;
169 } 169 }
170 170
171 // Mentioned object cache support. 171 // Mentioned object cache support.
172 void PrintMentionedObjectCache(); 172 void PrintMentionedObjectCache(Isolate* isolate);
173 static void ClearMentionedObjectCache(); 173 static void ClearMentionedObjectCache(Isolate* isolate);
174 #ifdef DEBUG 174 #ifdef DEBUG
175 static bool IsMentionedObjectCacheClear(); 175 static bool IsMentionedObjectCacheClear(Isolate* isolate);
176 #endif 176 #endif
177 177
178 178
179 static const int kInitialCapacity = 16; 179 static const int kInitialCapacity = 16;
180 180
181 private: 181 private:
182 void PrintObject(Object* obj); 182 void PrintObject(Object* obj);
183 183
184 StringAllocator* allocator_; 184 StringAllocator* allocator_;
185 unsigned capacity_; 185 unsigned capacity_;
(...skipping 28 matching lines...) Expand all
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698