Lines Matching defs:dict
75 void PrintDictionaryContents(std::ostream& os, T dict) {
77 ReadOnlyRoots roots = dict.GetReadOnlyRoots();
79 if (dict.Capacity() == 0) {
84 Isolate* isolate = GetIsolateFromWritableObject(dict);
88 for (InternalIndex i : dict.IterateEntries()) {
90 if (!dict.ToKey(roots, i, &k)) continue;
97 os << ": " << Brief(dict.ValueAt(i)) << " ";
98 dict.DetailsAt(i).PrintAsSlowTo(os, !T::kIsOrderedDictionaryType);
459 NumberDictionary dict = NumberDictionary::cast(elements);
460 if (dict.requires_slow_elements()) {
463 os << "\n - max_number_key: " << dict.max_number_key();
465 PrintDictionaryContents(os, dict);
881 void PrintTableContentsGeneric(std::ostream& os, T dict,
884 ReadOnlyRoots roots = dict.GetReadOnlyRoots();
886 for (InternalIndex i : dict.IterateEntries()) {
888 if (!dict.ToKey(roots, i, &k)) continue;
904 void PrintDictionaryContentsFull(std::ostream& os, T dict) {
907 os << Brief(dict.ValueAt(i)) << " ";
908 dict.DetailsAt(i).PrintAsSlowTo(os, !T::kIsOrderedDictionaryType);
910 PrintTableContentsGeneric(os, dict, print_value_and_property_details);
916 void PrintHashMapContentsFull(std::ostream& os, T dict) {
918 auto print_value = [&](InternalIndex i) { os << Brief(dict.ValueAt(i)); };
919 PrintTableContentsGeneric(os, dict, print_value);
925 void PrintHashSetContentsFull(std::ostream& os, T dict) {
928 PrintTableContentsGeneric(os, dict, nullptr);