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

Unified Diff: third_party/WebKit/Source/wtf/ListHashSet.h

Issue 1425533005: Rename DefaultAllocator to PartitionAllocator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « third_party/WebKit/Source/wtf/LinkedHashSet.h ('k') | third_party/WebKit/Source/wtf/PartitionAllocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ListHashSet.h
diff --git a/third_party/WebKit/Source/wtf/ListHashSet.h b/third_party/WebKit/Source/wtf/ListHashSet.h
index c2154d2300edf2646f59c487592ff2cae77af235..a2128b646673b7446e9fd2f8e9e72969935cf573 100644
--- a/third_party/WebKit/Source/wtf/ListHashSet.h
+++ b/third_party/WebKit/Source/wtf/ListHashSet.h
@@ -22,9 +22,9 @@
#ifndef WTF_ListHashSet_h
#define WTF_ListHashSet_h
-#include "wtf/DefaultAllocator.h"
#include "wtf/HashSet.h"
#include "wtf/OwnPtr.h"
+#include "wtf/PartitionAllocator.h"
#include "wtf/PassOwnPtr.h"
namespace WTF {
@@ -226,8 +226,8 @@ public:
// This allocator is only used for non-Heap ListHashSets.
template <typename ValueArg, size_t inlineCapacity>
-struct ListHashSetAllocator : public DefaultAllocator {
- typedef DefaultAllocator TableAllocator;
+struct ListHashSetAllocator : public PartitionAllocator {
+ typedef PartitionAllocator TableAllocator;
typedef ListHashSetNode<ValueArg, ListHashSetAllocator> Node;
typedef ListHashSetNodeBase<ValueArg> NodeBase;
@@ -321,7 +321,7 @@ struct ListHashSetAllocator : public DefaultAllocator {
return node >= pool() && node < pastPool();
}
- static void traceValue(typename DefaultAllocator::Visitor* visitor, Node* node) {}
+ static void traceValue(typename PartitionAllocator::Visitor* visitor, Node* node) {}
private:
Node* pool() { return reinterpret_cast_ptr<Node*>(m_pool.buffer); }
« no previous file with comments | « third_party/WebKit/Source/wtf/LinkedHashSet.h ('k') | third_party/WebKit/Source/wtf/PartitionAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698