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

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

Issue 1477023003: Refactor the Heap into ThreadHeap to prepare for per thread heaps Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 private: 51 private:
52 typedef HashTable<ValueType, ValueType, IdentityExtractor, 52 typedef HashTable<ValueType, ValueType, IdentityExtractor,
53 HashFunctions, ValueTraits, ValueTraits, Allocator> HashTableType; 53 HashFunctions, ValueTraits, ValueTraits, Allocator> HashTableType;
54 54
55 public: 55 public:
56 typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> iterator; 56 typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> iterator;
57 typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> const_iter ator; 57 typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> const_iter ator;
58 typedef typename HashTableType::AddResult AddResult; 58 typedef typename HashTableType::AddResult AddResult;
59 59
60 ValueType* table() const { return m_impl.table(); }
haraken 2016/01/07 08:06:22 What is this change for?
61
60 void swap(HashSet& ref) 62 void swap(HashSet& ref)
61 { 63 {
62 m_impl.swap(ref.m_impl); 64 m_impl.swap(ref.m_impl);
63 } 65 }
64 66
65 void swap(typename Allocator::template OtherType<HashSet>::Type other) 67 void swap(typename Allocator::template OtherType<HashSet>::Type other)
66 { 68 {
67 HashSet& ref = Allocator::getOther(other); 69 HashSet& ref = Allocator::getOther(other);
68 m_impl.swap(ref.m_impl); 70 m_impl.swap(ref.m_impl);
69 } 71 }
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 struct NeedsTracing<HashSet<T, U, V>> { 288 struct NeedsTracing<HashSet<T, U, V>> {
287 static const bool value = false; 289 static const bool value = false;
288 }; 290 };
289 #endif 291 #endif
290 292
291 } // namespace WTF 293 } // namespace WTF
292 294
293 using WTF::HashSet; 295 using WTF::HashSet;
294 296
295 #endif // WTF_HashSet_h 297 #endif // WTF_HashSet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698