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

Unified Diff: src/splay-tree.h

Issue 10534006: Remove TLS access for current Zone. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review. Created 8 years, 6 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
Index: src/splay-tree.h
diff --git a/src/splay-tree.h b/src/splay-tree.h
index e21e21612540fb19d33e1f3ee1ba2b4f9ef47dc7..eb2f1da63d612025789cde9a3c1e95fbd2ed655c 100644
--- a/src/splay-tree.h
+++ b/src/splay-tree.h
@@ -153,7 +153,8 @@ class SplayTree {
};
template <class Callback>
- void ForEach(Callback* callback);
+ void ForEach(Callback* callback,
+ AllocationPolicy allocator = AllocationPolicy());
protected:
// Resets tree root. Existing nodes become unreachable.
@@ -185,14 +186,6 @@ class SplayTree {
DISALLOW_COPY_AND_ASSIGN(NodeToPairAdaptor);
};
- class NodeDeleter BASE_EMBEDDED {
- public:
- NodeDeleter() { }
- void Call(Node* node) { AllocationPolicy::Delete(node); }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(NodeDeleter);
- };
template <class Callback>
void ForEachNode(Callback* callback,
« no previous file with comments | « src/small-pointer-list.h ('k') | src/splay-tree-inl.h » ('j') | src/splay-tree-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698