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

Unified Diff: Source/heap/Visitor.h

Issue 20123003: [oilpan] The Node hierarchy should have correct accept method chains (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 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/heap/Handle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/heap/Visitor.h
diff --git a/Source/heap/Visitor.h b/Source/heap/Visitor.h
index ad50c794456875fd0dcd649c0e418c76ba3709af..06c4c1ac5fb2e652479cdfeeceafaf5c46e3cc56 100644
--- a/Source/heap/Visitor.h
+++ b/Source/heap/Visitor.h
@@ -31,6 +31,7 @@
#ifndef Visitor_h
#define Visitor_h
+#include <wtf/Deque.h>
#include <wtf/Forward.h>
#include <wtf/HashTraits.h>
#include <wtf/HashSet.h>
@@ -125,9 +126,16 @@ public:
}
template<typename T>
- void visit(const HashSet<Member<T> >& vector)
+ void visit(const HashSet<Member<T> >& hashSet)
{
- for (typename HashSet<Member<T> >::const_iterator it = vector.begin(); it != vector.end(); ++it)
+ for (typename HashSet<Member<T> >::const_iterator it = hashSet.begin(); it != hashSet.end(); ++it)
+ visit(*it);
+ }
+
+ template<typename T>
+ void visit(const Deque<Member<T> >& deque)
+ {
+ for (typename Deque<Member<T> >::const_iterator it = deque.begin(); it != deque.end(); ++it)
visit(*it);
}
« no previous file with comments | « Source/heap/Handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698