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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
11 #include "src/base/smart-pointers.h" | |
12 #include "src/handles.h" | 11 #include "src/handles.h" |
13 #include "src/vector.h" | 12 #include "src/vector.h" |
14 | 13 |
15 namespace v8 { | 14 namespace v8 { |
16 namespace internal { | 15 namespace internal { |
17 | 16 |
18 // Forward declarations. | 17 // Forward declarations. |
19 class ByteArray; | 18 class ByteArray; |
20 | 19 |
21 class StringAllocator { | 20 class StringAllocator { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 bool full() const { return (capacity_ - length_) == 1; } | 176 bool full() const { return (capacity_ - length_) == 1; } |
178 int space() const { return capacity_ - length_; } | 177 int space() const { return capacity_ - length_; } |
179 | 178 |
180 DISALLOW_IMPLICIT_CONSTRUCTORS(StringStream); | 179 DISALLOW_IMPLICIT_CONSTRUCTORS(StringStream); |
181 }; | 180 }; |
182 | 181 |
183 } // namespace internal | 182 } // namespace internal |
184 } // namespace v8 | 183 } // namespace v8 |
185 | 184 |
186 #endif // V8_STRING_STREAM_H_ | 185 #endif // V8_STRING_STREAM_H_ |
OLD | NEW |