Lines Matching defs:attr

199                                const PropertyAttributes &attr)
202 SetAttr(attr);
205 const JSHandle<JSTaggedValue> &value, const PropertyAttributes &attr)
207 ObjectOperator op(thread, receiver, name, attr);
524 auto attr = dict->GetAttributes(entry).GetValue();
525 SetFound(entry, value, attr, true);
553 auto attr = dict->GetAttributes(entry).GetValue();
554 SetFound(entry, value, attr, !IsFoundDict());
567 PropertyAttributes attr(layoutInfo->GetAttr(entry));
568 ASSERT(entry == static_cast<int>(attr.GetOffset()));
570 if (attr.IsInlinedProps()) {
571 value = obj->GetPropertyInlinedPropsWithRep(entry, attr);
583 SetFound(entry, value, attr.GetValue(), !IsFoundDict());
594 auto attr = dict->GetAttributes(entry).GetValue();
595 SetFound(entry, value, attr, false);
598 void ObjectOperator::TransitionForAttributeChanged(const JSHandle<JSObject> &receiver, PropertyAttributes attr)
608 attr.SetDictionaryOrder(origin.GetDictionaryOrder());
609 dict->SetAttributes(thread_, index, attr);
612 dict->SetAttributes(thread_, index, attr);
615 UpdateFound(index, attr.GetValue(), false, true);
619 dictHandle->SetAttributes(thread_, index, attr);
628 attr.SetDictSharedFieldType(attr.GetSharedFieldType());
629 attr.SetDictionaryOrder(origin.GetDictionaryOrder());
630 dict->SetAttributes(thread_, index, attr);
633 dict->SetAttributes(thread_, index, attr);
636 UpdateFound(index, attr.GetValue(), false, true);
641 PropertyAttributes attr, bool attrChanged)
652 if (attr.IsWritable()) {
653 TransitionForAttributeChanged(receiver, attr);
659 TransitionForAttributeChanged(receiver, attr);
704 PropertyAttributes attr = dict->GetAttributes(GetIndex());
705 attr.SetIsAccessor(false);
706 dict->SetAttributes(thread_, GetIndex(), attr);
727 PropertyAttributes attr = GetAttr();
729 if (!attr.IsInlinedProps()) {
733 attr.SetOffset(offset);
737 JSHClass::ConvertOrTransitionWithRep(thread_, objHandle, key_, value, attr);
742 attributes_.SetRepresentation(attr.GetRepresentation());
744 if (attr.IsInlinedProps()) {
765 PropertyAttributes attr = GetAttr();
769 if (desc.HasConfigurable() && attr.IsConfigurable() != desc.IsConfigurable()) {
770 attr.SetConfigurable(desc.IsConfigurable());
773 if (desc.HasEnumerable() && attr.IsEnumerable() != desc.IsEnumerable()) {
774 attr.SetEnumerable(desc.IsEnumerable());
779 if (desc.HasWritable() && attr.IsWritable() != desc.IsWritable()) {
780 attr.SetWritable(desc.IsWritable());
785 TransitionForAttributeChanged(receiver, attr);
802 attr.SetIsAccessor(false);
807 return UpdateValueAndDetails(receiver, desc.GetValue(), attr, attrChanged);
830 dict->UpdateValueAndAttributes(thread_, entry, accessor.GetTaggedValue(), attr);
852 attr.SetIsAccessor(true);
857 bool success = UpdateValueAndDetails(receiver, value, attr, attrChanged);
880 PropertyAttributes attr)
886 bool ret = JSObject::AddElementInternal(thread_, receiver, elementIndex_, value, attr);
897 SetFound(elementIndex_, value.GetTaggedValue(), attr.GetValue(), !isDict, isTransited);
903 SetAttr(attr.GetValue());
943 void ObjectOperator::SetFound(uint32_t index, JSTaggedValue value, uint64_t attr, bool mode, bool transition)
949 SetAttr(attr);
952 void ObjectOperator::UpdateFound(uint32_t index, uint64_t attr, bool mode, bool transition)
957 SetAttr(attr);
986 PropertyAttributes attr(desc);
987 SetFound(elementIndex_, desc.GetValue().GetTaggedValue(), attr.GetValue(), !IsFoundDict());
1026 auto attr = dictionary->GetAttributes(entry).GetValue();
1027 SetFound(entry, dictionary->GetValue(entry), attr, false);
1036 PropertyAttributes attr = GetAttr();
1047 attr.SetBoxType(cellType);
1050 GlobalDictionary::PutIfAbsent(thread_, dict, key_, JSHandle<JSTaggedValue>(cellHandle), attr);
1053 SetFound(0, cellHandle.GetTaggedValue(), attr.GetValue(), true);
1060 attr.SetOffset(receiverHoleEntry_);
1064 JSHClass::ConvertOrTransitionWithRep(thread_, objHandle, key_, value, attr);
1069 attributes_.SetRepresentation(attr.GetRepresentation());
1073 attr, value.GetTaggedValue());
1075 JSObject::Cast(receiver_.GetTaggedValue())->SetProperty<false>(thread_, hclass, attr, actualValue.value);
1077 uint32_t index = attr.IsInlinedProps() ? attr.GetOffset() :
1078 attr.GetOffset() - obj->GetJSHClass()->GetInlinedProperties();
1081 SetFound(index, value.GetTaggedValue(), attr.GetValue(), true);
1085 attr = ObjectFastOperator::AddPropertyByName(thread_, obj, key_, value, attr);
1088 SetFound(0, value.GetTaggedValue(), attr.GetValue(), false);
1090 uint32_t index = attr.IsInlinedProps() ? attr.GetOffset() :
1091 attr.GetOffset() - obj->GetJSHClass()->GetInlinedProperties();
1092 SetFound(index, value.GetTaggedValue(), attr.GetValue(), true, true);