Lines Matching full:obj
61 const TaggedObject *obj = this; in GetCallTarget() local
62 ASSERT(JSTaggedValue(obj).IsJSFunctionBase() || JSTaggedValue(obj).IsJSProxy()); in GetCallTarget()
63 if (JSTaggedValue(obj).IsJSFunctionBase()) { in GetCallTarget()
64 return JSFunctionBase::ConstCast(obj)->GetMethod(); in GetCallTarget()
66 return JSProxy::ConstCast(obj)->GetMethod(); in GetCallTarget()
69 …<TaggedArray> JSObject::GrowElementsCapacity(const JSThread *thread, const JSHandle<JSObject> &obj, in GrowElementsCapacity() argument
74 JSHandle<TaggedArray> oldElements(thread, obj->GetElements()); in GrowElementsCapacity()
78 obj->SetElements(thread, newElements); in GrowElementsCapacity()
136 // trim in-obj properties space in TransitionToDictionary()
147 void JSObject::ElementsToDictionary(const JSThread *thread, JSHandle<JSObject> obj) in ElementsToDictionary() argument
149 JSHandle<TaggedArray> elements(thread, obj->GetElements()); in ElementsToDictionary()
150 ASSERT(!obj->GetJSHClass()->IsDictionaryElement()); in ElementsToDictionary()
166 obj->SetElements(thread, dict); in ElementsToDictionary()
168 JSHClass::TransitionElementsToDictionary(thread, obj); in ElementsToDictionary()
228 void JSObject::DeletePropertyInternal(JSThread *thread, const JSHandle<JSObject> &obj, in DeletePropertyInternal() argument
231 JSHandle<TaggedArray> array(thread, obj->GetProperties()); in DeletePropertyInternal()
233 if (obj->IsJSGlobalObject()) { in DeletePropertyInternal()
234 JSHandle<GlobalDictionary> dictHandle(thread, obj->GetProperties()); in DeletePropertyInternal()
236 obj->SetProperties(thread, newDict); in DeletePropertyInternal()
241 JSHandle<NameDictionary> dictHandle(TransitionToDictionary(thread, obj)); in DeletePropertyInternal()
245 obj->SetProperties(thread, newDict); in DeletePropertyInternal()
251 obj->SetProperties(thread, newDict); in DeletePropertyInternal()
254 void JSObject::GetAllKeys(const JSThread *thread, const JSHandle<JSObject> &obj, int offset, in GetAllKeys() argument
258 TaggedArray *array = TaggedArray::Cast(obj->GetProperties().GetTaggedObject()); in GetAllKeys()
260 int end = obj->GetJSHClass()->NumberOfProps(); in GetAllKeys()
262 LayoutInfo::Cast(obj->GetJSHClass()->GetLayout().GetTaggedObject()) in GetAllKeys()
268 if (obj->IsJSGlobalObject()) { in GetAllKeys()
273 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); in GetAllKeys()
278 void JSObject::GetAllKeys(const JSThread *thread, const JSHandle<JSObject> &obj, in GetAllKeys() argument
282 ASSERT_PRINT(!obj->IsJSGlobalObject(), "Do not support get key of JSGlobal Object"); in GetAllKeys()
283 TaggedArray *array = TaggedArray::Cast(obj->GetProperties().GetTaggedObject()); in GetAllKeys()
285 int end = obj->GetJSHClass()->NumberOfProps(); in GetAllKeys()
287 LayoutInfo::Cast(obj->GetJSHClass()->GetLayout().GetTaggedObject()) in GetAllKeys()
291 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); in GetAllKeys()
296 …dArray> JSObject::GetAllEnumKeys(const JSThread *thread, const JSHandle<JSObject> &obj, int offset, in GetAllEnumKeys() argument
300 if (obj->IsJSGlobalObject()) { in GetAllEnumKeys()
302 GlobalDictionary *dict = GlobalDictionary::Cast(obj->GetProperties().GetTaggedObject()); in GetAllEnumKeys()
307 TaggedArray *array = TaggedArray::Cast(obj->GetProperties().GetTaggedObject()); in GetAllEnumKeys()
309 JSHClass *jsHclass = obj->GetJSHClass(); in GetAllEnumKeys()
329 NameDictionary *dict = NameDictionary::Cast(obj->GetProperties().GetTaggedObject()); in GetAllEnumKeys()
334 void JSObject::GetAllElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset, in GetAllElementKeys() argument
339 if (obj->IsJSPrimitiveRef() && JSPrimitiveRef::Cast(*obj)->IsString()) { in GetAllElementKeys()
340 elementIndex = JSPrimitiveRef::Cast(*obj)->GetStringLength() + offset; in GetAllElementKeys()
347 JSHandle<TaggedArray> elements(thread, obj->GetElements()); in GetAllElementKeys()
361 void JSObject::GetALLElementKeysIntoVector(const JSThread *thread, const JSHandle<JSObject> &obj, in GetALLElementKeysIntoVector() argument
364 JSHandle<TaggedArray> elements(thread, obj->GetElements()); in GetALLElementKeysIntoVector()
378 JSHandle<TaggedArray> JSObject::GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj,… in GetEnumElementKeys() argument
386 if (obj->IsJSPrimitiveRef() && JSPrimitiveRef::Cast(*obj)->IsString()) { in GetEnumElementKeys()
387 elementIndex = JSPrimitiveRef::Cast(*obj)->GetStringLength(); in GetEnumElementKeys()
397 JSHandle<TaggedArray> arr(thread, obj->GetElements()); in GetEnumElementKeys()
464 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JST… in SetProperty() argument
467 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in SetProperty()
470 // 2 ~ 4 findProperty in Receiver, Obj and its parents in SetProperty()
471 ObjectOperator op(thread, obj, receiver, key); in SetProperty()
475 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagged… in SetProperty() argument
478 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid JSObject"); in SetProperty()
481 ObjectOperator op(thread, obj, key); in SetProperty()
485 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JST… in SetProperty() argument
488 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in SetProperty()
491 // 2 ~ 4 findProperty in Receiver, Obj and its parents in SetProperty()
492 ObjectOperator op(thread, obj, key); in SetProperty()
496 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index, in SetProperty() argument
499 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in SetProperty()
501 ObjectOperator op(thread, obj, index); in SetProperty()
662 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in GetProperty() argument
665 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in GetProperty()
668 ObjectOperator op(thread, obj, receiver, key); in GetProperty()
672 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSObject> &obj, in GetProperty() argument
675 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid JSObject"); in GetProperty()
678 ObjectOperator op(thread, obj, key); in GetProperty()
682 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in GetProperty() argument
685 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in GetProperty()
688 ObjectOperator op(thread, obj, key); in GetProperty()
692 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_… in GetProperty() argument
694 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in GetProperty()
696 ObjectOperator op(thread, obj, index); in GetProperty()
726 // 4c. If obj and parent is null, return undefined. in GetProperty()
744 bool JSObject::DeleteProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTag… in DeleteProperty() argument
750 ObjectOperator op(thread, JSHandle<JSTaggedValue>(obj), key, OperatorType::OWN); in DeleteProperty()
767 bool JSObject::GetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTag… in GetOwnProperty() argument
770 return OrdinaryGetOwnProperty(thread, obj, key, desc); in GetOwnProperty()
793 bool JSObject::OrdinaryGetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, in OrdinaryGetOwnProperty() argument
797 ObjectOperator op(thread, JSHandle<JSTaggedValue>(obj), key, OperatorType::OWN); in OrdinaryGetOwnProperty()
805 if (desc.HasValue() && obj->IsJSGlobalObject()) { in OrdinaryGetOwnProperty()
814 bool JSObject::DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JS… in DefineOwnProperty() argument
817 return OrdinaryDefineOwnProperty(thread, obj, key, desc); in DefineOwnProperty()
820 bool JSObject::DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index, in DefineOwnProperty() argument
823 return OrdinaryDefineOwnProperty(thread, obj, index, desc); in DefineOwnProperty()
827 bool JSObject::OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, in OrdinaryDefineOwnProperty() argument
832 JSHandle<JSTaggedValue> objValue(obj); in OrdinaryDefineOwnProperty()
835 bool extensible = obj->IsExtensible(); in OrdinaryDefineOwnProperty()
842 bool JSObject::OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t … in OrdinaryDefineOwnProperty() argument
845 JSHandle<JSTaggedValue> objValue(obj); in OrdinaryDefineOwnProperty()
848 bool extensible = obj->IsExtensible(); in OrdinaryDefineOwnProperty()
988 JSHandle<JSTaggedValue> obj(thread, JSTaggedValue(this)); in GetPrototype() local
989 if (obj->IsJSProxy()) { in GetPrototype()
990 return JSProxy::GetPrototype(thread, JSHandle<JSProxy>(obj)); in GetPrototype()
996 bool JSObject::SetPrototype(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagge… in SetPrototype() argument
999 JSTaggedValue current = obj->GetPrototype(thread); in SetPrototype()
1003 if (!obj->IsExtensible()) { in SetPrototype()
1011 } else if (JSTaggedValue::SameValue(tempProto, obj.GetTaggedValue())) { in SetPrototype()
1021 JSHandle<JSHClass> dynclass(thread, obj->GetJSHClass()); in SetPrototype()
1024 obj->SetClass(newDynclass); in SetPrototype()
1025 thread->NotifyStableArrayElementsGuardians(obj); in SetPrototype()
1029 bool JSObject::HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagged… in HasProperty() argument
1032 JSHandle<JSTaggedValue> objValue(obj); in HasProperty()
1043 bool JSObject::HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index) in HasProperty() argument
1045 JSHandle<JSTaggedValue> objValue(obj); in HasProperty()
1057 bool JSObject::PreventExtensions(JSThread *thread, const JSHandle<JSObject> &obj) in PreventExtensions() argument
1059 if (obj->IsExtensible()) { in PreventExtensions()
1060 JSHandle<JSHClass> jshclass(thread, obj->GetJSHClass()); in PreventExtensions()
1062 obj->SetClass(newHclass); in PreventExtensions()
1069 JSHandle<TaggedArray> JSObject::GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj) in GetOwnPropertyKeys() argument
1072 uint32_t numOfElements = obj->GetNumberOfElements(); in GetOwnPropertyKeys()
1073 uint32_t keyLen = numOfElements + obj->GetNumberOfKeys(); in GetOwnPropertyKeys()
1078 GetAllElementKeys(thread, obj, 0, keyArray); in GetOwnPropertyKeys()
1080 GetAllKeys(thread, obj, static_cast<int32_t>(numOfElements), keyArray); in GetOwnPropertyKeys()
1096 bool JSObject::CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<J… in CreateDataProperty() argument
1099 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataProperty()
1101 …auto result = FastRuntimeStub::SetPropertyByValue<true>(thread, obj.GetTaggedValue(), key.GetTagge… in CreateDataProperty()
1107 return JSTaggedValue::DefineOwnProperty(thread, JSHandle<JSTaggedValue>::Cast(obj), key, desc); in CreateDataProperty()
1110 bool JSObject::CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index, in CreateDataProperty() argument
1113 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataProperty()
1115 …FastRuntimeStub::SetPropertyByIndex<true>(thread, obj.GetTaggedValue(), index, value.GetTaggedValu… in CreateDataProperty()
1120 return DefineOwnProperty(thread, obj, index, desc); in CreateDataProperty()
1124 bool JSObject::CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, in CreateDataPropertyOrThrow() argument
1127 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataPropertyOrThrow()
1130 bool success = CreateDataProperty(thread, obj, key, value); in CreateDataPropertyOrThrow()
1137 bool JSObject::CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t … in CreateDataPropertyOrThrow() argument
1140 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateDataPropertyOrThrow()
1142 bool success = CreateDataProperty(thread, obj, index, value); in CreateDataPropertyOrThrow()
1149 bool JSObject::CreateMethodProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle… in CreateMethodProperty() argument
1152 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateMethodProperty()
1156 return DefineOwnProperty(thread, obj, key, desc); in CreateMethodProperty()
1160 JSHandle<JSTaggedValue> JSObject::GetMethod(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in GetMethod() argument
1163 …JSTaggedValue func = FastRuntimeStub::FastGetProperty(thread, obj.GetTaggedValue(), key.GetTaggedV… in GetMethod()
1170 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not Callable", result); in GetMethod()
1176 bool JSObject::SetIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel le… in SetIntegrityLevel() argument
1178 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in SetIntegrityLevel()
1182 bool status = PreventExtensions(thread, obj); in SetIntegrityLevel()
1188 JSHandle<TaggedArray> jshandleKeys = GetOwnPropertyKeys(thread, obj); in SetIntegrityLevel()
1207 … JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), handleKey, descNoConf); in SetIntegrityLevel()
1221 bool curDescStatus = GetOwnProperty(thread, obj, handleKey, currentDesc); in SetIntegrityLevel()
1226 … JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), handleKey, desc); in SetIntegrityLevel()
1235 bool JSObject::TestIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel l… in TestIntegrityLevel() argument
1237 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in TestIntegrityLevel()
1241 bool status = obj->IsExtensible(); in TestIntegrityLevel()
1247 JSHandle<TaggedArray> jshandleKeys = GetOwnPropertyKeys(thread, obj); in TestIntegrityLevel()
1259 bool curDescStatus = GetOwnProperty(thread, obj, handleKey, currentDesc); in TestIntegrityLevel()
1274 JSHandle<TaggedArray> JSObject::EnumerableOwnNames(JSThread *thread, const JSHandle<JSObject> &obj) in EnumerableOwnNames() argument
1276 ASSERT_PRINT(obj->IsECMAObject(), "obj is not object"); in EnumerableOwnNames()
1279 JSHandle<JSTaggedValue> tagObj(obj); in EnumerableOwnNames()
1283 uint32_t numOfKeys = obj->GetNumberOfKeys(); in EnumerableOwnNames()
1284 uint32_t numOfElements = obj->GetNumberOfElements(); in EnumerableOwnNames()
1287 elementArray = JSObject::GetEnumElementKeys(thread, obj, 0, numOfElements, ©Length); in EnumerableOwnNames()
1292 keyArray = JSObject::GetAllEnumKeys(thread, obj, 0, numOfKeys, ©Length); in EnumerableOwnNames()
1317 bool status = JSTaggedValue::GetOwnProperty(thread, JSHandle<JSTaggedValue>(obj), in EnumerableOwnNames()
1331 …<TaggedArray> JSObject::EnumerableOwnPropertyNames(JSThread *thread, const JSHandle<JSObject> &obj, in EnumerableOwnPropertyNames() argument
1335 ASSERT_PRINT(obj->IsECMAObject(), "obj is not object"); in EnumerableOwnPropertyNames()
1338 …dle<TaggedArray> ownKeys = JSTaggedValue::GetOwnPropertyKeys(thread, JSHandle<JSTaggedValue>(obj)); in EnumerableOwnPropertyNames()
1364 bool status = GetOwnProperty(thread, obj, JSHandle<JSTaggedValue>(key), desc); in EnumerableOwnPropertyNames()
1371 JSTaggedValue::GetProperty(thread, JSHandle<JSTaggedValue>::Cast(obj), key); in EnumerableOwnPropertyNames()
1394 // 1. Assert: obj is a callable object. in GetFunctionRealm()
1396 // 2. If obj has a [[Realm]] internal slot, then return obj’s [[Realm]] internal slot. in GetFunctionRealm()
1397 // 3. If obj is a Bound Function exotic object, then in GetFunctionRealm()
1399 // a. Let target be obj’s [[BoundTargetFunction]] internal slot. in GetFunctionRealm()
1404 // 4. If obj is a Proxy exotic object, then in GetFunctionRealm()
1406 …// a. If the value of the [[ProxyHandler]] internal slot of obj is null, throw a TypeError excepti… in GetFunctionRealm()
1411 // b. Let proxyTarget be the value of obj’s [[ProxyTarget]] internal slot. in GetFunctionRealm()
1467 // 2. Let obj be ObjectCreate(%ObjectPrototype%). in FromPropertyDescriptor()
1474 …// 4. If Desc has a [[Value]] field, then Perform CreateDataProperty(obj, "value", Desc.[[Value]]). in FromPropertyDescriptor()
1480 …// 5. If Desc has a [[Writable]] field, then Perform CreateDataProperty(obj, "writable", Desc.[[Wr… in FromPropertyDescriptor()
1487 // 6. If Desc has a [[Get]] field, then Perform CreateDataProperty(obj, "get", Desc.[[Get]]). in FromPropertyDescriptor()
1493 // 7. If Desc has a [[Set]] field, then Perform CreateDataProperty(obj, "set", Desc.[[Set]]) in FromPropertyDescriptor()
1499 // 8. If Desc has an [[Enumerable]] field, then Perform CreateDataProperty(obj, "enumerable", in FromPropertyDescriptor()
1507 … // 9. If Desc has a [[Configurable]] field, then Perform CreateDataProperty(obj , "configurable", in FromPropertyDescriptor()
1518 bool JSObject::ToPropertyDescriptorFast(JSThread *thread, const JSHandle<JSTaggedValue> &obj, Prope… in ToPropertyDescriptorFast() argument
1520 auto *hclass = obj->GetTaggedObject()->GetClass(); in ToPropertyDescriptorFast()
1545 auto value = JSObject::Cast(obj->GetTaggedObject())->GetProperty(hclass, attr); in ToPropertyDescriptorFast()
1582 // ecma6.0 6.2.4.5 ToPropertyDescriptor ( Obj )
1583 void JSObject::ToPropertyDescriptor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, PropertyD… in ToPropertyDescriptor() argument
1585 if (!obj->IsECMAObject()) { in ToPropertyDescriptor()
1586 // 2. If Type(Obj) is not Object, throw a TypeError exception. in ToPropertyDescriptor()
1587 THROW_TYPE_ERROR(thread, "ToPropertyDescriptor error obj is not Object"); in ToPropertyDescriptor()
1590 if (ToPropertyDescriptorFast(thread, obj, desc)) { in ToPropertyDescriptor()
1595 // 4. Let hasEnumerable be HasProperty(Obj, "enumerable") in ToPropertyDescriptor()
1598 ObjectOperator op(thread, obj.GetTaggedValue(), enumerableStr.GetTaggedValue()); in ToPropertyDescriptor()
1605 // 7. Let hasConfigurable be HasProperty(Obj, "configurable"). in ToPropertyDescriptor()
1608 ObjectOperator op(thread, obj.GetTaggedValue(), configurableStr.GetTaggedValue()); in ToPropertyDescriptor()
1615 // 10. Let hasValue be HasProperty(Obj, "value"). in ToPropertyDescriptor()
1618 ObjectOperator op(thread, obj.GetTaggedValue(), valueStr.GetTaggedValue()); in ToPropertyDescriptor()
1624 // 13. Let hasWritable be HasProperty(Obj, "writable"). in ToPropertyDescriptor()
1627 ObjectOperator op(thread, obj.GetTaggedValue(), writableStr.GetTaggedValue()); in ToPropertyDescriptor()
1634 // 16. Let hasGet be HasProperty(Obj, "get"). in ToPropertyDescriptor()
1637 ObjectOperator op(thread, obj.GetTaggedValue(), getStr.GetTaggedValue()); in ToPropertyDescriptor()
1647 // 19. Let hasSet be HasProperty(Obj, "set"). in ToPropertyDescriptor()
1650 ObjectOperator op(thread, obj.GetTaggedValue(), setStr.GetTaggedValue()); in ToPropertyDescriptor()
1670 …Handle<JSTaggedValue> JSObject::SpeciesConstructor(JSThread *thread, const JSHandle<JSObject> &obj, in SpeciesConstructor() argument
1676 ASSERT_PRINT(obj->IsECMAObject(), "obj must be js object"); in SpeciesConstructor()
1680 …JSHandle<JSTaggedValue> objConstructor(GetProperty(thread, JSHandle<JSTaggedValue>(obj), contructo… in SpeciesConstructor()
1744 …Iterator> JSObject::EnumerateObjectProperties(JSThread *thread, const JSHandle<JSTaggedValue> &obj) in EnumerateObjectProperties() argument
1751 if (obj->IsString()) { in EnumerateObjectProperties()
1752 object = JSHandle<JSTaggedValue>::Cast(JSPrimitiveRef::StringCreate(thread, obj)); in EnumerateObjectProperties()
1754 object = JSTaggedValue::ToPrototypeOrObj(thread, obj); in EnumerateObjectProperties()
1760 void JSObject::DefinePropertyByLiteral(JSThread *thread, const JSHandle<JSObject> &obj, in DefinePropertyByLiteral() argument
1764 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in DefinePropertyByLiteral()
1775 AddElementInternal(thread, obj, index, value, attr); in DefinePropertyByLiteral()
1781 void JSObject::DefineSetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JS… in DefineSetter() argument
1784 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in DefineSetter()
1786 ObjectOperator op(thread, obj, key, OperatorType::OWN); in DefineSetter()
1791 void JSObject::DefineGetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JS… in DefineGetter() argument
1794 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in DefineGetter()
1796 ObjectOperator op(thread, obj, key, OperatorType::OWN); in DefineGetter()
1813 JSHandle<JSObject> obj = factory->NewJSObjectByClass(properties, propsLen); in CreateObjectFromProperties() local
1814 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid object"); in CreateObjectFromProperties()
1817 obj->SetPropertyInlinedProps(thread, i, properties->Get(i * 2 + 1)); in CreateObjectFromProperties()
1819 return obj; in CreateObjectFromProperties()
1821 JSHandle<JSObject> obj = factory->NewEmptyJSObject(); in CreateObjectFromProperties() local
1822 JSHClass::TransitionToDictionary(thread, obj); in CreateObjectFromProperties()
1837 obj->SetProperties(thread, dict); in CreateObjectFromProperties()
1838 return obj; in CreateObjectFromProperties()
1842 void JSObject::AddAccessor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JST… in AddAccessor() argument
1845 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in AddAccessor()
1848 ObjectOperator op(thread, obj, key, OperatorType::OWN); in AddAccessor()
1850 op.AddProperty(JSHandle<JSObject>::Cast(obj), JSHandle<JSTaggedValue>(value), attr); in AddAccessor()
1952 JSHandle<ECMAObject> obj(thread, this); in SetNativePointerFieldCount() local
1955 … Barriers::SetDynObject<true>(thread, *obj, HASH_OFFSET, newArray.GetTaggedValue().GetRawData()); in SetNativePointerFieldCount()