Lines Matching refs:cluster
53 const JSObjectsCluster& cluster) {
54 InsertIntoTree(tree, cluster, 0);
65 const JSObjectsCluster& cluster, int size);
94 JSObjectsCluster cluster = Clusterize(obj, fine_grain);
95 if (cluster.is_null()) return;
96 InsertIntoTree(tree, cluster, GetObjectSize(obj));
101 const JSObjectsCluster& cluster, int size) {
103 tree->Insert(cluster, &loc);
138 ReferencesExtractor(const JSObjectsCluster& cluster,
140 : cluster_(cluster),
172 void PrintRetainers(const JSObjectsCluster& cluster,
176 cluster.Print(&stream);
184 // Visitor for printing a cluster tree.
188 void Call(const JSObjectsCluster& cluster,
190 Print(stream_, cluster, number_and_size);
193 const JSObjectsCluster& cluster,
202 const JSObjectsCluster& cluster,
205 cluster.Print(stream);
215 void Call(const JSObjectsCluster& cluster, JSObjectsClusterTree* tree);
222 void SimpleRetainerTreePrinter::Call(const JSObjectsCluster& cluster,
228 printer_->PrintRetainers(cluster, stream);
237 void Call(const JSObjectsCluster& cluster,
246 void RetainersAggregator::Call(const JSObjectsCluster& cluster,
248 JSObjectsCluster eq = coarser_->GetCoarseEquivalent(cluster);
249 if (eq.is_null()) eq = cluster;
264 void Call(const JSObjectsCluster& cluster, JSObjectsClusterTree* tree);
272 void AggregatingRetainerTreePrinter::Call(const JSObjectsCluster& cluster,
274 if (!coarser_->GetCoarseEquivalent(cluster).is_null()) return;
282 printer_->PrintRetainers(cluster, stream);
297 void Call(const JSObjectsCluster& cluster, JSObjectsClusterTree* tree);
306 void RetainerTreeAggregator::Call(const JSObjectsCluster& cluster,
308 JSObjectsCluster eq = coarser_->GetCoarseEquivalent(cluster);
481 void ConstructorHeapProfile::Call(const JSObjectsCluster& cluster,
485 cluster.Print(&stream);
542 accumulator->Add("(null cluster)");
549 : cluster(cluster_), refs(kInitialBackrefsListCapacity) {
555 : cluster(src.cluster), refs(src.refs.capacity()) {
564 cluster = src.cluster;
574 int cmp = JSObjectsCluster::CompareConstructors(a.cluster, b.cluster);
595 void ClustersCoarser::Call(const JSObjectsCluster& cluster,
597 if (!cluster.can_be_coarsed()) return;
598 ClusterBackRefs pair(cluster);
602 self_ = &cluster;
611 void ClustersCoarser::Call(const JSObjectsCluster& cluster,
617 if (JSObjectsCluster::Compare(*self_, cluster) == 0) {
621 JSObjectsCluster eq = GetCoarseEquivalent(cluster);
627 current_pair_->refs.Add(cluster);
637 // If no new cluster equivalents discovered, abort processing.
653 const JSObjectsCluster& cluster) {
654 if (!cluster.can_be_coarsed()) return JSObjectsCluster();
656 return eq_tree_.Find(cluster, &loc) ? loc.value() : JSObjectsCluster();
660 bool ClustersCoarser::HasAnEquivalent(const JSObjectsCluster& cluster) {
662 if (!cluster.can_be_coarsed()) return false;
663 JSObjectsCluster eq = GetCoarseEquivalent(cluster);
664 return !eq.is_null() && JSObjectsCluster::Compare(cluster, eq) != 0;
678 eq_tree_.Insert(sim_list_[eq_to].cluster, &loc);
679 loc.set_value(sim_list_[eq_to].cluster);
682 eq_tree_.Insert(sim_list_[i].cluster, &loc);
683 loc.set_value(sim_list_[eq_to].cluster);
715 void RetainerHeapProfile::StoreReference(const JSObjectsCluster& cluster,
724 Clusterizer::InsertReferenceIntoTree(referenced_by, cluster);
729 const JSObjectsCluster cluster = Clusterizer::Clusterize(obj);
730 if (cluster.is_null()) return;
731 ReferencesExtractor extractor(cluster, this);
874 void Call(const JSObjectsCluster& cluster,
916 void Call(const JSObjectsCluster& cluster,
918 const char* name = cluster.GetSpecialCaseName();
921 cluster.constructor());
939 static HeapObject* ClusterAsHeapObject(const JSObjectsCluster& cluster) {
940 return cluster.can_be_coarsed() ?
941 reinterpret_cast<HeapObject*>(cluster.instance()) : cluster.constructor();
969 void Call(const JSObjectsCluster& cluster,
971 if (map_->Map(ClusterAsHeapObject(cluster)) == NULL)
972 map_->Pair(ClusterAsHeapObject(cluster),
975 map_->CountReference(ClusterAsHeapObject(cluster), child_);
995 void Call(const JSObjectsCluster& cluster,
998 map_->CountReference(ClusterAsHeapObject(cluster),
1002 map_->Map(ClusterAsHeapObject(cluster))->SetIndexedReference(
1026 void Call(const JSObjectsCluster& cluster, JSObjectsClusterTree* tree) {
1028 cluster).is_null()) return;
1037 RetainersIterator iterator(cluster, allocator_, map_);
1059 JSObjectsCluster cluster = HeapObjectAsCluster(obj);
1060 const char* name = cluster.GetSpecialCaseName();
1063 cluster.constructor());