| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_STRING_STREAM_H_ | 5 #ifndef V8_STRING_STREAM_H_ |
| 6 #define V8_STRING_STREAM_H_ | 6 #define V8_STRING_STREAM_H_ |
| 7 | 7 |
| 8 #include "handles.h" | 8 #include "src/handles.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | 12 |
| 13 class StringAllocator { | 13 class StringAllocator { |
| 14 public: | 14 public: |
| 15 virtual ~StringAllocator() { } | 15 virtual ~StringAllocator() { } |
| 16 // Allocate a number of bytes. | 16 // Allocate a number of bytes. |
| 17 virtual char* allocate(unsigned bytes) = 0; | 17 virtual char* allocate(unsigned bytes) = 0; |
| 18 // Allocate a larger number of bytes and copy the old buffer to the new one. | 18 // Allocate a larger number of bytes and copy the old buffer to the new one. |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 private: | 190 private: |
| 191 bool first_; | 191 bool first_; |
| 192 char separator_; | 192 char separator_; |
| 193 StringStream* stream_; | 193 StringStream* stream_; |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 } } // namespace v8::internal | 196 } } // namespace v8::internal |
| 197 | 197 |
| 198 #endif // V8_STRING_STREAM_H_ | 198 #endif // V8_STRING_STREAM_H_ |
| OLD | NEW |