Lines Matching defs:elements
23 #include "src/objects/elements.h"
359 // If a GC was caused while constructing this object, the elements
361 return elements(cage_base) !=
368 // Only TypedArrays can have these specialized elements.
375 CHECK(!object.elements().IsByteArray());
378 if (object.elements().length() > 0) {
379 CHECK(object.elements().IsFixedDoubleArray());
385 CHECK(object.elements().IsSloppyArgumentsElements());
389 FixedArray elements = FixedArray::cast(object.elements());
393 for (int i = 0; i < elements.length(); i++) {
394 Object value = elements.get(i);
398 for (int i = 0; i < elements.length(); i++) {
399 Object element = elements.get(i);
408 VerifyHeapPointer(isolate, elements());
467 // If a GC was caused while constructing this object, the elements
472 (elements() == GetReadOnlyRoots().empty_fixed_array()) ||
474 (elements().map() == GetReadOnlyRoots().fixed_array_map() ||
475 elements().map() == GetReadOnlyRoots().fixed_cow_array_map()));
722 SloppyArgumentsElements elements,
724 elements.SloppyArgumentsElementsVerify(isolate);
727 Context context_object = elements.context();
728 FixedArray arg_elements = elements.arguments();
744 Object mapped = elements.mapped_entries(i, kRelaxedLoad);
748 // Fast sloppy arguments elements are never holey. Either the element is
749 // context-mapped or present in the arguments elements.
760 // elements.
774 isolate, SloppyArgumentsElements::cast(elements()), *this);
978 // Make sure that this object has no properties, elements.
979 CHECK_EQ(0, FixedArray::cast(elements()).length());
986 elements().length() == 0) {
1144 // If a GC was caused while constructing this array, the elements
1147 if (elements().IsUndefined(isolate)) return;
1148 CHECK(elements().IsFixedArray() || elements().IsFixedDoubleArray());
1149 if (elements().length() == 0) {
1150 CHECK_EQ(elements(), ReadOnlyRoots(isolate).empty_fixed_array());
1152 // Verify that the length and the elements backing store are in sync.
1155 if (elements().length() > 0) {
1156 CHECK_IMPLIES(HasDoubleElements(), elements().IsFixedDoubleArray());
1158 elements().IsFixedArray());
1163 CHECK(size <= elements().length() ||
1164 elements() == ReadOnlyRoots(isolate).empty_fixed_array());
1173 NumberDictionary dict = NumberDictionary::cast(elements());
1174 // The dictionary can never have more elements than the array length + 1.
1721 // Verify that all elements are either weak pointers or SMIs marking empty
2000 FixedArray e = FixedArray::cast(elements());
2017 FixedArrayBase e = FixedArrayBase::cast(elements());
2062 PrintF(" - fast elements (#%d): %d (used) %d (unused)\n",
2066 PrintF(" - slow elements (#%d): %d (used) %d (unused)\n",