Lines Matching refs:elements
1674 // Only accessors allowed as elements.
2219 FixedArray* array = FixedArray::cast(elements());
2238 // Switch to using the dictionary as the backing storage for elements.
2245 PrintF("Object elements have been normalized:\n");
2305 static_cast<uint32_t>(FixedArray::cast(elements())->length());
2307 FixedArray::cast(elements())->set_the_hole(index);
2385 static_cast<uint32_t>(FixedArray::cast(elements())->length());
2387 FixedArray::cast(elements())->set_the_hole(index);
2399 // Pixel and external array elements cannot be deleted. Just
2500 FixedArray::cast(elements())->length();
2502 Object* element = FixedArray::cast(elements())->get(i);
2567 // - This object has no elements.
2568 // - No prototype has enumerable properties/elements.
2739 // elements.
2750 // Only accessors allowed as elements.
2799 NumberDictionary* elements = NumberDictionary::cast(dict);
2800 elements->set_requires_slow_elements();
2875 // Only accessors allowed as elements.
3003 // elements, reuse the space for the first of them.
3030 // Skip deleted elements.
3055 // Use null instead of undefined for deleted elements to distinguish
3056 // deleted elements from unused elements. This distinction is used
3086 return UnionOfKeys(FixedArray::cast(array->elements()));
3098 // Copy the elements from the JSArray to the temporary fixed array.
3122 // Compute how many elements are not in this.
3381 // Extract elements and create sorted array.
5135 FixedArray* old_elements = FixedArray::cast(elements());
5144 NumberDictionary* dictionary = NumberDictionary::cast(elements());
5171 ASSERT(static_cast<uint32_t>(FixedArray::cast(elements())->length()) <=
5215 Handle<FixedArray> old_backing(FixedArray::cast(elements()));
5225 // Computes the new capacity when expanding the elements of a JSObject.
5249 int old_capacity = FixedArray::cast(elements())->length();
5254 // last part of the elements backing storage array and
5257 FixedArray::cast(elements())->set_the_hole(i);
5285 // Remove deleted elements.
5369 static_cast<uint32_t>(FixedArray::cast(elements())->length());
5371 !FixedArray::cast(elements())->get(index)->IsTheHole()) {
5378 PixelArray* pixels = PixelArray::cast(elements());
5392 ExternalArray* array = ExternalArray::cast(elements());
5477 static_cast<uint32_t>(FixedArray::cast(elements())->length());
5479 !FixedArray::cast(elements())->get(index)->IsTheHole();
5482 PixelArray* pixels = PixelArray::cast(elements());
5492 ExternalArray* array = ExternalArray::cast(elements());
5526 static_cast<uint32_t>(FixedArray::cast(elements())->length());
5528 !FixedArray::cast(elements())->get(index)->IsTheHole()) return true;
5532 PixelArray* pixels = PixelArray::cast(elements());
5545 ExternalArray* array = ExternalArray::cast(elements());
5602 // Adding n elements in fast case is O(n*n).
5604 // elements.
5608 FixedArray* elms = FixedArray::cast(elements());
5646 FixedArray::cast(elements())->set(index, value);
5688 PixelArray* pixels = PixelArray::cast(elements());
5692 ExternalByteArray* array = ExternalByteArray::cast(elements());
5697 ExternalUnsignedByteArray::cast(elements());
5701 ExternalShortArray* array = ExternalShortArray::cast(elements());
5706 ExternalUnsignedShortArray::cast(elements());
5710 ExternalIntArray* array = ExternalIntArray::cast(elements());
5715 ExternalUnsignedIntArray::cast(elements());
5719 ExternalFloatArray* array = ExternalFloatArray::cast(elements());
5724 FixedArray* elms = FixedArray::cast(elements());
5732 // Only accessors allowed as elements.
5780 elements())->max_number_key() + 1;
5787 PrintF("Object elements are fast case again:\n");
5827 FixedArray* elms = FixedArray::cast(elements());
5857 // Only accessors allowed as elements.
5933 FixedArray* elms = FixedArray::cast(elements());
5941 PixelArray* pixels = PixelArray::cast(elements());
5949 ExternalByteArray* array = ExternalByteArray::cast(elements());
5958 ExternalUnsignedByteArray::cast(elements());
5966 ExternalShortArray* array = ExternalShortArray::cast(elements());
5975 ExternalUnsignedShortArray::cast(elements());
5983 ExternalIntArray* array = ExternalIntArray::cast(elements());
5992 ExternalUnsignedIntArray::cast(elements());
6000 ExternalFloatArray* array = ExternalFloatArray::cast(elements());
6014 // Only accessors allowed as elements.
6043 FixedArray* elms = FixedArray::cast(elements());
6061 NumberDictionary* dictionary = NumberDictionary::cast(elements());
6081 int elements_length = FixedArray::cast(elements())->length();
6088 NumberDictionary* dictionary = NumberDictionary::cast(elements());
6089 // If the elements are sparse, we should not go back to fast case.
6091 // If an element has been added at a very high index in the elements
6095 // elements. If it had fast elements we would skip security checks.
6099 // fast elements.
6139 void Dictionary<Shape, Key>::CopyValuesTo(FixedArray* elements) {
6143 WriteBarrierMode mode = elements->GetWriteBarrierMode(no_gc);
6147 elements->set(pos++, ValueAt(i), mode);
6150 ASSERT(pos == elements->length());
6273 static_cast<uint32_t>(FixedArray::cast(elements())->length());
6275 !FixedArray::cast(elements())->get(index)->IsTheHole();
6278 PixelArray* pixels = PixelArray::cast(elements());
6288 ExternalArray* array = ExternalArray::cast(elements());
6388 // Extract elements and create sorted array.
6441 // swap the elements at these two positions.
6477 // Fast case for objects with no elements.
6482 static_cast<uint32_t>(FixedArray::cast(elements())->length());
6485 // Compute the number of enumerable elements.
6497 FixedArray::cast(elements())->length();
6499 if (!FixedArray::cast(elements())->get(i)->IsTheHole()) {
6510 int length = PixelArray::cast(elements())->length();
6527 int length = ExternalArray::cast(elements())->length();
6880 // 50% is still free after adding n elements and
6881 // at most 50% of the free elements are deleted elements.
6898 // Rehash the elements.
7011 // Collates undefined and unexisting elements below limit from position
7012 // zero of the elements. The object stays in Dictionary mode.
7017 // elements.
7083 // Collects all defined (non-hole) and non-undefined (array) elements at
7084 // the start of the elements array.
7085 // If the object is in dictionary mode, it is converted to fast elements
7091 // Convert to fast elements containing only the existing properties.
7098 // Convert to fast elements.
7115 FixedArray* elements = FixedArray::cast(this->elements());
7116 uint32_t elements_length = static_cast<uint32_t>(elements->length());
7135 // Split elements into defined, undefined and the_hole, in that order.
7137 WriteBarrierMode write_barrier = elements->GetWriteBarrierMode(no_alloc);
7143 Object* current = elements->get(i);
7154 current = elements->get(undefs);
7161 elements->set(i, current, write_barrier);
7168 elements->set_undefined(undefs);
7172 elements->set_the_hole(holes);
7679 // Check whether there are enough enumeration indices to add n elements.
7708 // Update the number of elements.
7791 // If the dictionary requires slow elements an element has already
7795 // elements.