| Index: src/heap/object-stats.cc
|
| diff --git a/src/heap/object-stats.cc b/src/heap/object-stats.cc
|
| index e9067937aaffb541a01c302e8ed4c3404b2aa6ba..aabcd420d774b24dd4019d6a22f54c1dfcc6e40c 100644
|
| --- a/src/heap/object-stats.cc
|
| +++ b/src/heap/object-stats.cc
|
| @@ -429,6 +429,20 @@ void ObjectStatsCollector::RecordJSWeakCollectionDetails(
|
| }
|
| }
|
|
|
| +void ObjectStatsCollector::RecordJSWeakRefDetails(
|
| + JSWeakRef* obj) {
|
| + if (obj->executor() != nullptr) {
|
| + RecordJSFunctionDetails(obj->executor());
|
| + }
|
| + if (obj->holdings() != nullptr && obj->holdings()->IsObject()) {
|
| + // RecordObjectStats(obj->holdings());
|
| + }
|
| + WeakCell* cell = obj->target();
|
| + if (cell->cleared() != true && cell->value()->IsObject()) {
|
| + RecordJSObjectDetails(static_cast<JSObject*>(cell->value()));
|
| + }
|
| +}
|
| +
|
| void ObjectStatsCollector::RecordJSCollectionDetails(JSObject* obj) {
|
| // The JS versions use a different HashTable implementation that cannot use
|
| // the regular helper. Since overall impact is usually small just record
|
|
|