Home
last modified time | relevance | path

Searched refs:NumberOfElements (Results 1 – 25 of 28) sorted by relevance

12

/third_party/node/deps/v8/src/objects/
Dswiss-name-dictionary.cc27 int nof = table->NumberOfElements(); in DeleteEntry()
45 DCHECK_LE(table->NumberOfElements(), MaxUsableCapacity(new_capacity)); in Rehash()
56 new_table->SetNumberOfElements(table->NumberOfElements()); in Rehash()
82 NumberOfElements() != other.NumberOfElements() || in EqualsForTesting()
189 int nof = table->NumberOfElements(); in Shrink()
223 std::vector<Entry> data(NumberOfElements(), dummy); in Rehash()
Dordered-hash-table.cc71 int nof = table->NumberOfElements(); in EnsureGrowable()
97 int nof = table->NumberOfElements(); in Shrink()
137 if (NumberOfElements() == 0) { in FindEntry()
171 if (table->NumberOfElements() > 0) { in Add()
190 int nof = table->NumberOfElements(); in Add()
204 int length = table->NumberOfElements(); in ConvertToKeysArray()
292 new_table->SetNumberOfElements(table->NumberOfElements()); in Rehash()
342 int nof = table.NumberOfElements(); in Delete()
373 if (table->NumberOfElements() > 0) { in Add()
396 int nof = table->NumberOfElements(); in Add()
[all …]
Dhash-table-inl.h85 int HashTableBase::NumberOfElements() const { in NumberOfElements() function
102 SetNumberOfElements(NumberOfElements() + 1); in ElementAdded()
106 SetNumberOfElements(NumberOfElements() - 1); in ElementRemoved()
111 SetNumberOfElements(NumberOfElements() - n); in ElementsRemoved()
Dordered-hash-table.h96 int NumberOfElements() const { in NumberOfElements() function
107 return NumberOfElements() + NumberOfDeletedElements(); in UsedCapacity()
459 int NumberOfElements() const { in NumberOfElements() function
633 int used = NumberOfElements() + NumberOfDeletedElements(); in UsedCapacity()
875 static int NumberOfElements(HeapObject table);
Dstring-table.h57 int NumberOfElements() const;
Dswiss-name-dictionary-inl.h52 int SwissNameDictionary::NumberOfElements() { in NumberOfElements() function
69 return NumberOfElements() + NumberOfDeletedElements(); in UsedCapacity()
516 int nof = table->NumberOfElements(); in Add()
Dscript-inl.h117 return shared_function_info_table().NumberOfElements() + 1; in shared_function_info_count()
Dmodule.cc315 names.reserve(exports->NumberOfElements()); in GetModuleNamespace()
321 DCHECK_EQ(static_cast<int>(names.size()), exports->NumberOfElements()); in GetModuleNamespace()
Dobjects.cc2377 return SmallOrderedHashMap::cast(*this).NumberOfElements() == 0; in CanBeRehashed()
2379 return SmallOrderedHashMap::cast(*this).NumberOfElements() == 0; in CanBeRehashed()
2381 return SmallOrderedNameDictionary::cast(*this).NumberOfElements() == 0; in CanBeRehashed()
2421 DCHECK_EQ(0, SmallOrderedHashMap::cast(*this).NumberOfElements()); in RehashBasedOnMap()
2424 DCHECK_EQ(0, SmallOrderedHashSet::cast(*this).NumberOfElements()); in RehashBasedOnMap()
2438 DCHECK_EQ(0, SmallOrderedNameDictionary::cast(*this).NumberOfElements()); in RehashBasedOnMap()
5739 DCHECK_LT(NumberOfElements(), new_table.Capacity()); in Rehash()
5760 new_table.SetNumberOfElements(NumberOfElements()); in Rehash()
5857 int new_nof = table->NumberOfElements() + n; in EnsureCapacity()
5873 return HasSufficientCapacityToAdd(Capacity(), NumberOfElements(), in HasSufficientCapacityToAdd()
[all …]
Dswiss-name-dictionary.h112 inline int NumberOfElements();
Delements.h62 virtual size_t NumberOfElements(JSObject holder) = 0;
Dstring-table.cc337 int StringTable::NumberOfElements() const { in NumberOfElements() function in v8::internal::StringTable
771 isolate->counters()->number_of_symbols()->Set(NumberOfElements()); in UpdateCountersIfOwnedBy()
Dhash-table.h73 inline int NumberOfElements() const; in NON_EXPORTED_BASE()
Dkeys.cc896 if (dictionary->NumberOfElements() == 0) { in GetOwnEnumPropertyDictionaryKeys()
914 isolate->factory()->NewFixedArray(dictionary->NumberOfElements()); in CollectKeysFromDictionary()
Dvalue-serializer.cc844 int length = table->NumberOfElements() * 2; in WriteJSMap()
876 int length = table->NumberOfElements(); in WriteJSSet()
Djs-objects.cc3686 number_of_elements = swiss_dictionary->NumberOfElements(); in MigrateSlowToFast()
3689 number_of_elements = dictionary->NumberOfElements(); in MigrateSlowToFast()
3703 iteration_length = dictionary->NumberOfElements(); in MigrateSlowToFast()
4084 return accessor->NumberOfElements(object) == 0; in TestElementsIntegrityLevel()
/third_party/node/deps/v8/src/runtime/
Druntime-collections.cc91 DCHECK(table->NumberOfElements() - 1 <= (table->Capacity() >> 2) && in RUNTIME_FUNCTION()
92 table->NumberOfElements() - 1 >= 16); in RUNTIME_FUNCTION()
114 DCHECK((table->NumberOfDeletedElements() << 1) > table->NumberOfElements() || in RUNTIME_FUNCTION()
Druntime-classes.cc368 if (elements_dictionary->NumberOfElements() > 0) { in AddDescriptorsByTemplate()
378 if (elements_dictionary->NumberOfElements() > 0) { in AddDescriptorsByTemplate()
450 if (elements_dictionary->NumberOfElements() > 0) { in AddDescriptorsByTemplate()
461 if (elements_dictionary->NumberOfElements() > 0) { in AddDescriptorsByTemplate()
Druntime-test.cc1740 EphemeronHashTable::cast(collection->table()).NumberOfElements()); in RUNTIME_FUNCTION()
Druntime-object.cc1615 return Smi::FromInt(table.NumberOfElements()); in RUNTIME_FUNCTION()
/third_party/node/deps/v8/src/diagnostics/
Dobjects-debug.cc985 if (global_dictionary(kAcquireLoad).NumberOfElements() == 0 && in JSGlobalObjectVerify()
1177 uint32_t nof_elements = static_cast<uint32_t>(dict.NumberOfElements()); in JSArrayVerify()
1344 for (int entry = 0; entry < NumberOfElements(); entry++) { in SmallOrderedHashTableVerify()
1351 for (int entry = 0; entry < NumberOfElements(); entry++) { in SmallOrderedHashTableVerify()
1358 for (int entry = NumberOfElements() + NumberOfDeletedElements(); in SmallOrderedHashTableVerify()
1371 for (int entry = NumberOfElements(); entry < NumberOfDeletedElements(); in SmallOrderedHashMapVerify()
1384 for (int entry = NumberOfElements(); entry < NumberOfDeletedElements(); in SmallOrderedHashSetVerify()
1398 for (int entry = NumberOfElements(); entry < NumberOfDeletedElements(); in SmallOrderedNameDictionaryVerify()
1456 CHECK_EQ(seen_present, NumberOfElements()); in SwissNameDictionaryVerify()
1969 info->number_of_slow_used_properties_ += dict.NumberOfElements(); in IncrementSpillStatistics()
[all …]
Dobjects-printer.cc940 os << "\n - elements: " << table.NumberOfElements(); in PrintOrderedHashTableHeaderAndBuckets()
959 os << "\n - elements: " << table.NumberOfElements(); in PrintHashTableHeader()
1041 os << "\n - elements: " << this->NumberOfElements(); in SwissNameDictionaryPrint()
/third_party/node/deps/v8/src/snapshot/
Dshared-heap-deserializer.cc57 DCHECK_EQ(string_table_size, isolate()->string_table()->NumberOfElements()); in DeserializeStringTable()
Dshared-heap-serializer.cc129 sink_.PutInt(string_table->NumberOfElements(), in SerializeStringTable()
/third_party/node/deps/v8/src/heap/
Dobject-stats.cc488 (hash_table.NumberOfElements() + hash_table.NumberOfDeletedElements())) * in RecordHashTableVirtualObjectStats()

12