Lines Matching full:obj
60 const TaggedObject *obj = this; in GetCallTarget() local
61 ASSERT(JSTaggedValue(obj).IsJSFunctionBase() || JSTaggedValue(obj).IsJSProxy()); in GetCallTarget()
64 if (JSTaggedValue(obj).IsJSFunctionBase()) { in GetCallTarget()
65 value = JSFunctionBase::ConstCast(obj)->GetMethod(); in GetCallTarget()
67 value = JSProxy::ConstCast(obj)->GetMethod(); in GetCallTarget()
72 …<TaggedArray> JSObject::GrowElementsCapacity(const JSThread *thread, const JSHandle<JSObject> &obj, in GrowElementsCapacity() argument
77 JSHandle<TaggedArray> oldElements(thread, obj->GetElements()); in GrowElementsCapacity()
81 obj->SetElements(thread, newElements); in GrowElementsCapacity()
180 // trim in-obj properties space in TransitionToDictionary()
191 void JSObject::ElementsToDictionary(const JSThread *thread, JSHandle<JSObject> obj) in ElementsToDictionary() argument
193 JSHandle<TaggedArray> elements(thread, obj->GetElements()); in ElementsToDictionary()
194 ASSERT(!obj->GetJSHClass()->IsDictionaryElement()); in ElementsToDictionary()
210 obj->SetElements(thread, dict); in ElementsToDictionary()
212 JSHClass::TransitionElementsToDictionary(thread, obj); in ElementsToDictionary()
272 void JSObject::DeletePropertyInternal(JSThread *thread, const JSHandle<JSObject> &obj, in DeletePropertyInternal() argument
275 JSHandle<TaggedArray> array(thread, obj->GetProperties()); in DeletePropertyInternal()
277 if (obj->IsJSGlobalObject()) { in DeletePropertyInternal()
278 JSHandle<GlobalDictionary> dictHandle(thread, obj->GetProperties()); in DeletePropertyInternal()
280 obj->SetProperties(thread, newDict); in DeletePropertyInternal()
285 if (obj->GetJSHClass()->IsTS()) { in DeletePropertyInternal()
286 obj->SetPropertyInlinedProps(thread, index, JSTaggedValue::Hole()); in DeletePropertyInternal()
289 JSHandle<NameDictionary> dictHandle(TransitionToDictionary(thread, obj)); in DeletePropertyInternal()
293 obj->SetProperties(thread, newDict); in DeletePropertyInternal()
299 obj->SetProperties(thread, newDict); in DeletePropertyInternal()
302 void JSObject::GetAllKeys(const JSThread *thread, const JSHandle<JSObject> &obj, int offset, in GetAllKeys() argument
306 TaggedArray *array = TaggedArray::Cast(obj->GetProperties().GetTaggedObject()); in GetAllKeys()
308 int end = static_cast<int>(obj->GetJSHClass()->NumberOfProps()); in GetAllKeys()
310 LayoutInfo::Cast(obj->GetJSHClass()->GetLayout().GetTaggedObject()) in GetAllKeys()
311 ->GetAllKeys(thread, end, offset, *keyArray, obj); in GetAllKeys()
316 if (obj->IsJSGlobalObject()) { in GetAllKeys()
321 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); in GetAllKeys()
326 void JSObject::GetAllKeys(const JSHandle<JSObject> &obj, std::vector<JSTaggedValue> &keyVector) in GetAllKeys() argument
329 ASSERT_PRINT(!obj->IsJSGlobalObject(), "Do not support get key of JSGlobal Object"); in GetAllKeys()
330 TaggedArray *array = TaggedArray::Cast(obj->GetProperties().GetTaggedObject()); in GetAllKeys()
332 int end = static_cast<int>(obj->GetJSHClass()->NumberOfProps()); in GetAllKeys()
334 …LayoutInfo::Cast(obj->GetJSHClass()->GetLayout().GetTaggedObject())->GetAllKeys(end, keyVector, ob… in GetAllKeys()
337 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); in GetAllKeys()
342 …dArray> JSObject::GetAllEnumKeys(const JSThread *thread, const JSHandle<JSObject> &obj, int offset, in GetAllEnumKeys() argument
346 if (obj->IsJSGlobalObject()) { in GetAllEnumKeys()
348 GlobalDictionary *dict = GlobalDictionary::Cast(obj->GetProperties().GetTaggedObject()); in GetAllEnumKeys()
353 TaggedArray *array = TaggedArray::Cast(obj->GetProperties().GetTaggedObject()); in GetAllEnumKeys()
355 JSHClass *jsHclass = obj->GetJSHClass(); in GetAllEnumKeys()
366 ->GetAllEnumKeys(thread, end, offset, *keyArray, keys, obj); in GetAllEnumKeys()
375 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); in GetAllEnumKeys()
380 void JSObject::GetAllElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset, in GetAllElementKeys() argument
385 if (obj->IsJSPrimitiveRef() && JSPrimitiveRef::Cast(*obj)->IsString()) { in GetAllElementKeys()
386 … elementIndex = JSPrimitiveRef::Cast(*obj)->GetStringLength() + static_cast<uint32_t>(offset); in GetAllElementKeys()
393 JSHandle<TaggedArray> elements(thread, obj->GetElements()); in GetAllElementKeys()
407 void JSObject::GetALLElementKeysIntoVector(const JSThread *thread, const JSHandle<JSObject> &obj, in GetALLElementKeysIntoVector() argument
410 JSHandle<TaggedArray> elements(thread, obj->GetElements()); in GetALLElementKeysIntoVector()
424 JSHandle<TaggedArray> JSObject::GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj,… in GetEnumElementKeys() argument
432 if (obj->IsJSPrimitiveRef() && JSPrimitiveRef::Cast(*obj)->IsString()) { in GetEnumElementKeys()
433 elementIndex = JSPrimitiveRef::Cast(*obj)->GetStringLength(); in GetEnumElementKeys()
443 JSHandle<TaggedArray> arr(thread, obj->GetElements()); in GetEnumElementKeys()
509 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JST… in SetProperty() argument
512 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in SetProperty()
515 // 2 ~ 4 findProperty in Receiver, Obj and its parents in SetProperty()
516 ObjectOperator op(thread, obj, receiver, key); in SetProperty()
520 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagged… in SetProperty() argument
523 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid JSObject"); in SetProperty()
526 ObjectOperator op(thread, obj, key); in SetProperty()
530 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JST… in SetProperty() argument
533 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in SetProperty()
536 // 2 ~ 4 findProperty in Receiver, Obj and its parents in SetProperty()
537 ObjectOperator op(thread, obj, key); in SetProperty()
541 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index, in SetProperty() argument
544 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in SetProperty()
546 ObjectOperator op(thread, obj, index); in SetProperty()
709 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in GetProperty() argument
712 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in GetProperty()
715 ObjectOperator op(thread, obj, receiver, key); in GetProperty()
719 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSObject> &obj, in GetProperty() argument
722 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid JSObject"); in GetProperty()
725 ObjectOperator op(thread, obj, key); in GetProperty()
729 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in GetProperty() argument
732 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in GetProperty()
735 ObjectOperator op(thread, obj, key); in GetProperty()
739 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_… in GetProperty() argument
741 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in GetProperty()
743 ObjectOperator op(thread, obj, index); in GetProperty()
772 // 4c. If obj and parent is null, return undefined. in GetProperty()
790 bool JSObject::DeleteProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTag… in DeleteProperty() argument
796 ObjectOperator op(thread, JSHandle<JSTaggedValue>(obj), key, OperatorType::OWN); in DeleteProperty()
813 bool JSObject::GetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTag… in GetOwnProperty() argument
816 return OrdinaryGetOwnProperty(thread, obj, key, desc); in GetOwnProperty()
839 bool JSObject::OrdinaryGetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, in OrdinaryGetOwnProperty() argument
843 ObjectOperator op(thread, JSHandle<JSTaggedValue>(obj), key, OperatorType::OWN); in OrdinaryGetOwnProperty()
851 if (desc.HasValue() && obj->IsJSGlobalObject()) { in OrdinaryGetOwnProperty()
860 bool JSObject::DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JS… in DefineOwnProperty() argument
863 return OrdinaryDefineOwnProperty(thread, obj, key, desc); in DefineOwnProperty()
866 bool JSObject::DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index, in DefineOwnProperty() argument
869 return OrdinaryDefineOwnProperty(thread, obj, index, desc); in DefineOwnProperty()
873 bool JSObject::OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, in OrdinaryDefineOwnProperty() argument
878 JSHandle<JSTaggedValue> objValue(obj); in OrdinaryDefineOwnProperty()
881 bool extensible = obj->IsExtensible(); in OrdinaryDefineOwnProperty()
888 bool JSObject::OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t … in OrdinaryDefineOwnProperty() argument
891 JSHandle<JSTaggedValue> objValue(obj); in OrdinaryDefineOwnProperty()
894 bool extensible = obj->IsExtensible(); in OrdinaryDefineOwnProperty()
1032 JSTaggedValue JSObject::GetPrototype(const JSHandle<JSObject> &obj) in GetPrototype() argument
1034 JSHClass *hclass = obj->GetJSHClass(); in GetPrototype()
1038 bool JSObject::SetPrototype(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagge… in SetPrototype() argument
1041 JSTaggedValue current = JSObject::GetPrototype(obj); in SetPrototype()
1045 if (!obj->IsExtensible()) { in SetPrototype()
1053 … } else if (JSTaggedValue::SameValue(tempProtoHandle.GetTaggedValue(), obj.GetTaggedValue())) { in SetPrototype()
1063 JSHandle<JSHClass> hclass(thread, obj->GetJSHClass()); in SetPrototype()
1066 obj->SetClass(newClass); in SetPrototype()
1067 thread->NotifyStableArrayElementsGuardians(obj); in SetPrototype()
1071 bool JSObject::HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagged… in HasProperty() argument
1074 JSHandle<JSTaggedValue> objValue(obj); in HasProperty()
1085 bool JSObject::HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index) in HasProperty() argument
1087 JSHandle<JSTaggedValue> objValue(obj); in HasProperty()
1099 bool JSObject::PreventExtensions(JSThread *thread, const JSHandle<JSObject> &obj) in PreventExtensions() argument
1101 if (obj->IsExtensible()) { in PreventExtensions()
1102 JSHandle<JSHClass> jshclass(thread, obj->GetJSHClass()); in PreventExtensions()
1104 obj->SetClass(newHclass); in PreventExtensions()
1111 JSHandle<TaggedArray> JSObject::GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj) in GetOwnPropertyKeys() argument
1114 uint32_t numOfElements = obj->GetNumberOfElements(); in GetOwnPropertyKeys()
1115 uint32_t keyLen = numOfElements + obj->GetNumberOfKeys(); in GetOwnPropertyKeys()
1120 GetAllElementKeys(thread, obj, 0, keyArray); in GetOwnPropertyKeys()
1122 GetAllKeys(thread, obj, static_cast<int32_t>(numOfElements), keyArray); in GetOwnPropertyKeys()
1136 bool JSObject::CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<J… in CreateDataProperty() argument
1139 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataProperty()
1141 …auto result = ObjectFastOperator::SetPropertyByValue<true>(thread, obj.GetTaggedValue(), key.GetTa… in CreateDataProperty()
1147 return JSTaggedValue::DefineOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(obj), key, desc); in CreateDataProperty()
1150 bool JSObject::CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index, in CreateDataProperty() argument
1153 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataProperty()
1155 …ObjectFastOperator::SetPropertyByIndex<true>(thread, obj.GetTaggedValue(), index, value.GetTaggedV… in CreateDataProperty()
1160 return DefineOwnProperty(thread, obj, index, desc); in CreateDataProperty()
1164 bool JSObject::CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, in CreateDataPropertyOrThrow() argument
1167 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataPropertyOrThrow()
1170 bool success = CreateDataProperty(thread, obj, key, value); in CreateDataPropertyOrThrow()
1177 bool JSObject::CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t … in CreateDataPropertyOrThrow() argument
1180 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataPropertyOrThrow()
1182 bool success = CreateDataProperty(thread, obj, index, value); in CreateDataPropertyOrThrow()
1189 bool JSObject::CreateMethodProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle… in CreateMethodProperty() argument
1192 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateMethodProperty()
1196 return DefineOwnProperty(thread, obj, key, desc); in CreateMethodProperty()
1200 JSHandle<JSTaggedValue> JSObject::GetMethod(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in GetMethod() argument
1203 JSHandle<JSTaggedValue> func = JSTaggedValue::GetProperty(thread, obj, key).GetValue(); in GetMethod()
1210 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not Callable", func); in GetMethod()
1216 bool JSObject::SetIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel le… in SetIntegrityLevel() argument
1218 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in SetIntegrityLevel()
1222 bool status = PreventExtensions(thread, obj); in SetIntegrityLevel()
1228 JSHandle<TaggedArray> jshandleKeys = GetOwnPropertyKeys(thread, obj); in SetIntegrityLevel()
1247 … JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), handleKey, descNoConf); in SetIntegrityLevel()
1261 bool curDescStatus = GetOwnProperty(thread, obj, handleKey, currentDesc); in SetIntegrityLevel()
1266 … JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), handleKey, desc); in SetIntegrityLevel()
1275 bool JSObject::TestIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel l… in TestIntegrityLevel() argument
1277 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in TestIntegrityLevel()
1281 bool status = obj->IsExtensible(); in TestIntegrityLevel()
1287 JSHandle<TaggedArray> jshandleKeys = GetOwnPropertyKeys(thread, obj); in TestIntegrityLevel()
1299 bool curDescStatus = GetOwnProperty(thread, obj, handleKey, currentDesc); in TestIntegrityLevel()
1314 JSHandle<TaggedArray> JSObject::EnumerableOwnNames(JSThread *thread, const JSHandle<JSObject> &obj) in EnumerableOwnNames() argument
1316 ASSERT_PRINT(obj->IsECMAObject(), "obj is not object"); in EnumerableOwnNames()
1318 JSHandle<JSTaggedValue> tagObj(obj); in EnumerableOwnNames()
1323 …auto keyElementPair = GetOwnEnumerableNamesInFastMode(thread, obj, ©LengthOfKeys, ©LengthO… in EnumerableOwnNames()
1350 bool status = JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>(obj), in EnumerableOwnNames()
1364 void JSObject::EnumerableOwnPropertyNamesHelper(JSThread *thread, const JSHandle<JSObject> &obj, in EnumerableOwnPropertyNamesHelper() argument
1368 JSHandle<JSHClass> objClass(thread, obj->GetJSHClass()); in EnumerableOwnPropertyNamesHelper()
1377 …value = ObjectFastOperator::GetPropertyByValue<true>(thread, obj.GetTaggedValue(), key.GetTaggedVa… in EnumerableOwnPropertyNamesHelper()
1382 … bool status = JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>(obj), key, desc); in EnumerableOwnPropertyNamesHelper()
1390 …ationResult opResult = JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(obj), key); in EnumerableOwnPropertyNamesHelper()
1396 fastMode = fastMode ? CheckHClassHit(obj, objClass) : fastMode; in EnumerableOwnPropertyNamesHelper()
1400 …<TaggedArray> JSObject::EnumerableOwnPropertyNames(JSThread *thread, const JSHandle<JSObject> &obj, in EnumerableOwnPropertyNames() argument
1404 ASSERT_PRINT(obj->IsECMAObject(), "obj is not object"); in EnumerableOwnPropertyNames()
1407 JSHandle<JSTaggedValue> tagObj(obj); in EnumerableOwnPropertyNames()
1414 …auto keyElementPair = GetOwnEnumerableNamesInFastMode(thread, obj, ©LengthOfKeys, ©LengthO… in EnumerableOwnPropertyNames()
1419 … EnumerableOwnPropertyNamesHelper(thread, obj, elementArray, properties, index, fastMode, kind); in EnumerableOwnPropertyNames()
1422 … EnumerableOwnPropertyNamesHelper(thread, obj, keyArray, properties, index, fastMode, kind); in EnumerableOwnPropertyNames()
1455 bool status = JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>(obj), in EnumerableOwnPropertyNames()
1463 JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(obj), key); in EnumerableOwnPropertyNames()
1481 // 1. Assert: obj is a callable object. in GetFunctionRealm()
1483 // 2. If obj has a [[Realm]] internal slot, then return obj’s [[Realm]] internal slot. in GetFunctionRealm()
1484 // 3. If obj is a Bound Function exotic object, then in GetFunctionRealm()
1486 // a. Let target be obj’s [[BoundTargetFunction]] internal slot. in GetFunctionRealm()
1491 // 4. If obj is a Proxy exotic object, then in GetFunctionRealm()
1493 …// a. If the value of the [[ProxyHandler]] internal slot of obj is null, throw a TypeError excepti… in GetFunctionRealm()
1498 // b. Let proxyTarget be the value of obj’s [[ProxyTarget]] internal slot. in GetFunctionRealm()
1556 // 2. Let obj be ObjectCreate(%ObjectPrototype%). in FromPropertyDescriptor()
1562 …// 4. If Desc has a [[Value]] field, then Perform CreateDataProperty(obj, "value", Desc.[[Value]]). in FromPropertyDescriptor()
1568 …// 5. If Desc has a [[Writable]] field, then Perform CreateDataProperty(obj, "writable", Desc.[[Wr… in FromPropertyDescriptor()
1575 // 6. If Desc has a [[Get]] field, then Perform CreateDataProperty(obj, "get", Desc.[[Get]]). in FromPropertyDescriptor()
1581 // 7. If Desc has a [[Set]] field, then Perform CreateDataProperty(obj, "set", Desc.[[Set]]) in FromPropertyDescriptor()
1587 // 8. If Desc has an [[Enumerable]] field, then Perform CreateDataProperty(obj, "enumerable", in FromPropertyDescriptor()
1595 … // 9. If Desc has a [[Configurable]] field, then Perform CreateDataProperty(obj , "configurable", in FromPropertyDescriptor()
1606 bool JSObject::ToPropertyDescriptorFast(JSThread *thread, const JSHandle<JSTaggedValue> &obj, Prope… in ToPropertyDescriptorFast() argument
1608 auto *hclass = obj->GetTaggedObject()->GetClass(); in ToPropertyDescriptorFast()
1633 auto value = JSObject::Cast(obj->GetTaggedObject())->GetProperty(hclass, attr); in ToPropertyDescriptorFast()
1670 // ecma6.0 6.2.4.5 ToPropertyDescriptor ( Obj )
1671 void JSObject::ToPropertyDescriptor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, PropertyD… in ToPropertyDescriptor() argument
1673 if (!obj->IsECMAObject()) { in ToPropertyDescriptor()
1674 // 2. If Type(Obj) is not Object, throw a TypeError exception. in ToPropertyDescriptor()
1675 THROW_TYPE_ERROR(thread, "ToPropertyDescriptor error obj is not Object"); in ToPropertyDescriptor()
1678 if (ToPropertyDescriptorFast(thread, obj, desc)) { in ToPropertyDescriptor()
1683 // 4. Let hasEnumerable be HasProperty(Obj, "enumerable") in ToPropertyDescriptor()
1686 ObjectOperator op(thread, obj.GetTaggedValue(), enumerableStr.GetTaggedValue()); in ToPropertyDescriptor()
1693 // 7. Let hasConfigurable be HasProperty(Obj, "configurable"). in ToPropertyDescriptor()
1696 ObjectOperator op(thread, obj.GetTaggedValue(), configurableStr.GetTaggedValue()); in ToPropertyDescriptor()
1703 // 10. Let hasValue be HasProperty(Obj, "value"). in ToPropertyDescriptor()
1706 ObjectOperator op(thread, obj.GetTaggedValue(), valueStr.GetTaggedValue()); in ToPropertyDescriptor()
1712 // 13. Let hasWritable be HasProperty(Obj, "writable"). in ToPropertyDescriptor()
1715 ObjectOperator op(thread, obj.GetTaggedValue(), writableStr.GetTaggedValue()); in ToPropertyDescriptor()
1722 // 16. Let hasGet be HasProperty(Obj, "get"). in ToPropertyDescriptor()
1725 ObjectOperator op(thread, obj.GetTaggedValue(), getStr.GetTaggedValue()); in ToPropertyDescriptor()
1735 // 19. Let hasSet be HasProperty(Obj, "set"). in ToPropertyDescriptor()
1738 ObjectOperator op(thread, obj.GetTaggedValue(), setStr.GetTaggedValue()); in ToPropertyDescriptor()
1758 …Handle<JSTaggedValue> JSObject::SpeciesConstructor(JSThread *thread, const JSHandle<JSObject> &obj, in SpeciesConstructor() argument
1764 ASSERT_PRINT(obj->IsECMAObject(), "obj must be js object"); in SpeciesConstructor()
1768 …ndle<JSTaggedValue> objConstructor(JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>(obj), in SpeciesConstructor()
1833 …Iterator> JSObject::EnumerateObjectProperties(JSThread *thread, const JSHandle<JSTaggedValue> &obj) in EnumerateObjectProperties() argument
1840 if (obj->IsString()) { in EnumerateObjectProperties()
1841 object = JSHandle<JSTaggedValue>::Cast(JSPrimitiveRef::StringCreate(thread, obj)); in EnumerateObjectProperties()
1843 object = JSTaggedValue::ToPrototypeOrObj(thread, obj); in EnumerateObjectProperties()
1849 void JSObject::DefinePropertyByLiteral(JSThread *thread, const JSHandle<JSObject> &obj, in DefinePropertyByLiteral() argument
1853 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in DefinePropertyByLiteral()
1864 AddElementInternal(thread, obj, index, value, attr); in DefinePropertyByLiteral()
1870 void JSObject::DefineSetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JS… in DefineSetter() argument
1873 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in DefineSetter()
1875 ObjectOperator op(thread, obj, key, OperatorType::OWN); in DefineSetter()
1880 void JSObject::DefineGetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JS… in DefineGetter() argument
1883 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in DefineGetter()
1885 ObjectOperator op(thread, obj, key, OperatorType::OWN); in DefineGetter()
1902 JSHandle<JSObject> obj = factory->NewOldSpaceObjLiteralByHClass(properties, propsLen); in CreateObjectFromProperties() local
1903 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateObjectFromProperties()
1906 obj->SetPropertyInlinedProps(thread, i, properties->Get(i * 2 + 1)); in CreateObjectFromProperties()
1908 return obj; in CreateObjectFromProperties()
1910 JSHandle<JSObject> obj = factory->NewEmptyJSObject(); in CreateObjectFromProperties() local
1911 JSHClass::TransitionToDictionary(thread, obj); in CreateObjectFromProperties()
1926 obj->SetProperties(thread, dict); in CreateObjectFromProperties()
1927 return obj; in CreateObjectFromProperties()
1931 void JSObject::AddAccessor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JST… in AddAccessor() argument
1934 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in AddAccessor()
1937 ObjectOperator op(thread, obj, key, OperatorType::OWN); in AddAccessor()
1939 op.AddProperty(JSHandle<JSObject>::Cast(obj), JSHandle<JSTaggedValue>(value), attr); in AddAccessor()
2067 JSHandle<ECMAObject> obj(thread, this); in SetNativePointerFieldCount() local
2078 … Barriers::SetObject<true>(thread, *obj, HASH_OFFSET, newArray.GetTaggedValue().GetRawData()); in SetNativePointerFieldCount()
2086 … Barriers::SetObject<true>(thread, *obj, HASH_OFFSET, newArray.GetTaggedValue().GetRawData()); in SetNativePointerFieldCount()
2094 … Barriers::SetObject<true>(thread, *obj, HASH_OFFSET, newArray.GetTaggedValue().GetRawData()); in SetNativePointerFieldCount()