[heap] Use right BodyDescriptor for JSWeakCollection

Workes by accident when using the JSObject descriptor as it also implements
strong semantics.

BUG=chromium:651354

Review-Url: https://codereview.chromium.org/2485163003
Cr-Commit-Position: refs/heads/master@{#40842}
This commit is contained in:
mlippautz 2016-11-08 07:28:23 -08:00 committed by Commit bot
parent d50931f92f
commit f51b7eddf3

View File

@ -84,7 +84,10 @@ void StaticNewSpaceVisitor<StaticVisitor>::Initialize() {
table_.Register(kVisitFreeSpace, &VisitFreeSpace); table_.Register(kVisitFreeSpace, &VisitFreeSpace);
table_.Register(kVisitJSWeakCollection, &JSObjectVisitor::Visit); table_.Register(
kVisitJSWeakCollection,
&FlexibleBodyVisitor<StaticVisitor, JSWeakCollection::BodyDescriptor,
int>::Visit);
table_.Register(kVisitJSRegExp, &JSObjectVisitor::Visit); table_.Register(kVisitJSRegExp, &JSObjectVisitor::Visit);