Searched refs:NumberOfElements (Results 1 – 16 of 16) sorted by relevance
/external/v8/test/cctest/ |
D | test-weaksets.cc | 96 CHECK_EQ(1, ObjectHashTable::cast(weakset->table())->NumberOfElements()); in TEST() 101 CHECK_EQ(1, ObjectHashTable::cast(weakset->table())->NumberOfElements()); in TEST() 120 CHECK_EQ(1, ObjectHashTable::cast(weakset->table())->NumberOfElements()); in TEST() 125 CHECK_EQ(0, ObjectHashTable::cast(weakset->table())->NumberOfElements()); in TEST() 158 CHECK_EQ(32, ObjectHashTable::cast(weakset->table())->NumberOfElements()); in TEST() 162 CHECK_EQ(0, ObjectHashTable::cast(weakset->table())->NumberOfElements()); in TEST()
|
D | test-weakmaps.cc | 97 CHECK_EQ(2, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); in TEST() 102 CHECK_EQ(2, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); in TEST() 121 CHECK_EQ(2, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); in TEST() 126 CHECK_EQ(0, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); in TEST() 159 CHECK_EQ(32, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); in TEST() 163 CHECK_EQ(0, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); in TEST()
|
D | test-dictionary.cc | 53 CHECK_EQ(table->NumberOfElements(), 1); in TestHashMap() 60 CHECK_EQ(table->NumberOfElements(), 1); in TestHashMap() 66 CHECK_EQ(table->NumberOfElements(), 1); in TestHashMap() 73 CHECK_EQ(table->NumberOfElements(), 0); in TestHashMap() 82 CHECK_EQ(table->NumberOfElements(), i + 1); in TestHashMap()
|
D | test-object-observe.cc | 477 static int NumberOfElements(i::Handle<i::JSWeakMap> map) { in NumberOfElements() function 478 return i::ObjectHashTable::cast(map->table())->NumberOfElements(); in NumberOfElements() 504 CHECK_EQ(1, NumberOfElements(callbackInfoMap)); in TEST() 505 CHECK_EQ(1, NumberOfElements(objectInfoMap)); in TEST() 506 CHECK_EQ(1, NumberOfElements(notifierObjectInfoMap)); in TEST() 508 CHECK_EQ(0, NumberOfElements(callbackInfoMap)); in TEST() 509 CHECK_EQ(0, NumberOfElements(objectInfoMap)); in TEST() 510 CHECK_EQ(0, NumberOfElements(notifierObjectInfoMap)); in TEST() 782 if (i::GlobalDictionary::cast(g->properties())->NumberOfElements() != 0) { in GetGlobalObjectsCount()
|
D | test-api.cc | 13467 if (i::GlobalDictionary::cast(g->properties())->NumberOfElements() != 0) { in GetGlobalObjectsCount()
|
/external/v8/src/runtime/ |
D | runtime-collections.cc | 238 if (max_entries == 0 || max_entries > table->NumberOfElements()) { in RUNTIME_FUNCTION() 239 max_entries = table->NumberOfElements(); in RUNTIME_FUNCTION() 244 if (max_entries > table->NumberOfElements()) { in RUNTIME_FUNCTION() 245 max_entries = table->NumberOfElements(); in RUNTIME_FUNCTION() 352 if (max_values == 0 || max_values > table->NumberOfElements()) { in RUNTIME_FUNCTION() 353 max_values = table->NumberOfElements(); in RUNTIME_FUNCTION() 357 if (max_values > table->NumberOfElements()) { in RUNTIME_FUNCTION() 358 max_values = table->NumberOfElements(); in RUNTIME_FUNCTION()
|
D | runtime.cc | 57 DCHECK(dict->NumberOfElements() == 0); in InitializeIntrinsicFunctionNames()
|
D | runtime-array.cc | 161 Handle<SeededNumberDictionary>::cast(elements)->NumberOfElements(); in RUNTIME_FUNCTION()
|
/external/v8/src/ |
D | key-accumulator.cc | 165 int prev_size = string_properties_->NumberOfElements(); in AddStringKey() 167 if (prev_size < string_properties_->NumberOfElements()) { in AddStringKey() 181 int prev_size = symbol_properties_->NumberOfElements(); in AddSymbolKey() 183 if (prev_size < symbol_properties_->NumberOfElements()) { in AddSymbolKey()
|
D | objects-debug.cc | 605 if (GlobalDictionary::cast(properties())->NumberOfElements() == 0 && in JSGlobalObjectVerify() 1063 info->number_of_slow_used_properties_ += dict->NumberOfElements(); in IncrementSpillStatistics() 1065 dict->Capacity() - dict->NumberOfElements(); in IncrementSpillStatistics() 1068 info->number_of_slow_used_properties_ += dict->NumberOfElements(); in IncrementSpillStatistics() 1070 dict->Capacity() - dict->NumberOfElements(); in IncrementSpillStatistics() 1105 info->number_of_slow_used_elements_ += dict->NumberOfElements(); in IncrementSpillStatistics() 1107 dict->Capacity() - dict->NumberOfElements(); in IncrementSpillStatistics()
|
D | objects.cc | 5662 int number_of_elements = dictionary->NumberOfElements(); in MigrateSlowToFast() 17127 DCHECK(NumberOfElements() < new_table->Capacity()); in Rehash() 17153 new_table->SetNumberOfElements(NumberOfElements()); in Rehash() 17235 int nof = table->NumberOfElements() + n; in EnsureCapacity() 17257 int nof = NumberOfElements() + n; in HasSufficientCapacity() 17274 int nof = table->NumberOfElements(); in Shrink() 17462 SeededNumberDictionary::New(isolate, dict->NumberOfElements()); in PrepareSlowElementsForSort() 17569 isolate->factory()->NewFixedArray(dict->NumberOfElements(), tenure); in PrepareElementsForSort() 18114 int length = dictionary->NumberOfElements(); in BuildIterationIndicesArray() 18143 int length = dictionary->NumberOfElements(); in GenerateNewEnumerationIndices() [all …]
|
D | objects-inl.h | 3070 int HashTableBase::NumberOfElements() { in NumberOfElements() function 3086 SetNumberOfElements(NumberOfElements() + 1); in ElementAdded() 3091 SetNumberOfElements(NumberOfElements() - 1); in ElementRemoved() 3097 SetNumberOfElements(NumberOfElements() - n); in ElementsRemoved()
|
D | objects.h | 3090 inline int NumberOfElements(); 3792 int NumberOfElements() { in NumberOfElements() function 3800 int UsedCapacity() { return NumberOfElements() + NumberOfDeletedElements(); } in UsedCapacity()
|
D | api.cc | 6186 return i::OrderedHashMap::cast(obj->table())->NumberOfElements(); in Size() 6261 int size = table->NumberOfElements(); in AsArray() 6286 return i::OrderedHashSet::cast(obj->table())->NumberOfElements(); in Size() 6345 int length = table->NumberOfElements(); in AsArray()
|
/external/v8/src/heap/ |
D | heap.cc | 682 string_table()->NumberOfElements()); in GarbageCollectionEpilogue()
|
/external/v8/test/cctest/heap/ |
D | test-heap.cc | 4896 elements = t->NumberOfElements(); in TEST()
|