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

Unified Diff: Source/platform/heap/Visitor.h

Issue 402433005: Oilpan: Remove support for tracing off-heap HashSets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix deadWrapper number in heap tests. Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Visitor.h
diff --git a/Source/platform/heap/Visitor.h b/Source/platform/heap/Visitor.h
index 0d7df1bb3d3f259af8e00bdfa202eb1a5d029fe2..8e8ab36bae2671a531016ab4e5ba498900fd52a8 100644
--- a/Source/platform/heap/Visitor.h
+++ b/Source/platform/heap/Visitor.h
@@ -37,11 +37,8 @@
#include "wtf/Deque.h"
#include "wtf/Forward.h"
#include "wtf/HashMap.h"
-#include "wtf/HashSet.h"
#include "wtf/HashTraits.h"
#include "wtf/InstanceCounter.h"
-#include "wtf/LinkedHashSet.h"
-#include "wtf/ListHashSet.h"
#include "wtf/OwnPtr.h"
#include "wtf/RefPtr.h"
#include "wtf/TypeTraits.h"
@@ -298,12 +295,6 @@ public:
OffHeapCollectionTraceTrait<Vector<T, inlineCapacity, WTF::DefaultAllocator> >::trace(this, vector);
}
- template<typename T, typename U, typename V>
- void trace(const HashSet<T, U, V>& hashSet)
- {
- OffHeapCollectionTraceTrait<HashSet<T, U, V> >::trace(this, hashSet);
- }
-
template<typename T, size_t N>
void trace(const Deque<T, N>& deque)
{
@@ -445,25 +436,6 @@ private:
}
};
-template<typename T, typename HashFunctions, typename Traits>
-struct OffHeapCollectionTraceTrait<WTF::HashSet<T, HashFunctions, Traits, WTF::DefaultAllocator> > {
- typedef WTF::HashSet<T, HashFunctions, Traits, WTF::DefaultAllocator> HashSet;
-
- static void trace(Visitor* visitor, const HashSet& set)
- {
- if (set.isEmpty())
- return;
- if (WTF::ShouldBeTraced<Traits>::value) {
- HashSet& iterSet = const_cast<HashSet&>(set);
- for (typename HashSet::iterator it = iterSet.begin(), end = iterSet.end(); it != end; ++it) {
- const T& t = *it;
- CollectionBackingTraceTrait<WTF::ShouldBeTraced<Traits>::value, Traits::weakHandlingFlag, WTF::WeakPointersActWeak, T, Traits>::trace(visitor, const_cast<T&>(t));
- }
- }
- COMPILE_ASSERT(Traits::weakHandlingFlag == WTF::NoWeakHandlingInCollections, WeakOffHeapCollectionsConsideredDangerous0);
- }
-};
-
template<typename Key, typename Value, typename HashFunctions, typename KeyTraits, typename ValueTraits>
struct OffHeapCollectionTraceTrait<WTF::HashMap<Key, Value, HashFunctions, KeyTraits, ValueTraits, WTF::DefaultAllocator> > {
typedef WTF::HashMap<Key, Value, HashFunctions, KeyTraits, ValueTraits, WTF::DefaultAllocator> HashMap;
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698