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

Side by Side Diff: third_party/WebKit/Source/platform/PODArena.h

Issue 1881983003: Move PartitionAlloc related things into wtf/allocator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 12 matching lines...) Expand all
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef PODArena_h 26 #ifndef PODArena_h
27 #define PODArena_h 27 #define PODArena_h
28 28
29 #include "wtf/Allocator.h" 29 #include "wtf/Allocator.h"
30 #include "wtf/Assertions.h" 30 #include "wtf/Assertions.h"
31 #include "wtf/Noncopyable.h" 31 #include "wtf/Noncopyable.h"
32 #include "wtf/OwnPtr.h" 32 #include "wtf/OwnPtr.h"
33 #include "wtf/Partitions.h"
34 #include "wtf/PassOwnPtr.h" 33 #include "wtf/PassOwnPtr.h"
35 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
36 #include "wtf/Vector.h" 35 #include "wtf/Vector.h"
36 #include "wtf/allocator/Partitions.h"
37 #include <stdint.h> 37 #include <stdint.h>
38 38
39 namespace blink { 39 namespace blink {
40 40
41 // An arena which allocates only Plain Old Data (POD), or classes and 41 // An arena which allocates only Plain Old Data (POD), or classes and
42 // structs bottoming out in Plain Old Data. NOTE: the constructors of 42 // structs bottoming out in Plain Old Data. NOTE: the constructors of
43 // the objects allocated in this arena are called, but _not_ their 43 // the objects allocated in this arena are called, but _not_ their
44 // destructors. 44 // destructors.
45 45
46 class PODArena final : public RefCounted<PODArena> { 46 class PODArena final : public RefCounted<PODArena> {
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 Vector<OwnPtr<Chunk>> m_chunks; 197 Vector<OwnPtr<Chunk>> m_chunks;
198 198
199 #if COMPILER(MSVC) 199 #if COMPILER(MSVC)
200 friend struct ::WTF::OwnedPtrDeleter<Chunk>; 200 friend struct ::WTF::OwnedPtrDeleter<Chunk>;
201 #endif 201 #endif
202 }; 202 };
203 203
204 } // namespace blink 204 } // namespace blink
205 205
206 #endif // PODArena_h 206 #endif // PODArena_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698