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

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

Issue 2175233003: Replace SmartPointer<T> with unique_ptr<T> (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@smart-array
Patch Set: Created 4 years, 4 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
OLDNEW
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
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_
OLDNEW
« src/profiler/heap-profiler.h ('K') | « src/snapshot/code-serializer.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698