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

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

Issue 2769603002: Move files in wtf/ to platform/wtf/ (Part 8). (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 /* 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 "wtf/Alignment.h" 26 #include "platform/wtf/Alignment.h"
27 #include "wtf/Allocator.h" 27 #include "platform/wtf/Allocator.h"
28 #include "wtf/Assertions.h" 28 #include "platform/wtf/Assertions.h"
29 #include "wtf/ConditionalDestructor.h" 29 #include "platform/wtf/ConditionalDestructor.h"
30 #include "wtf/HashTraits.h" 30 #include "platform/wtf/HashTraits.h"
31 #include "wtf/PtrUtil.h" 31 #include "platform/wtf/PtrUtil.h"
32 #include "wtf/allocator/PartitionAllocator.h" 32 #include "platform/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 "platform/wtf/Atomics.h"
40 #include "wtf/Threading.h" 40 #include "platform/wtf/Threading.h"
41 #endif 41 #endif
42 42
43 #if DUMP_HASHTABLE_STATS_PER_TABLE 43 #if DUMP_HASHTABLE_STATS_PER_TABLE
44 #include "wtf/DataLog.h" 44 #include "platform/wtf/DataLog.h"
45 #include <type_traits> 45 #include <type_traits>
46 #endif 46 #endif
47 47
48 #if DUMP_HASHTABLE_STATS 48 #if DUMP_HASHTABLE_STATS
49 #if DUMP_HASHTABLE_STATS_PER_TABLE 49 #if DUMP_HASHTABLE_STATS_PER_TABLE
50 50
51 #define UPDATE_PROBE_COUNTS() \ 51 #define UPDATE_PROBE_COUNTS() \
52 ++probeCount; \ 52 ++probeCount; \
53 HashTableStats::instance().recordCollisionAtCount(probeCount); \ 53 HashTableStats::instance().recordCollisionAtCount(probeCount); \
54 ++perTableProbeCount; \ 54 ++perTableProbeCount; \
(...skipping 2216 matching lines...) Expand 10 before | Expand all | Expand 10 after
2271 CollectionIterator end(toBeRemoved.end()); 2271 CollectionIterator end(toBeRemoved.end());
2272 for (CollectionIterator it(toBeRemoved.begin()); it != end; ++it) 2272 for (CollectionIterator it(toBeRemoved.begin()); it != end; ++it)
2273 collection.erase(*it); 2273 collection.erase(*it);
2274 } 2274 }
2275 2275
2276 } // namespace WTF 2276 } // namespace WTF
2277 2277
2278 #include "wtf/HashIterators.h" 2278 #include "wtf/HashIterators.h"
2279 2279
2280 #endif // WTF_HashTable_h 2280 #endif // WTF_HashTable_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/HashSet.h ('k') | third_party/WebKit/Source/platform/wtf/HashTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698