Lines Matching defs:index

342             FieldIndex index = FieldIndex::ForPropertyIndex(
345 JSObject::FastPropertyAt(isolate, from, representation, index);
997 Maybe<bool> JSReceiver::DeleteElement(Handle<JSReceiver> object, uint32_t index,
999 LookupIterator it(object->GetIsolate(), object, index, object,
2125 for (InternalIndex index : InternalIndex::Range(number_of_own_descriptors)) {
2128 Handle<Name> next_key(descriptors->GetKey(index), isolate);
2137 PropertyDetails details = descriptors->GetDetails(index);
2141 prop_value = handle(descriptors->GetStrongValue(index), isolate);
2717 void JSObject::SetNormalizedElement(Handle<JSObject> object, uint32_t index,
2727 NumberDictionary::Set(isolate, dictionary, index, value, object, details);
3016 FieldIndex index =
3018 if (index.is_inobject() || index.outobject_array_index() <
3021 if (index.is_double()) {
3023 object->FastPropertyAtPut(index, *value);
3045 DCHECK(!index.is_inobject()); // Must be a backing store index.
3046 new_storage->set(index.outobject_array_index(), *value);
3115 FieldIndex index = FieldIndex::ForDescriptor(isolate, *old_map, i);
3116 value = handle(object->RawFastPropertyAt(isolate, index), isolate);
3161 FieldIndex index = FieldIndex::ForPropertyIndex(*new_map, i);
3163 object->FastPropertyAtPut(index, value);
3226 FieldIndex index = FieldIndex::ForDescriptor(isolate, *map, i);
3228 value = handle(object->RawFastPropertyAt(isolate, index), isolate);
3236 value = handle(object->RawFastPropertyAt(isolate, index), isolate);
3258 // Copy the next enumeration index from instance descriptor.
3293 FieldIndex index = FieldIndex::ForPropertyIndex(*new_map, i);
3294 object->FastPropertyAtPut(index, Smi::zero());
3413 FieldIndex index = FieldIndex::ForDescriptor(*map, i);
3415 if (index.is_inobject()) {
3416 storage->set(index.property_index(), *box);
3418 array->set(index.outobject_array_index(), *box);
3424 FieldIndex index = FieldIndex::ForPropertyIndex(*map, i);
3426 object->FastPropertyAtPut(index, value);
3473 uint32_t index;
3475 DCHECK(!name->AsArrayIndex(&index));
3571 it->IsElement() ? LookupIterator(isolate, receiver, it->index(), c)
3637 Handle<JSObject> object, size_t index, Handle<Object> value,
3641 LookupIterator it(isolate, object, index, object, LookupIterator::OWN);
3713 InternalIndex index(swiss_dictionary->EntryForEnumerationIndex(i));
3714 Object key = swiss_dictionary->KeyAt(index);
3719 kind = swiss_dictionary->DetailsAt(index).kind();
3721 InternalIndex index(Smi::ToInt(iteration_order->get(i)));
3722 DCHECK(dictionary->IsKey(roots, dictionary->KeyAt(isolate, index)));
3723 kind = dictionary->DetailsAt(index).kind();
3788 InternalIndex index(swiss_dictionary->EntryForEnumerationIndex(i));
3789 Object key_obj = swiss_dictionary->KeyAt(index);
3795 value = swiss_dictionary->ValueAt(index);
3796 details = swiss_dictionary->DetailsAt(index);
3798 InternalIndex index(Smi::ToInt(iteration_order->get(i)));
3799 k = dictionary->NameAt(index);
3801 value = dictionary->ValueAt(index);
3802 details = dictionary->DetailsAt(index);
4426 FieldIndex index) {
4427 Handle<Object> raw_value(object->RawFastPropertyAt(index), isolate);
4434 FieldIndex index, SeqCstAccessTag tag) {
4435 Handle<Object> raw_value(object->RawFastPropertyAt(index, tag), isolate);
4763 for (InternalIndex index : dict.IterateEntries()) {
4765 if (!dict.ToKey(roots, index, &k)) continue;
4767 PropertyDetails details = dict.DetailsAt(index);
4769 dict.DetailsAtPut(index, details);
5093 bool JSObject::WouldConvertToSlowElements(uint32_t index) {
5097 return ShouldConvertToSlowElements(*this, capacity, index, &new_capacity);
5102 uint32_t index,
5108 // Adding a property with this index will require slow elements.
5109 if (index >= static_cast<uint32_t>(Smi::kMaxValue)) return false;
5120 *new_capacity = std::max(index + 1, *new_capacity);
5157 Maybe<bool> JSObject::AddDataElement(Handle<JSObject> object, uint32_t index,
5185 *object, NumberDictionary::cast(elements), index, &new_capacity)
5189 *object, static_cast<uint32_t>(elements.length()), index,
5196 index > old_length) {
5202 MAYBE_RETURN(accessor->Add(object, index, value, attributes, new_capacity),
5205 if (object->IsJSArray(isolate) && index >= old_length) {
5207 isolate->factory()->NewNumberFromUint(index + 1);
5359 uint32_t index) {
5360 LookupIterator it(isolate, object, index, object,
5438 Smi index(smi_index);
5440 .DoGetField(isolate, static_cast<FieldIndex>(index.value()))
5444 Object JSDate::DoGetField(Isolate* isolate, FieldIndex index) {
5445 DCHECK_NE(index, kDateValue);
5449 if (index < kFirstUncachedField) {
5457 switch (index) {
5477 if (index >= kFirstUTCField) {
5478 return GetUTCField(index, value().Number(), date_cache);
5487 if (index == kDays) return Smi::FromInt(days);
5490 if (index == kMillisecond) return Smi::FromInt(time_in_day_ms % 1000);
5491 DCHECK_EQ(index, kTimeInDay);
5495 Object JSDate::GetUTCField(FieldIndex index, double value,
5497 DCHECK_GE(index, kFirstUTCField);
5503 if (index == kTimezoneOffset) {
5509 if (index == kWeekdayUTC) return Smi::FromInt(date_cache->Weekday(days));
5511 if (index <= kDayUTC) {
5514 if (index == kYearUTC) return Smi::FromInt(year);
5515 if (index == kMonthUTC) return Smi::FromInt(month);
5516 DCHECK_EQ(index, kDayUTC);
5521 switch (index) {