• Home
  • Raw
  • Download

Lines Matching refs:JSObject

89 JSHandle<TaggedArray> JSObject::GrowElementsCapacity(const JSThread *thread, const JSHandle<JSObjec…  in GrowElementsCapacity()
116 JSHandle<JSTaggedValue> JSObject::IterableToList(JSThread *thread, const JSHandle<JSTaggedValue> &i… in IterableToList()
159 bool JSObject::IsRegExp(JSThread *thread, const JSHandle<JSTaggedValue> &argument) in IsRegExp()
165 …JSHandle<JSTaggedValue> isRegexp = JSObject::GetProperty(thread, argument, matchSymbol).GetValue(); in IsRegExp()
170 JSHandle<JSObject> argumentObj = JSHandle<JSObject>::Cast(argument); in IsRegExp()
174 JSHandle<NameDictionary> JSObject::TransitionToDictionary(const JSThread *thread, const JSHandle<JS… in TransitionToDictionary()
223 void JSObject::ElementsToDictionary(const JSThread *thread, JSHandle<JSObject> obj) in ElementsToDictionary()
247 inline bool JSObject::ShouldOptimizeAsFastElements(const JSThread *thread, JSHandle<JSObject> obj) in ShouldOptimizeAsFastElements()
264 void JSObject::TryOptimizeAsFastElements(const JSThread *thread, JSHandle<JSObject> obj) in TryOptimizeAsFastElements()
289 void JSObject::OptimizeAsFastProperties(const JSThread *thread, JSHandle<JSObject> obj) in OptimizeAsFastProperties()
326 bool JSObject::IsArrayLengthWritable(JSThread *thread, const JSHandle<JSObject> &receiver) in IsArrayLengthWritable()
339 bool JSObject::AddElementInternal(JSThread *thread, const JSHandle<JSObject> &receiver, in AddElementInternal()
367 JSObject::TryOptimizeAsFastElements(thread, receiver); in AddElementInternal()
385 JSObject::ElementsToDictionary(thread, receiver); in AddElementInternal()
392 elements = *JSObject::GrowElementsCapacity(thread, receiver, index + 1); in AddElementInternal()
399 void JSObject::DeletePropertyInternal(JSThread *thread, const JSHandle<JSObject> &obj, in DeletePropertyInternal()
427 void JSObject::GetAllKeys(const JSThread *thread, const JSHandle<JSObject> &obj, int offset, in GetAllKeys()
450 void JSObject::GetAllKeysByFilter(const JSThread *thread, const JSHandle<JSObject> &obj, in GetAllKeysByFilter()
475 void JSObject::GetAllKeysForSerialization(const JSHandle<JSObject> &obj, std::vector<JSTaggedValue>… in GetAllKeysForSerialization()
492 JSHandle<TaggedArray> JSObject::GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj, in GetAllEnumKeys()
507 if (JSObject::GetEnumCacheKind(thread, enumCache) == EnumCacheKind::ONLY_OWN_KEYS) { in GetAllEnumKeys()
519 JSObject::SetEnumCacheKind(thread, *keyArray, EnumCacheKind::ONLY_OWN_KEYS); in GetAllEnumKeys()
533 uint32_t JSObject::GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset, in GetAllEnumKeys()
558 void JSObject::GetAllElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset, in GetAllElementKeys()
584 void JSObject::GetAllElementKeysByFilter(JSThread *thread, in GetAllElementKeysByFilter()
585 const JSHandle<JSObject> &obj, in GetAllElementKeysByFilter()
624 void JSObject::GetALLElementKeysIntoVector(const JSThread *thread, const JSHandle<JSObject> &obj, in GetALLElementKeysIntoVector()
641 JSHandle<TaggedArray> JSObject::GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj,… in GetEnumElementKeys()
650 void JSObject::CollectEnumElementsAlongProtoChain(JSThread *thread, const JSHandle<JSObject> &obj, … in CollectEnumElementsAlongProtoChain()
691 void JSObject::GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset, in GetEnumElementKeys()
718 std::pair<uint32_t, uint32_t> JSObject::GetNumberOfEnumKeys() const in GetNumberOfEnumKeys()
739 uint32_t JSObject::GetNumberOfKeys() in GetNumberOfKeys()
751 bool JSObject::GlobalSetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &key, in GlobalSetProperty()
764 uint32_t JSObject::GetNumberOfElements() in GetNumberOfElements()
788 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JST… in SetProperty()
799 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagged… in SetProperty()
809 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JST… in SetProperty()
820 bool JSObject::SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index, in SetProperty()
829 bool JSObject::SetPropertyForDataDescriptorProxy(JSThread *thread, ObjectOperator *op, in SetPropertyForDataDescriptorProxy()
856 return CreateDataProperty(thread, JSHandle<JSObject>(receiver), key, value); in SetPropertyForDataDescriptorProxy()
859 bool JSObject::SetPropertyForDataDescriptor(ObjectOperator *op, const JSHandle<JSTaggedValue> &valu… in SetPropertyForDataDescriptor()
916 …isSuccess = op->UpdateDataValue(JSHandle<JSObject>(receiver), value, isInternalAccessor, mayThrow); in SetPropertyForDataDescriptor()
927 … return op->AddProperty(JSHandle<JSObject>(receiver), value, PropertyAttributes::Default()); in SetPropertyForDataDescriptor()
929 … return op->AddProperty(JSHandle<JSObject>(receiver), value, PropertyAttributes::Default()); in SetPropertyForDataDescriptor()
931 return op->AddProperty(JSHandle<JSObject>(receiver), value, op->GetAttr()); in SetPropertyForDataDescriptor()
937 bool JSObject::SetProperty(ObjectOperator *op, const JSHandle<JSTaggedValue> &value, bool mayThrow) in SetProperty()
975 bool JSObject::CallSetter(JSThread *thread, const AccessorData &accessor, const JSHandle<JSTaggedVa… in CallSetter()
979 … return accessor.CallInternalSet(thread, JSHandle<JSObject>::Cast(receiver), value, mayThrow); in CallSetter()
1003 JSTaggedValue JSObject::CallGetter(JSThread *thread, const AccessorData *accessor, in CallGetter()
1021 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in GetProperty()
1031 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSObject> &obj, in GetProperty()
1041 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in GetProperty()
1051 OperationResult JSObject::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_… in GetProperty()
1059 OperationResult JSObject::GetPropertyFromGlobal(JSThread *thread, const JSHandle<JSTaggedValue> &ke… in GetPropertyFromGlobal()
1067 PropertyBox* JSObject::GetGlobalPropertyBox(JSTaggedValue key) in GetGlobalPropertyBox()
1078 PropertyBox* JSObject::GetGlobalPropertyBox(JSThread *thread, const std::string& key) in GetGlobalPropertyBox()
1085 JSTaggedValue JSObject::GetProperty(JSThread *thread, ObjectOperator *op) in GetProperty()
1116 return accessor->CallInternalGet(thread, JSHandle<JSObject>::Cast(holder)); in GetProperty()
1121 bool JSObject::DeleteProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTag… in DeleteProperty()
1144 bool JSObject::GetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTag… in GetOwnProperty()
1150 bool JSObject::GlobalGetOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &key, PropertyD… in GlobalGetOwnProperty()
1170 bool JSObject::OrdinaryGetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, in OrdinaryGetOwnProperty()
1194 bool JSObject::DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JS… in DefineOwnProperty()
1200 bool JSObject::DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index, in DefineOwnProperty()
1207 bool JSObject::OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, in OrdinaryDefineOwnProperty()
1223 bool JSObject::OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t … in OrdinaryDefineOwnProperty()
1235 bool JSObject::ValidateDataDescriptorWhenConfigurable(ObjectOperator *op, const PropertyDescriptor … in ValidateDataDescriptorWhenConfigurable()
1261 bool JSObject::ValidateAndApplyPropertyDescriptor(ObjectOperator *op, bool extensible, const Proper… in ValidateAndApplyPropertyDescriptor()
1377 bool JSObject::IsCompatiblePropertyDescriptor(bool extensible, const PropertyDescriptor &desc, in IsCompatiblePropertyDescriptor()
1385 JSTaggedValue JSObject::GetPrototype(const JSHandle<JSObject> &obj) in GetPrototype()
1391 bool JSObject::SetPrototype(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagge… in SetPrototype()
1394 JSTaggedValue current = JSObject::GetPrototype(obj); in SetPrototype()
1427 bool JSObject::HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagged… in HasProperty()
1441 bool JSObject::HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index) in HasProperty()
1455 bool JSObject::PreventExtensions(JSThread *thread, const JSHandle<JSObject> &obj) in PreventExtensions()
1468 JSHandle<TaggedArray> JSObject::GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj) in GetOwnPropertyKeys()
1482 JSHandle<TaggedArray> JSObject::GetAllPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj,… in GetAllPropertyKeys()
1484 JSMutableHandle<JSObject> currentObj(thread, obj); in GetAllPropertyKeys()
1551 void JSObject::CollectEnumKeysAlongProtoChain(JSThread *thread, const JSHandle<JSObject> &obj, in CollectEnumKeysAlongProtoChain()
1571 void JSObject::AppendOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj, in AppendOwnEnumPropertyKeys()
1583 JSHandle<TaggedArray> JSObject::GetOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSObject> &… in GetOwnEnumPropertyKeys()
1597 JSHandle<JSObject> JSObject::ObjectCreate(JSThread *thread, const JSHandle<JSObject> &proto) in ObjectCreate()
1601 …JSHandle<JSObject> objHandle = thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(constru… in ObjectCreate()
1607 bool JSObject::CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<J… in CreateDataProperty()
1622 bool JSObject::CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index, in CreateDataProperty()
1636 bool JSObject::CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, in CreateDataPropertyOrThrow()
1650 bool JSObject::CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t … in CreateDataPropertyOrThrow()
1662 bool JSObject::CreateMethodProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle… in CreateMethodProperty()
1672 JSHandle<JSTaggedValue> JSObject::CallFunction(JSThread *thread, const JSHandle<JSTaggedValue> &fun… in CallFunction()
1684 JSHandle<JSTaggedValue> JSObject::GetMethod(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in GetMethod()
1694 JSHandle<JSTaggedValue> JSObject::FastGetMethod(JSThread *thread, const JSHandle<JSTaggedValue> &ob… in FastGetMethod()
1706 bool JSObject::SetIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel le… in SetIntegrityLevel()
1767 bool JSObject::TestIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel l… in TestIntegrityLevel()
1809 JSHandle<TaggedArray> JSObject::EnumerableOwnNames(JSThread *thread, const JSHandle<JSObject> &obj) in EnumerableOwnNames()
1861 void JSObject::EnumerableOwnPropertyNamesHelper(JSThread *thread, const JSHandle<JSObject> &obj, in EnumerableOwnPropertyNamesHelper()
1898 JSHandle<TaggedArray> JSObject::EnumerableOwnPropertyNames(JSThread *thread, const JSHandle<JSObjec… in EnumerableOwnPropertyNames()
1977 JSHandle<GlobalEnv> JSObject::GetFunctionRealm(JSThread *thread, const JSHandle<JSTaggedValue> &obj… in GetFunctionRealm()
2010 bool JSObject::InstanceOf(JSThread *thread, const JSHandle<JSTaggedValue> &object, in InstanceOf()
2048 JSHandle<JSTaggedValue> JSObject::FromPropertyDescriptor(JSThread *thread, const PropertyDescriptor… in FromPropertyDescriptor()
2058 …JSHandle<JSObject> objHandle = thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(objFunc… in FromPropertyDescriptor()
2105 bool JSObject::ToPropertyDescriptorFast(JSThread *thread, const JSHandle<JSTaggedValue> &obj, Prope… in ToPropertyDescriptorFast()
2120 if (JSObject::Cast(hclass->GetPrototype().GetTaggedObject())->GetClass() != in ToPropertyDescriptorFast()
2132 auto value = JSObject::Cast(obj->GetTaggedObject())->GetProperty(hclass, attr); in ToPropertyDescriptorFast()
2170 void JSObject::ToPropertyDescriptor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, PropertyD… in ToPropertyDescriptor()
2251 const CString JSObject::ExtractConstructorAndRecordName(JSThread *thread, TaggedObject *obj) in ExtractConstructorAndRecordName()
2291 JSHandle<JSTaggedValue> JSObject::SpeciesConstructor(JSThread *thread, const JSHandle<JSObject> &ob… in SpeciesConstructor()
2307 JSHandle<JSTaggedValue> JSObject::SlowSpeciesConstructor(JSThread *thread, in SlowSpeciesConstructor()
2376 bool JSObject::IsSimpleEnumCacheValid(JSTaggedValue receiver) in IsSimpleEnumCacheValid()
2379 uint32_t numOfElements = JSObject::Cast(receiver.GetTaggedObject())->GetNumberOfElements(); in IsSimpleEnumCacheValid()
2384 JSTaggedValue current = JSObject::GetPrototype(receiver); in IsSimpleEnumCacheValid()
2386 JSObject *currentObj = JSObject::Cast(current.GetTaggedObject()); in IsSimpleEnumCacheValid()
2396 current = JSObject::GetPrototype(current); in IsSimpleEnumCacheValid()
2401 bool JSObject::IsEnumCacheWithProtoChainInfoValid(JSTaggedValue receiver) in IsEnumCacheWithProtoChainInfoValid()
2405 uint32_t numOfElements = JSObject::Cast(receiver.GetTaggedObject())->GetNumberOfElements(); in IsEnumCacheWithProtoChainInfoValid()
2410 JSTaggedValue proto = JSObject::GetPrototype(receiver); in IsEnumCacheWithProtoChainInfoValid()
2424 JSObject *currentObj = JSObject::Cast(current.GetTaggedObject()); in IsEnumCacheWithProtoChainInfoValid()
2429 current = JSObject::GetPrototype(current); in IsEnumCacheWithProtoChainInfoValid()
2434 JSTaggedValue JSObject::TryGetEnumCache(JSThread *thread, JSTaggedValue obj) in TryGetEnumCache()
2440 EnumCacheKind kind = JSObject::GetEnumCacheKind(thread, enumCache); in TryGetEnumCache()
2459 JSHandle<JSForInIterator> JSObject::EnumerateObjectProperties(JSThread *thread, const JSHandle<JSTa… in EnumerateObjectProperties()
2479 cachedHclass.Update(JSTaggedValue(JSHandle<JSObject>::Cast(object)->GetJSHClass())); in EnumerateObjectProperties()
2485 JSHandle<JSForInIterator> JSObject::LoadEnumerateProperties(JSThread *thread, const JSHandle<JSTagg… in LoadEnumerateProperties()
2502 void JSObject::DefinePropertyByLiteral(JSThread *thread, const JSHandle<JSObject> &obj, in DefinePropertyByLiteral()
2524 void JSObject::DefineSetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JS… in DefineSetter()
2534 void JSObject::DefineGetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JS… in DefineGetter()
2544 JSHandle<JSObject> JSObject::CreateObjectFromProperties(const JSThread *thread, const JSHandle<Tagg… in CreateObjectFromProperties()
2565 JSHandle<JSObject> obj = factory->NewEmptyJSObject(0); // 0: no inline field in CreateObjectFromProperties()
2586 JSHandle<JSObject> JSObject::CreateObjectFromProperties(const JSThread *thread, in CreateObjectFromProperties()
2592 JSHandle<JSObject> obj = factory->NewOldSpaceObjLiteralByHClass(hclass); in CreateObjectFromProperties()
2616 JSHandle<JSObject> JSObject::CreateObjectFromPropertiesByIHClass(const JSThread *thread, in CreateObjectFromPropertiesByIHClass()
2623 JSHandle<JSObject> obj = factory->NewOldSpaceObjLiteralByHClass(ihc); in CreateObjectFromPropertiesByIHClass()
2628 auto value = JSObject::ConvertValueWithRep(attr, properties->Get(i * 2 + 1)); in CreateObjectFromPropertiesByIHClass()
2635 bool JSObject::CheckPropertiesForRep( in CheckPropertiesForRep()
2641 auto value = JSObject::ConvertValueWithRep(attr, properties->Get(i * 2 + 1)); in CheckPropertiesForRep()
2651 void JSObject::AddAccessor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JST… in AddAccessor()
2659 op.AddProperty(JSHandle<JSObject>::Cast(obj), JSHandle<JSTaggedValue>(value), attr); in AddAccessor()
2662 bool JSObject::UpdatePropertyInDictionary(const JSThread *thread, JSTaggedValue key, JSTaggedValue … in UpdatePropertyInDictionary()
2674 void JSObject::TrimInlinePropsSpace(const JSThread *thread, const JSHandle<JSObject> &object, in TrimInlinePropsSpace()
2825 bool JSObject::ElementsAndPropertiesIsEmpty() const in ElementsAndPropertiesIsEmpty()