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

Side by Side Diff: third_party/WebKit/Source/platform/wtf/allocator/PartitionAllocator.h

Issue 2762943002: Move files in wtf/ to platform/wtf/ (Part 6). (Closed)
Patch Set: Rebase. Created 3 years, 9 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium 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 WTF_PartitionAllocator_h 5 #ifndef WTF_PartitionAllocator_h
6 #define WTF_PartitionAllocator_h 6 #define WTF_PartitionAllocator_h
7 7
8 // This is the allocator that is used for allocations that are not on the 8 // This is the allocator that is used for allocations that are not on the
9 // traced, garbage collected heap. It uses FastMalloc for collections, 9 // traced, garbage collected heap. It uses FastMalloc for collections,
10 // but uses the partition allocator for the backing store of the collections. 10 // but uses the partition allocator for the backing store of the collections.
11 11
12 #include "base/allocator/partition_allocator/partition_alloc.h" 12 #include "base/allocator/partition_allocator/partition_alloc.h"
13 #include "third_party/WebKit/Source/wtf/Allocator.h" 13 #include "platform/wtf/Allocator.h"
14 #include "wtf/Assertions.h" 14 #include "platform/wtf/Assertions.h"
15 #include "wtf/TypeTraits.h" 15 #include "platform/wtf/TypeTraits.h"
16 #include "wtf/WTFExport.h" 16 #include "platform/wtf/WTFExport.h"
17 #include <string.h> 17 #include <string.h>
18 18
19 namespace WTF { 19 namespace WTF {
20 20
21 class PartitionAllocatorDummyVisitor { 21 class PartitionAllocatorDummyVisitor {
22 DISALLOW_NEW(); 22 DISALLOW_NEW();
23 }; 23 };
24 24
25 class WTF_EXPORT PartitionAllocator { 25 class WTF_EXPORT PartitionAllocator {
26 public: 26 public:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void* operator new(size_t, NotNullTag, void* location) { \ 135 void* operator new(size_t, NotNullTag, void* location) { \
136 DCHECK(location); \ 136 DCHECK(location); \
137 return location; \ 137 return location; \
138 } \ 138 } \
139 void* operator new(size_t, void* location) { return location; } \ 139 void* operator new(size_t, void* location) { return location; } \
140 \ 140 \
141 private: \ 141 private: \
142 typedef int __thisIsHereToForceASemicolonAfterThisMacro 142 typedef int __thisIsHereToForceASemicolonAfterThisMacro
143 143
144 #endif // WTF_PartitionAllocator_h 144 #endif // WTF_PartitionAllocator_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/WTF.h ('k') | third_party/WebKit/Source/platform/wtf/allocator/PartitionAllocator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698