• Home
  • Raw
  • Download

Lines Matching full:current

877     // 1. Let current be O.[[GetOwnProperty]](P).  in OrdinaryDefineOwnProperty()
882 PropertyDescriptor current(thread); in OrdinaryDefineOwnProperty() local
883 op.ToPropertyDescriptor(current); in OrdinaryDefineOwnProperty()
884 // 4. Return ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current). in OrdinaryDefineOwnProperty()
885 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in OrdinaryDefineOwnProperty()
895 PropertyDescriptor current(thread); in OrdinaryDefineOwnProperty() local
896 op.ToPropertyDescriptor(current); in OrdinaryDefineOwnProperty()
897 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in OrdinaryDefineOwnProperty()
900 // 9.1.6.3 ValidateAndApplyPropertyDescriptor (O, P, extensible, Desc, current)
902 const PropertyDescriptor &current) in ValidateAndApplyPropertyDescriptor() argument
904 // 2. If current is undefined, then in ValidateAndApplyPropertyDescriptor()
905 if (current.IsEmpty()) { in ValidateAndApplyPropertyDescriptor()
937 …// 4. Return true, if every field in Desc also occurs in current and the value of every field in D… in ValidateAndApplyPropertyDescriptor()
938 // same value as the corresponding field in current when compared using the SameValue algorithm. in ValidateAndApplyPropertyDescriptor()
939 if ((!desc.HasEnumerable() || desc.IsEnumerable() == current.IsEnumerable()) && in ValidateAndApplyPropertyDescriptor()
940 (!desc.HasConfigurable() || desc.IsConfigurable() == current.IsConfigurable()) && in ValidateAndApplyPropertyDescriptor()
941 (!desc.HasValue() || JSTaggedValue::SameValue(current.GetValue(), desc.GetValue())) && in ValidateAndApplyPropertyDescriptor()
942 (!desc.HasWritable() || (current.IsWritable() == desc.IsWritable())) && in ValidateAndApplyPropertyDescriptor()
944 … (current.HasGetter() && JSTaggedValue::SameValue(current.GetGetter(), desc.GetGetter()))) && in ValidateAndApplyPropertyDescriptor()
946 … (current.HasSetter() && JSTaggedValue::SameValue(current.GetSetter(), desc.GetSetter())))) { in ValidateAndApplyPropertyDescriptor()
950 // 5. If the [[Configurable]] field of current is false, then in ValidateAndApplyPropertyDescriptor()
951 if (!current.IsConfigurable()) { in ValidateAndApplyPropertyDescriptor()
956 …turn false, if the [[Enumerable]] field of Desc is present and the [[Enumerable]] fields of current in ValidateAndApplyPropertyDescriptor()
958 if (desc.HasEnumerable() && (desc.IsEnumerable() != current.IsEnumerable())) { in ValidateAndApplyPropertyDescriptor()
965 … // 7. Else if IsDataDescriptor(current) and IsDataDescriptor(Desc) have different results, then in ValidateAndApplyPropertyDescriptor()
966 } else if (current.IsDataDescriptor() != desc.IsDataDescriptor()) { in ValidateAndApplyPropertyDescriptor()
967 // 7a. Return false, if the [[Configurable]] field of current is false. in ValidateAndApplyPropertyDescriptor()
968 if (!current.IsConfigurable()) { in ValidateAndApplyPropertyDescriptor()
971 // 7b. If IsDataDescriptor(current) is true, then in ValidateAndApplyPropertyDescriptor()
972 if (current.IsDataDescriptor()) { in ValidateAndApplyPropertyDescriptor()
981 // 8. Else if IsDataDescriptor(current) and IsDataDescriptor(Desc) are both true, then in ValidateAndApplyPropertyDescriptor()
982 } else if (current.IsDataDescriptor() && desc.IsDataDescriptor()) { in ValidateAndApplyPropertyDescriptor()
983 // 8a. If the [[Configurable]] field of current is false, then in ValidateAndApplyPropertyDescriptor()
984 if (!current.IsConfigurable()) { in ValidateAndApplyPropertyDescriptor()
985 …// 8a i. Return false, if the [[Writable]] field of current is false and the [[Writable]] field of… in ValidateAndApplyPropertyDescriptor()
987 if (!current.IsWritable() && desc.HasWritable() && desc.IsWritable()) { in ValidateAndApplyPropertyDescriptor()
990 // 8a ii. If the [[Writable]] field of current is false, then in ValidateAndApplyPropertyDescriptor()
991 if (!current.IsWritable()) { in ValidateAndApplyPropertyDescriptor()
992 … if (desc.HasValue() && !JSTaggedValue::SameValue(current.GetValue(), desc.GetValue())) { in ValidateAndApplyPropertyDescriptor()
997 // 8b. Else the [[Configurable]] field of current is true, so any change is acceptable. in ValidateAndApplyPropertyDescriptor()
998 } else { // 9. Else IsAccessorDescriptor(current) and IsAccessorDescriptor(Desc) are both true, in ValidateAndApplyPropertyDescriptor()
999 // 9a. If the [[Configurable]] field of current is false, then in ValidateAndApplyPropertyDescriptor()
1000 if (!current.IsConfigurable()) { in ValidateAndApplyPropertyDescriptor()
1001 … Return false, if the [[Set]] field of Desc is present and SameValue(Desc.[[Set]], current.[[Set]]) in ValidateAndApplyPropertyDescriptor()
1003 … if (desc.HasSetter() && !JSTaggedValue::SameValue(current.GetSetter(), desc.GetSetter())) { in ValidateAndApplyPropertyDescriptor()
1007 // current.[[Get]]) is false. in ValidateAndApplyPropertyDescriptor()
1008 … if (desc.HasGetter() && !JSTaggedValue::SameValue(current.GetGetter(), desc.GetGetter())) { in ValidateAndApplyPropertyDescriptor()
1023 // 9.1.6.2 IsCompatiblePropertyDescriptor (Extensible, Desc, Current)
1025 const PropertyDescriptor &current) in IsCompatiblePropertyDescriptor() argument
1027 … // 1. Return ValidateAndApplyPropertyDescriptor(undefined, undefined, Extensible, Desc, Current). in IsCompatiblePropertyDescriptor()
1029 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in IsCompatiblePropertyDescriptor()
1041 JSTaggedValue current = JSObject::GetPrototype(obj); in SetPrototype() local
1042 if (current == proto.GetTaggedValue()) { in SetPrototype()
2033 … JSHandle<JSTaggedValue> current = JSHandle<JSTaggedValue>(thread, array->Get(thread, index)); in SetNativePointerField() local
2034 if (!current->IsHole() && nativePointer == nullptr) { in SetNativePointerField()
2036 vm->RemoveFromNativePointerList(*JSHandle<JSNativePointer>(current)); in SetNativePointerField()