Lines Matching defs:index
59 #include "src/objects/field-index-inl.h"
60 #include "src/objects/field-index.h"
384 // Extending spec'ed behavior, we'd be happy to return an element index.
1085 // 6. Let index be 0.
1086 // 7. Repeat while index < len:
1087 for (uint32_t index = 0; index < len; ++index) {
1088 // 7a. Let indexName be ToString(index).
1092 JSReceiver::GetElement(isolate, receiver, index),
1112 list->set(index, *next);
1113 // 7e. Set index to index + 1. (See loop header.)
1332 int index = list->length() + 1;
1334 fixed_array = FixedArray::SetAndGrow(isolate, fixed_array, index, value);
1335 fixed_array->set(kLengthIndex, Smi::FromInt(index));
2668 it->IsElement() ? LookupIterator(isolate, receiver, it->index(), c)
3298 // 3. Else if P is an array index, then:
3299 uint32_t index = 0;
3300 if (PropertyKeyToArrayIndex(name, &index)) {
3311 // 3d. Let index be ToUint32(P).
3314 // 3f. If index >= oldLen and oldLenDesc.[[Writable]] is false,
3316 if (index >= old_len && old_len_desc.has_writable() &&
3328 // 3j. If index >= oldLen, then:
3329 if (index >= old_len) {
3330 // 3j i. Set oldLenDesc.[[Value]] to index + 1.
3331 old_len_desc.set_value(isolate->factory()->NewNumberFromUint(index + 1));
3988 Handle<FixedArray> array, int index,
3990 if (index < array->length()) {
3991 array->set(index, *value);
3997 } while (capacity <= index);
4001 new_array->set(index, *value);
4029 for (int index = 0; index < len; index++) {
4030 dest.set(dest_pos + index, get(pos + index), mode);
4206 int index = raw.length();
4207 raw.Set(index, *value);
4208 raw.set_length(index + 1);
4439 void DescriptorArray::Replace(InternalIndex index, Descriptor* descriptor) {
4440 descriptor->SetSortedKeyIndex(GetSortedKeyIndex(index.as_int()));
4441 Set(index, descriptor);
4458 void DescriptorArray::CopyFrom(InternalIndex index, DescriptorArray src) {
4459 PropertyDetails details = src.GetDetails(index);
4460 Set(index, src.GetKey(index), src.GetValue(index), details);
4761 // For array indexes mix the length into the hash as an array index could
5089 int index = Smi::cast(index_object).value();
5090 DCHECK_LT(index, script->shared_function_info_count());
5091 MaybeObject maybe_shared = script->shared_function_infos().Get(index);
5099 function_literal->set_function_literal_id(index);
5327 bool JSArray::WouldChangeReadOnlyLength(Handle<JSArray> array, uint32_t index) {
5330 if (length <= index) return HasReadOnlyLength(array);
6037 int index = dictionary->next_enumeration_index();
6038 // Check whether the next enumeration index is valid.
6039 if (!PropertyDetails::IsValidIndex(index)) {
6059 index = PropertyDetails::kInitialIndex + length;
6062 // Don't update the next enumeration index here, since we might be looking at
6064 return index;
6089 // We don't need to copy over the enumeration index.
6112 // Assign an enumeration index to the property and update
6114 int index = Derived::NextEnumerationIndex(isolate, dictionary);
6115 details = details.set_index(index);
6118 // Update enumeration index here in order to avoid potential modification of
6120 dictionary->set_next_enumeration_index(index + 1);
6168 // been added at a high index.
6170 // Check if this index is high enough that we should require slow
6348 int index = Smi::ToInt(value);
6349 DCHECK_LE(0, index);
6350 return index;
6657 int index = original_details.dictionary_index();
6658 DCHECK_LT(0, index);
6659 details = details.set_index(index);