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

Unified Diff: src/heap/scavenger.h

Issue 2810653002: Add a host parameter to ObjectVisitor methods. (Closed)
Patch Set: rebase Created 3 years, 8 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 | « src/heap/mark-compact-inl.h ('k') | src/heap/scavenger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/scavenger.h
diff --git a/src/heap/scavenger.h b/src/heap/scavenger.h
index 72e6a1f4743fa286769708e39fdf851adc13cfa5..09f2955651e29909d0e35276af5c1bb762db7201 100644
--- a/src/heap/scavenger.h
+++ b/src/heap/scavenger.h
@@ -46,15 +46,10 @@ class Scavenger {
// Helper class for turning the scavenger into an object visitor that is also
// filtering out non-HeapObjects and objects which do not reside in new space.
-// TODO(ulan): ObjectVisitor is needed only for code flusher. Remove it after
-// changing the scanvenger to treat JSFunction->next_link strongly.
-class RootScavengeVisitor : public ObjectVisitor, public RootVisitor {
+class RootScavengeVisitor : public RootVisitor {
public:
explicit RootScavengeVisitor(Heap* heap) : heap_(heap) {}
- void VisitPointer(Object** p) override;
- void VisitPointers(Object** start, Object** end) override;
-
void VisitRootPointer(Root root, Object** p) override;
void VisitRootPointers(Root root, Object** start, Object** end) override;
« no previous file with comments | « src/heap/mark-compact-inl.h ('k') | src/heap/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698