Home
last modified time | relevance | path

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

/external/v8/test/cctest/
Dtest-weaksets.cc96 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()
Dtest-weakmaps.cc97 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()
Dtest-dictionary.cc53 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()
Dtest-object-observe.cc477 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()
Dtest-api.cc13467 if (i::GlobalDictionary::cast(g->properties())->NumberOfElements() != 0) { in GetGlobalObjectsCount()
/external/v8/src/runtime/
Druntime-collections.cc238 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()
Druntime.cc57 DCHECK(dict->NumberOfElements() == 0); in InitializeIntrinsicFunctionNames()
Druntime-array.cc161 Handle<SeededNumberDictionary>::cast(elements)->NumberOfElements(); in RUNTIME_FUNCTION()
/external/v8/src/
Dkey-accumulator.cc165 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()
Dobjects-debug.cc605 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()
Dobjects.cc5662 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 …]
Dobjects-inl.h3070 int HashTableBase::NumberOfElements() { in NumberOfElements() function
3086 SetNumberOfElements(NumberOfElements() + 1); in ElementAdded()
3091 SetNumberOfElements(NumberOfElements() - 1); in ElementRemoved()
3097 SetNumberOfElements(NumberOfElements() - n); in ElementsRemoved()
Dobjects.h3090 inline int NumberOfElements();
3792 int NumberOfElements() { in NumberOfElements() function
3800 int UsedCapacity() { return NumberOfElements() + NumberOfDeletedElements(); } in UsedCapacity()
Dapi.cc6186 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/
Dheap.cc682 string_table()->NumberOfElements()); in GarbageCollectionEpilogue()
/external/v8/test/cctest/heap/
Dtest-heap.cc4896 elements = t->NumberOfElements(); in TEST()