Lines Matching refs:current
836 PropertyDescriptor current(thread); in OrdinaryDefineOwnProperty() local
837 op.ToPropertyDescriptor(current); in OrdinaryDefineOwnProperty()
839 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in OrdinaryDefineOwnProperty()
849 PropertyDescriptor current(thread); in OrdinaryDefineOwnProperty() local
850 op.ToPropertyDescriptor(current); in OrdinaryDefineOwnProperty()
851 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in OrdinaryDefineOwnProperty()
856 const PropertyDescriptor ¤t) in ValidateAndApplyPropertyDescriptor() argument
859 if (current.IsEmpty()) { in ValidateAndApplyPropertyDescriptor()
893 if ((!desc.HasEnumerable() || desc.IsEnumerable() == current.IsEnumerable()) && in ValidateAndApplyPropertyDescriptor()
894 (!desc.HasConfigurable() || desc.IsConfigurable() == current.IsConfigurable()) && in ValidateAndApplyPropertyDescriptor()
895 (!desc.HasValue() || JSTaggedValue::SameValue(current.GetValue(), desc.GetValue())) && in ValidateAndApplyPropertyDescriptor()
896 (!desc.HasWritable() || (current.IsWritable() == desc.IsWritable())) && in ValidateAndApplyPropertyDescriptor()
898 … (current.HasGetter() && JSTaggedValue::SameValue(current.GetGetter(), desc.GetGetter()))) && in ValidateAndApplyPropertyDescriptor()
900 … (current.HasSetter() && JSTaggedValue::SameValue(current.GetSetter(), desc.GetSetter())))) { in ValidateAndApplyPropertyDescriptor()
905 if (!current.IsConfigurable()) { in ValidateAndApplyPropertyDescriptor()
912 if (desc.HasEnumerable() && (desc.IsEnumerable() != current.IsEnumerable())) { in ValidateAndApplyPropertyDescriptor()
920 } else if (current.IsDataDescriptor() != desc.IsDataDescriptor()) { in ValidateAndApplyPropertyDescriptor()
922 if (!current.IsConfigurable()) { in ValidateAndApplyPropertyDescriptor()
926 if (current.IsDataDescriptor()) { in ValidateAndApplyPropertyDescriptor()
936 } else if (current.IsDataDescriptor() && desc.IsDataDescriptor()) { in ValidateAndApplyPropertyDescriptor()
938 if (!current.IsConfigurable()) { in ValidateAndApplyPropertyDescriptor()
941 if (!current.IsWritable() && desc.HasWritable() && desc.IsWritable()) { in ValidateAndApplyPropertyDescriptor()
945 if (!current.IsWritable()) { in ValidateAndApplyPropertyDescriptor()
946 … if (desc.HasValue() && !JSTaggedValue::SameValue(current.GetValue(), desc.GetValue())) { in ValidateAndApplyPropertyDescriptor()
954 if (!current.IsConfigurable()) { in ValidateAndApplyPropertyDescriptor()
957 … if (desc.HasSetter() && !JSTaggedValue::SameValue(current.GetSetter(), desc.GetSetter())) { in ValidateAndApplyPropertyDescriptor()
962 … if (desc.HasGetter() && !JSTaggedValue::SameValue(current.GetGetter(), desc.GetGetter())) { in ValidateAndApplyPropertyDescriptor()
979 const PropertyDescriptor ¤t) in IsCompatiblePropertyDescriptor() argument
983 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in IsCompatiblePropertyDescriptor()
999 JSTaggedValue current = obj->GetPrototype(thread); in SetPrototype() local
1000 if (current == proto.GetTaggedValue()) { in SetPrototype()
1917 … JSHandle<JSTaggedValue> current = JSHandle<JSTaggedValue>(thread, array->Get(thread, index + 1)); in SetNativePointerField() local
1918 if (!current->IsHole() && nativePointer == nullptr) { in SetNativePointerField()
1920 vm->RemoveArrayDataList(*JSHandle<JSNativePointer>(current)); in SetNativePointerField()