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

Unified Diff: src/heap/scavenger.cc

Issue 2808533002: [heap] Reland "Remove size specializations in static object visitors. (patchset #4 id:60001 of http… (Closed)
Patch Set: 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/objects-visiting-inl.h ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/scavenger.cc
diff --git a/src/heap/scavenger.cc b/src/heap/scavenger.cc
index 4a7bb134cf0f3bd36b2714812b139ad8ab39d8d1..7a8e55fd19320beb3dd0efbfc55bd794a1029bbf 100644
--- a/src/heap/scavenger.cc
+++ b/src/heap/scavenger.cc
@@ -74,18 +74,19 @@ class ScavengingVisitor : public StaticVisitorBase {
table_.Register(kVisitJSFunction, &EvacuateJSFunction);
- table_.RegisterSpecializations<ObjectEvacuationStrategy<DATA_OBJECT>,
- kVisitDataObject, kVisitDataObjectGeneric>();
+ table_.Register(kVisitDataObject,
+ &ObjectEvacuationStrategy<DATA_OBJECT>::Visit);
- table_.RegisterSpecializations<ObjectEvacuationStrategy<POINTER_OBJECT>,
- kVisitJSObject, kVisitJSObjectGeneric>();
+ table_.Register(kVisitJSObjectFast,
+ &ObjectEvacuationStrategy<POINTER_OBJECT>::Visit);
+ table_.Register(kVisitJSObject,
+ &ObjectEvacuationStrategy<POINTER_OBJECT>::Visit);
- table_
- .RegisterSpecializations<ObjectEvacuationStrategy<POINTER_OBJECT>,
- kVisitJSApiObject, kVisitJSApiObjectGeneric>();
+ table_.Register(kVisitJSApiObject,
+ &ObjectEvacuationStrategy<POINTER_OBJECT>::Visit);
- table_.RegisterSpecializations<ObjectEvacuationStrategy<POINTER_OBJECT>,
- kVisitStruct, kVisitStructGeneric>();
+ table_.Register(kVisitStruct,
+ &ObjectEvacuationStrategy<POINTER_OBJECT>::Visit);
}
static VisitorDispatchTable<ScavengingCallback>* GetTable() {
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698