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

Unified Diff: src/heap/objects-visiting-inl.h

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.cc ('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/objects-visiting-inl.h
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
index b6c20c00e06af5ebef090ac604479e1a3567c7d7..2b82c6b29ef0a7f4ddf9e0fa80ce920535723c70 100644
--- a/src/heap/objects-visiting-inl.h
+++ b/src/heap/objects-visiting-inl.h
@@ -95,18 +95,15 @@ void StaticNewSpaceVisitor<StaticVisitor>::Initialize() {
table_.Register(kVisitJSRegExp, &JSObjectVisitor::Visit);
- table_.template RegisterSpecializations<DataObjectVisitor, kVisitDataObject,
- kVisitDataObjectGeneric>();
+ table_.Register(kVisitDataObject, &DataObjectVisitor::Visit);
- table_.template RegisterSpecializations<JSObjectVisitor, kVisitJSObject,
- kVisitJSObjectGeneric>();
+ table_.Register(kVisitJSObjectFast, &JSObjectFastVisitor::Visit);
+ table_.Register(kVisitJSObject, &JSObjectVisitor::Visit);
// Not using specialized Api object visitor for newspace.
- table_.template RegisterSpecializations<JSObjectVisitor, kVisitJSApiObject,
- kVisitJSApiObjectGeneric>();
+ table_.Register(kVisitJSApiObject, &JSObjectVisitor::Visit);
- table_.template RegisterSpecializations<StructVisitor, kVisitStruct,
- kVisitStructGeneric>();
+ table_.Register(kVisitStruct, &StructVisitor::Visit);
table_.Register(kVisitBytecodeArray, &UnreachableVisitor);
table_.Register(kVisitSharedFunctionInfo, &UnreachableVisitor);
@@ -198,17 +195,14 @@ void StaticMarkingVisitor<StaticVisitor>::Initialize() {
table_.Register(kVisitTransitionArray, &VisitTransitionArray);
- table_.template RegisterSpecializations<DataObjectVisitor, kVisitDataObject,
- kVisitDataObjectGeneric>();
+ table_.Register(kVisitDataObject, &DataObjectVisitor::Visit);
- table_.template RegisterSpecializations<JSObjectVisitor, kVisitJSObject,
- kVisitJSObjectGeneric>();
+ table_.Register(kVisitJSObjectFast, &JSObjectFastVisitor::Visit);
+ table_.Register(kVisitJSObject, &JSObjectVisitor::Visit);
- table_.template RegisterSpecializations<JSApiObjectVisitor, kVisitJSApiObject,
- kVisitJSApiObjectGeneric>();
+ table_.Register(kVisitJSApiObject, &JSApiObjectVisitor::Visit);
- table_.template RegisterSpecializations<StructObjectVisitor, kVisitStruct,
- kVisitStructGeneric>();
+ table_.Register(kVisitStruct, &StructObjectVisitor::Visit);
}
« no previous file with comments | « src/heap/objects-visiting.cc ('k') | src/heap/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698