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

Side by Side Diff: sky/engine/wtf/HashSet.h

Issue 729733002: Remove more bits of the Oilpan tracing system (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/wtf/HashMap.h ('k') | sky/engine/wtf/HashTable.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void clear(); 101 void clear();
102 template<typename Collection> 102 template<typename Collection>
103 void removeAll(const Collection& toBeRemoved) { WTF::removeAll(*this, to BeRemoved); } 103 void removeAll(const Collection& toBeRemoved) { WTF::removeAll(*this, to BeRemoved); }
104 104
105 static bool isValidValue(ValuePeekInType); 105 static bool isValidValue(ValuePeekInType);
106 106
107 ValuePassOutType take(iterator); 107 ValuePassOutType take(iterator);
108 ValuePassOutType take(ValuePeekInType); 108 ValuePassOutType take(ValuePeekInType);
109 ValuePassOutType takeAny(); 109 ValuePassOutType takeAny();
110 110
111 void trace(typename Allocator::Visitor* visitor) { m_impl.trace(visitor) ; }
112
113 private: 111 private:
114 HashTableType m_impl; 112 HashTableType m_impl;
115 }; 113 };
116 114
117 struct IdentityExtractor { 115 struct IdentityExtractor {
118 template<typename T> 116 template<typename T>
119 static const T& extract(const T& t) { return t; } 117 static const T& extract(const T& t) { return t; }
120 }; 118 };
121 119
122 template<typename Translator> 120 template<typename Translator>
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 typedef typename C::const_iterator iterator; 263 typedef typename C::const_iterator iterator;
266 264
267 vector.resize(collection.size()); 265 vector.resize(collection.size());
268 266
269 iterator it = collection.begin(); 267 iterator it = collection.begin();
270 iterator end = collection.end(); 268 iterator end = collection.end();
271 for (unsigned i = 0; it != end; ++it, ++i) 269 for (unsigned i = 0; it != end; ++it, ++i)
272 vector[i] = *it; 270 vector[i] = *it;
273 } 271 }
274 272
275 #if !ENABLE(OILPAN)
276 template<typename T, typename U, typename V>
277 struct NeedsTracing<HashSet<T, U, V> > {
278 static const bool value = false;
279 };
280 #endif
281
282 } // namespace WTF 273 } // namespace WTF
283 274
284 using WTF::HashSet; 275 using WTF::HashSet;
285 276
286 #endif /* WTF_HashSet_h */ 277 #endif /* WTF_HashSet_h */
OLDNEW
« no previous file with comments | « sky/engine/wtf/HashMap.h ('k') | sky/engine/wtf/HashTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698