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

Side by Side Diff: third_party/WebKit/Source/wtf/HashTable.h

Issue 2518253002: Move Partition Allocator into Chromium base. (Closed)
Patch Set: Created 4 years 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) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2008 David Levin <levin@chromium.org> 4 * Copyright (C) 2008 David Levin <levin@chromium.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
14 * General Public License for more details. 14 * General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 * 20 *
21 */ 21 */
22 22
23 #ifndef WTF_HashTable_h 23 #ifndef WTF_HashTable_h
24 #define WTF_HashTable_h 24 #define WTF_HashTable_h
25 25
26 #include "base/allocator/partition_allocator/partition_allocator.h"
26 #include "wtf/Alignment.h" 27 #include "wtf/Alignment.h"
27 #include "wtf/Allocator.h" 28 #include "wtf/Allocator.h"
28 #include "wtf/Assertions.h" 29 #include "wtf/Assertions.h"
29 #include "wtf/ConditionalDestructor.h" 30 #include "wtf/ConditionalDestructor.h"
30 #include "wtf/HashTraits.h" 31 #include "wtf/HashTraits.h"
31 #include "wtf/PtrUtil.h" 32 #include "wtf/PtrUtil.h"
32 #include "wtf/allocator/PartitionAllocator.h"
33 #include <memory> 33 #include <memory>
34 34
35 #define DUMP_HASHTABLE_STATS 0 35 #define DUMP_HASHTABLE_STATS 0
36 #define DUMP_HASHTABLE_STATS_PER_TABLE 0 36 #define DUMP_HASHTABLE_STATS_PER_TABLE 0
37 37
38 #if DUMP_HASHTABLE_STATS 38 #if DUMP_HASHTABLE_STATS
39 #include "wtf/Atomics.h" 39 #include "wtf/Atomics.h"
40 #include "wtf/Threading.h" 40 #include "wtf/Threading.h"
41 #endif 41 #endif
42 42
(...skipping 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after
2260 CollectionIterator end(toBeRemoved.end()); 2260 CollectionIterator end(toBeRemoved.end());
2261 for (CollectionIterator it(toBeRemoved.begin()); it != end; ++it) 2261 for (CollectionIterator it(toBeRemoved.begin()); it != end; ++it)
2262 collection.remove(*it); 2262 collection.remove(*it);
2263 } 2263 }
2264 2264
2265 } // namespace WTF 2265 } // namespace WTF
2266 2266
2267 #include "wtf/HashIterators.h" 2267 #include "wtf/HashIterators.h"
2268 2268
2269 #endif // WTF_HashTable_h 2269 #endif // WTF_HashTable_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698