Lines Matching refs:index
13 #include "src/objects/field-index-inl.h"
83 uint32_t index) {
84 LookupIterator it(isolate, receiver, index, receiver);
320 int JSObject::GetEmbedderFieldOffset(int index) {
321 DCHECK_LT(static_cast<unsigned>(index),
323 return GetEmbedderFieldsStartOffset() + (kEmbedderDataSlotSize * index);
326 Object JSObject::GetEmbedderField(int index) {
327 return EmbedderDataSlot(*this, index).load_tagged();
330 void JSObject::SetEmbedderField(int index, Object value) {
331 EmbedderDataSlot::store_tagged(*this, index, value);
334 void JSObject::SetEmbedderField(int index, Smi value) {
335 EmbedderDataSlot(*this, index).store_smi(value);
344 // Access fast-case object properties at index. The use of these routines
347 Object JSObject::RawFastPropertyAt(FieldIndex index) const {
349 return RawFastPropertyAt(cage_base, index);
353 FieldIndex index) const {
354 if (index.is_inobject()) {
355 return TaggedField<Object>::Relaxed_Load(cage_base, *this, index.offset());
358 index.outobject_array_index());
364 Object JSObject::RawFastPropertyAt(FieldIndex index,
367 return RawFastPropertyAt(cage_base, index, tag);
370 Object JSObject::RawFastPropertyAt(PtrComprCageBase cage_base, FieldIndex index,
372 if (index.is_inobject()) {
373 return TaggedField<Object>::SeqCst_Load(cage_base, *this, index.offset());
376 index.outobject_array_index(), tag);
381 PtrComprCageBase cage_base, Map original_map, FieldIndex index) const {
382 CHECK(index.is_inobject());
410 TaggedField<Object>::Acquire_Load(cage_base, *this, index.offset());
415 void JSObject::RawFastInobjectPropertyAtPut(FieldIndex index, Object value,
417 DCHECK(index.is_inobject());
418 int offset = index.offset();
423 void JSObject::RawFastInobjectPropertyAtPut(FieldIndex index, Object value,
425 DCHECK(index.is_inobject());
427 SEQ_CST_WRITE_FIELD(*this, index.offset(), value);
434 void JSObject::FastPropertyAtPut(FieldIndex index, Object value,
436 if (index.is_inobject()) {
437 RawFastInobjectPropertyAtPut(index, value, mode);
440 property_array().set(index.outobject_array_index(), value);
444 void JSObject::FastPropertyAtPut(FieldIndex index, Object value,
446 if (index.is_inobject()) {
447 RawFastInobjectPropertyAtPut(index, value, tag);
449 property_array().set(index.outobject_array_index(), value, tag);
458 FieldIndex index = FieldIndex::ForDescriptor(map(), descriptor);
473 auto box = HeapNumber::cast(RawFastPropertyAt(index));
476 FastPropertyAtPut(index, value);
480 Object JSObject::RawFastPropertyAtSwap(FieldIndex index, Object value,
483 return RawFastPropertyAtSwap(cage_base, index, value, tag);
487 FieldIndex index, Object value,
489 if (index.is_inobject()) {
490 return TaggedField<Object>::SeqCst_Swap(cage_base, *this, index.offset(),
493 return property_array().Swap(cage_base, index.outobject_array_index(), value,
497 int JSObject::GetInObjectPropertyOffset(int index) {
498 return map().GetInObjectPropertyOffset(index);
501 Object JSObject::InObjectPropertyAt(int index) {
502 int offset = GetInObjectPropertyOffset(index);
506 Object JSObject::InObjectPropertyAtPut(int index, Object value,
509 int offset = GetInObjectPropertyOffset(index);
831 uint32_t index) {
833 LookupIterator it(isolate, object, index, object, LookupIterator::OWN);
838 JSReceiver::GetOwnPropertyAttributes(object, index);
860 Handle<JSReceiver> object, uint32_t index) {
861 LookupIterator it(object->GetIsolate(), object, index, object,
867 uint32_t index) {
868 LookupIterator it(isolate, object, index, object);
873 Handle<JSReceiver> object, uint32_t index) {
875 LookupIterator it(isolate, object, index, object);
880 Handle<JSReceiver> object, uint32_t index) {
882 LookupIterator it(isolate, object, index, object, LookupIterator::OWN);
916 uint32_t index,
920 if (index < capacity) {
924 if (index - capacity >= JSObject::kMaxGap) return true;
925 *new_capacity = JSObject::NewElementsCapacity(index + 1);
926 DCHECK_LT(index, *new_capacity);