Lines Matching full:op
232 ObjectOperator op(thread, receiver, lengthKey, OperatorType::OWN); in IsArrayLengthWritable() local
233 return op.GetAttr().IsWritable(); in IsArrayLengthWritable()
493 ObjectOperator op(thread, objValue, i, OperatorType::OWN); in GetAllElementKeysByFilter() local
494 bool bIgnore = FilterHelper::IgnoreKeyByFilter<ObjectOperator>(op, filter); in GetAllElementKeysByFilter()
604 ObjectOperator op(thread, key); in GlobalSetProperty() local
605 if (!op.IsFound()) { in GlobalSetProperty()
607 op.SetAttr(attr); in GlobalSetProperty()
609 return SetProperty(&op, value, mayThrow); in GlobalSetProperty()
643 ObjectOperator op(thread, obj, receiver, key); in SetProperty() local
644 return SetProperty(&op, value, mayThrow); in SetProperty()
653 ObjectOperator op(thread, obj, key); in SetProperty() local
654 return SetProperty(&op, value, mayThrow); in SetProperty()
664 ObjectOperator op(thread, obj, key); in SetProperty() local
665 return SetProperty(&op, value, mayThrow); in SetProperty()
673 ObjectOperator op(thread, obj, index); in SetProperty() local
674 return SetProperty(&op, value, mayThrow); in SetProperty()
677 bool JSObject::SetProperty(ObjectOperator *op, const JSHandle<JSTaggedValue> &value, bool mayThrow) in SetProperty() argument
679 JSThread *thread = op->GetThread(); in SetProperty()
681 JSHandle<JSTaggedValue> receiver = op->GetReceiver(); in SetProperty()
682 JSHandle<JSTaggedValue> holder = op->GetHolder(); in SetProperty()
684 if (op->IsElement()) { in SetProperty()
685 JSHandle<JSTaggedValue> key(thread, JSTaggedValue(op->GetElementIndex())); in SetProperty()
688 …return JSProxy::SetProperty(thread, JSHandle<JSProxy>::Cast(holder), op->GetKey(), value, receiver… in SetProperty()
691 // When op is not found and is not set extra attributes in SetProperty()
692 if (!op->IsFound() && op->IsPrimitiveAttr()) { in SetProperty()
693 op->SetAsDefaultAttr(); in SetProperty()
697 if (op->IsAccessorDescriptor()) { in SetProperty()
698 JSTaggedValue ret = ShouldGetValueFromBox(op); in SetProperty()
703 if (!op->IsAccessorDescriptor() || isInternalAccessor) { in SetProperty()
704 if (!op->IsWritable()) { in SetProperty()
720 if (op->IsElement()) { in SetProperty()
721 key.Update(JSTaggedValue(op->GetElementIndex())); in SetProperty()
723 key.Update(op->GetKey().GetTaggedValue()); in SetProperty()
746 if (op->HasReceiver()) { in SetProperty()
747 op->ReLookupPropertyInReceiver(); in SetProperty()
751 if (op->IsFound() && !op->IsOnPrototype()) { in SetProperty()
753 if (op->IsAccessorDescriptor() && !isInternalAccessor) { in SetProperty()
758 if (!op->IsWritable()) { in SetProperty()
764 …isSuccess = op->UpdateDataValue(JSHandle<JSObject>(receiver), value, isInternalAccessor, mayThrow); in SetProperty()
775 … return op->AddProperty(JSHandle<JSObject>(receiver), value, PropertyAttributes::Default()); in SetProperty()
777 return op->AddProperty(JSHandle<JSObject>(receiver), value, op->GetAttr()); in SetProperty()
783 ASSERT(op->IsAccessorDescriptor()); in SetProperty()
785 JSTaggedValue ret = ShouldGetValueFromBox(op); in SetProperty()
850 ObjectOperator op(thread, obj, receiver, key); in GetProperty() local
851 return OperationResult(thread, GetProperty(thread, &op), PropertyMetaData(op.IsFound())); in GetProperty()
860 ObjectOperator op(thread, obj, key); in GetProperty() local
861 return OperationResult(thread, GetProperty(thread, &op), PropertyMetaData(op.IsFound())); in GetProperty()
870 ObjectOperator op(thread, obj, key); in GetProperty() local
871 return OperationResult(thread, GetProperty(thread, &op), PropertyMetaData(op.IsFound())); in GetProperty()
878 ObjectOperator op(thread, obj, index); in GetProperty() local
879 return OperationResult(thread, GetProperty(thread, &op), PropertyMetaData(op.IsFound())); in GetProperty()
886 ObjectOperator op(thread, key); in GetPropertyFromGlobal() local
887 return OperationResult(thread, GetProperty(thread, &op), PropertyMetaData(op.IsFound())); in GetPropertyFromGlobal()
890 JSTaggedValue JSObject::GetProperty(JSThread *thread, ObjectOperator *op) in GetProperty() argument
892 JSHandle<JSTaggedValue> receiver = op->GetReceiver(); in GetProperty()
893 JSHandle<JSTaggedValue> holder = op->GetHolder(); in GetProperty()
895 if (op->IsElement()) { in GetProperty()
896 JSHandle<JSTaggedValue> key(thread, JSTaggedValue(op->GetElementIndex())); in GetProperty()
901 return JSProxy::GetProperty(thread, JSHandle<JSProxy>::Cast(holder), op->GetKey(), receiver) in GetProperty()
907 if (!op->IsFound()) { in GetProperty()
912 JSTaggedValue ret = ShouldGetValueFromBox(op); in GetProperty()
913 if (!op->IsAccessorDescriptor()) { in GetProperty()
932 ObjectOperator op(thread, JSHandle<JSTaggedValue>(obj), key, OperatorType::OWN); in DeleteProperty() local
935 if (!op.IsFound()) { in DeleteProperty()
942 if (op.IsConfigurable()) { in DeleteProperty()
943 op.DeletePropertyInHolder(); in DeleteProperty()
959 ObjectOperator op(thread, key, OperatorType::OWN); in GlobalGetOwnProperty() local
961 if (!op.IsFound()) { in GlobalGetOwnProperty()
965 op.ToPropertyDescriptor(desc); in GlobalGetOwnProperty()
980 ObjectOperator op(thread, JSHandle<JSTaggedValue>(obj), key, OperatorType::OWN); in OrdinaryGetOwnProperty() local
982 if (!op.IsFound()) { in OrdinaryGetOwnProperty()
986 op.ToPropertyDescriptor(desc); in OrdinaryGetOwnProperty()
1019 ObjectOperator op(thread, objValue, key, OperatorType::OWN); in OrdinaryDefineOwnProperty() local
1023 op.ToPropertyDescriptor(current); in OrdinaryDefineOwnProperty()
1025 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in OrdinaryDefineOwnProperty()
1032 ObjectOperator op(thread, objValue, index, OperatorType::OWN); in OrdinaryDefineOwnProperty() local
1036 op.ToPropertyDescriptor(current); in OrdinaryDefineOwnProperty()
1037 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in OrdinaryDefineOwnProperty()
1041 bool JSObject::ValidateAndApplyPropertyDescriptor(ObjectOperator *op, bool extensible, const Proper… in ValidateAndApplyPropertyDescriptor() argument
1050 if (!op->HasHolder()) { in ValidateAndApplyPropertyDescriptor()
1058 success = op->AddPropertyInHolder(desc.GetValue(), attr); in ValidateAndApplyPropertyDescriptor()
1061 JSThread *thread = op->GetThread(); in ValidateAndApplyPropertyDescriptor()
1070 success = op->AddPropertyInHolder(JSHandle<JSTaggedValue>::Cast(accessor), attr); in ValidateAndApplyPropertyDescriptor()
1154 if (op->HasHolder()) { in ValidateAndApplyPropertyDescriptor()
1158 return op->WriteDataPropertyInHolder(desc); in ValidateAndApplyPropertyDescriptor()
1168 ObjectOperator op; in IsCompatiblePropertyDescriptor() local
1169 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in IsCompatiblePropertyDescriptor()
1230 ObjectOperator op(thread, objValue, key); in HasProperty() local
1232 JSHandle<JSTaggedValue> holder = op.GetHolder(); in HasProperty()
1237 return op.IsFound(); in HasProperty()
1243 ObjectOperator op(thread, objValue, index); in HasProperty() local
1245 JSHandle<JSTaggedValue> holder = op.GetHolder(); in HasProperty()
1251 return op.IsFound(); in HasProperty()
1918 ObjectOperator op(thread, obj.GetTaggedValue(), globalConst->GetEnumerableString()); in ToPropertyDescriptor() local
1919 if (op.IsFound()) { in ToPropertyDescriptor()
1920 auto value = op.FastGetValue(); in ToPropertyDescriptor()
1927 ObjectOperator op(thread, obj.GetTaggedValue(), globalConst->GetConfigurableString()); in ToPropertyDescriptor() local
1928 if (op.IsFound()) { in ToPropertyDescriptor()
1929 auto value = op.FastGetValue(); in ToPropertyDescriptor()
1936 ObjectOperator op(thread, obj.GetTaggedValue(), globalConst->GetValueString()); in ToPropertyDescriptor() local
1937 if (op.IsFound()) { in ToPropertyDescriptor()
1938 JSHandle<JSTaggedValue> prop = op.FastGetValue(); in ToPropertyDescriptor()
1944 ObjectOperator op(thread, obj.GetTaggedValue(), globalConst->GetWritableString()); in ToPropertyDescriptor() local
1945 if (op.IsFound()) { in ToPropertyDescriptor()
1946 auto value = op.FastGetValue(); in ToPropertyDescriptor()
1953 ObjectOperator op(thread, obj.GetTaggedValue(), globalConst->GetGetString()); in ToPropertyDescriptor() local
1954 if (op.IsFound()) { in ToPropertyDescriptor()
1955 JSHandle<JSTaggedValue> getter = op.FastGetValue(); in ToPropertyDescriptor()
1965 ObjectOperator op(thread, obj.GetTaggedValue(), globalConst->GetSetString()); in ToPropertyDescriptor() local
1966 if (op.IsFound()) { in ToPropertyDescriptor()
1967 JSHandle<JSTaggedValue> setter = op.FastGetValue(); in ToPropertyDescriptor()
2104 ObjectOperator op(thread, obj, key, OperatorType::OWN); in DefineSetter() local
2105 ASSERT(op.IsFound()); in DefineSetter()
2106 op.DefineSetter(value); in DefineSetter()
2114 ObjectOperator op(thread, obj, key, OperatorType::OWN); in DefineGetter() local
2115 ASSERT(op.IsFound()); in DefineGetter()
2116 op.DefineGetter(value); in DefineGetter()
2187 ObjectOperator op(thread, obj, key, OperatorType::OWN); in AddAccessor() local
2188 ASSERT(!op.IsFound()); in AddAccessor()
2189 op.AddProperty(JSHandle<JSObject>::Cast(obj), JSHandle<JSTaggedValue>(value), attr); in AddAccessor()