Index: src/heap/scavenger.cc |
diff --git a/src/heap/scavenger.cc b/src/heap/scavenger.cc |
index f9bf7ebff56f489367205011051702487382677a..bbbd2f240efb9b67b7c82e96f0e86bf7f5c0e2c9 100644 |
--- a/src/heap/scavenger.cc |
+++ b/src/heap/scavenger.cc |
@@ -74,19 +74,18 @@ |
table_.Register(kVisitJSFunction, &EvacuateJSFunction); |
- table_.Register(kVisitDataObject, |
- &ObjectEvacuationStrategy<DATA_OBJECT>::Visit); |
- |
- table_.Register(kVisitJSObjectFast, |
- &ObjectEvacuationStrategy<POINTER_OBJECT>::Visit); |
- table_.Register(kVisitJSObject, |
- &ObjectEvacuationStrategy<POINTER_OBJECT>::Visit); |
- |
- table_.Register(kVisitJSApiObject, |
- &ObjectEvacuationStrategy<POINTER_OBJECT>::Visit); |
- |
- table_.Register(kVisitStruct, |
- &ObjectEvacuationStrategy<POINTER_OBJECT>::Visit); |
+ table_.RegisterSpecializations<ObjectEvacuationStrategy<DATA_OBJECT>, |
+ kVisitDataObject, kVisitDataObjectGeneric>(); |
+ |
+ table_.RegisterSpecializations<ObjectEvacuationStrategy<POINTER_OBJECT>, |
+ kVisitJSObject, kVisitJSObjectGeneric>(); |
+ |
+ table_ |
+ .RegisterSpecializations<ObjectEvacuationStrategy<POINTER_OBJECT>, |
+ kVisitJSApiObject, kVisitJSApiObjectGeneric>(); |
+ |
+ table_.RegisterSpecializations<ObjectEvacuationStrategy<POINTER_OBJECT>, |
+ kVisitStruct, kVisitStructGeneric>(); |
} |
static VisitorDispatchTable<ScavengingCallback>* GetTable() { |