Lines Matching defs:value
205 const JSHandle<JSTaggedValue> &value, const PropertyAttributes &attr)
208 op.AddPropertyInternal(value);
448 JSMutableHandle<JSTaggedValue> value(thread_, val);
452 value.Update(cell);
454 desc.SetValue(value);
523 JSTaggedValue value(dict->GetBox(entry));
525 SetFound(entry, value, attr, true);
552 JSTaggedValue value(dict->GetBox(entry));
554 SetFound(entry, value, attr, !IsFoundDict());
569 JSTaggedValue value;
571 value = obj->GetPropertyInlinedPropsWithRep(entry, attr);
572 if (value.IsHole()) {
580 value = array->Get(entry);
583 SetFound(entry, value, attr.GetValue(), !IsFoundDict());
593 JSTaggedValue value = dict->GetValue(entry);
595 SetFound(entry, value, attr, false);
640 bool ObjectOperator::UpdateValueAndDetails(const JSHandle<JSObject> &receiver, const JSHandle<JSTaggedValue> &value,
650 return UpdateDataValue(receiver, value, isInternalAccessor);
655 return UpdateDataValue(receiver, value, isInternalAccessor);
657 bool res = UpdateDataValue(receiver, value, isInternalAccessor);
665 bool ObjectOperator::UpdateDataValue(const JSHandle<JSObject> &receiver, const JSHandle<JSTaggedValue> &value,
677 receiver.GetTaggedValue(), GetIndex(), value.GetTaggedValue(), jsType);
685 if (JSHClass::TransitToElementsKind(thread_, receiver, value)) {
691 ElementAccessor::Set(thread_, receiver, GetIndex(), value, false);
696 dict->UpdateValue(thread_, GetIndex(), value.GetTaggedValue());
703 if (isInternalAccessor && !value->IsAccessor()) {
709 cell->SetValue(thread_, value.GetTaggedValue());
716 bool res = accessor->CallInternalSet(thread_, JSHandle<JSObject>(receiver), value, mayThrow);
737 JSHClass::ConvertOrTransitionWithRep(thread_, objHandle, key_, value, attr);
745 receiver->SetPropertyInlinedPropsWithRep(thread_, GetIndex(), actualValue.value);
752 properties->Set<true>(thread_, GetIndex(), value.GetTaggedValue());
754 properties->Set<false>(thread_, GetIndex(), actualValue.value);
758 properties.GetObject<NameDictionary>()->UpdateValue(thread_, GetIndex(), value.GetTaggedValue());
856 JSHandle<JSTaggedValue> value = JSHandle<JSTaggedValue>::Cast(accessor);
857 bool success = UpdateValueAndDetails(receiver, value, attr, attrChanged);
879 bool ObjectOperator::AddProperty(const JSHandle<JSObject> &receiver, const JSHandle<JSTaggedValue> &value,
886 bool ret = JSObject::AddElementInternal(thread_, receiver, elementIndex_, value, attr);
897 SetFound(elementIndex_, value.GetTaggedValue(), attr.GetValue(), !isDict, isTransited);
904 AddPropertyInternal(value);
908 void ObjectOperator::WriteElement(const JSHandle<JSObject> &receiver, JSHandle<JSTaggedValue> value) const
913 ElementAccessor::Set(thread_, receiver, index_, value, true);
919 dictionary->UpdateValue(thread_, GetIndex(), value.GetTaggedValue());
943 void ObjectOperator::SetFound(uint32_t index, JSTaggedValue value, uint64_t attr, bool mode, bool transition)
946 SetValue(value);
1012 JSTaggedValue value = ElementAccessor::Get(obj, elementIndex_);
1013 if (value.IsHole()) {
1016 SetFound(elementIndex_, value, PropertyAttributes::GetDefaultAttributes(), !IsFoundDict());
1032 void ObjectOperator::AddPropertyInternal(const JSHandle<JSTaggedValue> &value)
1045 cellHandle->SetValue(thread_, value.GetTaggedValue());
1046 PropertyBoxType cellType = value->IsUndefined() ? PropertyBoxType::UNDEFINED : PropertyBoxType::CONSTANT;
1057 // The property has already existed whose value is hole, initialized by speculative hclass.
1064 JSHClass::ConvertOrTransitionWithRep(thread_, objHandle, key_, value, attr);
1073 attr, value.GetTaggedValue());
1075 JSObject::Cast(receiver_.GetTaggedValue())->SetProperty<false>(thread_, hclass, attr, actualValue.value);
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);
1092 SetFound(index, value.GetTaggedValue(), attr.GetValue(), true, true);
1096 void ObjectOperator::DefineSetter(const JSHandle<JSTaggedValue> &value)
1100 accessor->SetSetter(thread_, value.GetTaggedValue());
1104 void ObjectOperator::DefineGetter(const JSHandle<JSTaggedValue> &value)
1108 accessor->SetGetter(thread_, value.GetTaggedValue());