• Home
  • Raw
  • Download

Lines Matching full:const

70     explicit PropertyDescriptor(const JSThread *thread) : thread_(thread) {}  in PropertyDescriptor()
72 …PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v) : thread_(thread), value_(v)… in PropertyDescriptor()
74 PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v, bool w, bool e, bool c) in PropertyDescriptor()
86 PropertyDescriptor(const JSThread *thread, bool w, bool e, bool c) in PropertyDescriptor()
91 inline JSHandle<JSTaggedValue> GetValue() const in GetValue()
99 inline JSHandle<JSTaggedValue> GetKey() const in GetKey()
122 inline SharedFieldType GetSharedFieldType() const in GetSharedFieldType()
127 inline bool IsWritable() const in IsWritable()
138 inline bool IsEnumerable() const in IsEnumerable()
149 inline bool IsConfigurable() const in IsConfigurable()
160 inline bool HasValue() const in HasValue()
165 inline bool HasWritable() const in HasWritable()
170 inline bool HasConfigurable() const in HasConfigurable()
175 inline bool HasEnumerable() const in HasEnumerable()
180 inline bool HasGetter() const in HasGetter()
185 inline bool HasSetter() const in HasSetter()
190 inline JSHandle<JSTaggedValue> GetGetter() const in GetGetter()
198 inline JSHandle<JSTaggedValue> GetSetter() const in GetSetter()
217 inline bool IsAccessorDescriptor() const in IsAccessorDescriptor()
223 inline bool IsDataDescriptor() const in IsDataDescriptor()
229 inline bool IsGenericDescriptor() const in IsGenericDescriptor()
235 inline bool IsEmpty() const in IsEmpty()
240 static void CompletePropertyDescriptor(const JSThread *thread, PropertyDescriptor &desc);
243 const JSThread *thread_{nullptr};
280 inline bool IsFound() const in IsFound()
290 inline bool GetIsInlinedProps() const in GetIsInlinedProps()
300 inline Representation GetRepresentation() const in GetRepresentation()
315 inline uint32_t GetOffset() const in GetOffset()
326 OperationResult(const JSThread *thread, JSTaggedValue value, PropertyMetaData metaData) in OperationResult()
337 JSHandle<JSTaggedValue> GetValue() const in GetValue()
346 JSHandle<JSTaggedValue> GetRawValue() const in GetRawValue()
351 const PropertyMetaData &GetPropertyMetaData() const in GetPropertyMetaData()
357 const JSThread *thread_ {nullptr};
375 bool IsCallable() const;
376 Method *GetCallTarget(const JSThread *thread) const;
377 void *GetNativePointer(const JSThread *thread) const;
382 static void SetHash(const JSThread *thread, int32_t hash, const JSHandle<ECMAObject> &obj);
383 int32_t GetHash(const JSThread *thread) const;
384 bool HasHash(const JSThread *thread) const;
391 JSTaggedValue GetNativePointerByIndex(const JSThread *thread, int32_t index) const;
392 void* GetNativePointerField(const JSThread *thread, int32_t index) const;
393 …static void SetNativePointerField(const JSThread *thread, const JSHandle<JSObject> &obj, int32_t i…
394 … void *nativePointer, const NativePointerCallback &callBack, void *data,
396 int32_t GetNativePointerFieldCount(const JSThread *thread) const;
397 …static void SetNativePointerFieldCount(const JSThread *thread, const JSHandle<JSObject> &obj, int3…
427 …static JSHandle<JSTaggedValue> FromPropertyDescriptor(JSThread *thread, const PropertyDescriptor &…
430 …static void ToPropertyDescriptor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, PropertyDes…
431 static bool ToPropertyDescriptorFast(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
434 …static JSHandle<JSTaggedValue> CallFunction(JSThread *thread, const JSHandle<JSTaggedValue> &func);
437 static JSHandle<JSTaggedValue> GetMethod(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
438 const JSHandle<JSTaggedValue> &key);
440 … static JSHandle<JSTaggedValue> FastGetMethod(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
441 const JSHandle<JSTaggedValue> &key);
443 …static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JST…
444const JSHandle<JSTaggedValue> &value, SCheckMode sCheckMode = SCheckMode::CHECK);
446 static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
447const JSHandle<JSTaggedValue> &value, SCheckMode sCheckMode = SCheckMode::CHECK);
449 static bool CreateMethodProperty(JSThread *thread, const JSHandle<JSObject> &obj,
450const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value);
452 static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj,
453const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value,
456 …static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t in…
457 const JSHandle<JSTaggedValue> &value,
460 …static JSHandle<TaggedArray> PUBLIC_API EnumerableOwnNames(JSThread *thread, const JSHandle<JSObje…
463 …static JSHandle<TaggedArray> EnumerableOwnPropertyNames(JSThread *thread, const JSHandle<JSObject>…
465 static void EnumerableOwnPropertyNamesHelper(JSThread *thread, const JSHandle<JSObject> &obj,
466 const JSHandle<TaggedArray> &arr, JSHandle<TaggedArray> &properties,
469 …static JSHandle<GlobalEnv> GetFunctionRealm(JSThread *thread, const JSHandle<JSTaggedValue> &objec…
471 …static bool SetIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel leve…
473 static bool FreezeSharedObject(JSThread *thread, const JSHandle<JSObject> &obj);
475 …static bool TestIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel lev…
477 … static JSHandle<JSTaggedValue> SpeciesConstructor(JSThread *thread, const JSHandle<JSObject> &obj,
478const JSHandle<JSTaggedValue> &defaultConstructor);
480const JSHandle<JSTaggedValue> &objConstructor,
481const JSHandle<JSTaggedValue> &defaultConstructor);
484 …static JSHandle<JSTaggedValue> CreateListFromArrayLike(JSThread *thread, const JSHandle<JSTaggedVa…
488 static JSTaggedValue GetPrototype(const JSThread *thread, const JSHandle<JSObject> &obj);
490 static JSTaggedValue GetPrototype(const JSThread *thread, JSTaggedValue obj);
493 static bool SetPrototype(JSThread *thread, const JSHandle<JSObject> &obj,
494 const JSHandle<JSTaggedValue> &proto,
498 bool IsExtensible() const;
501 static bool PreventExtensions(JSThread *thread, const JSHandle<JSObject> &obj);
504 …static bool GetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagge…
507 …static bool GlobalGetOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &key, PropertyDes…
509 static bool OrdinaryGetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj,
510const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc);
514const PropertyDescriptor &desc, SCheckMode sCheckMode = SCheckMode::CHECK);
516 …static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTa…
517const PropertyDescriptor &desc, SCheckMode sCheckMode = SCheckMode::CHECK);
519 static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
520const PropertyDescriptor &desc, SCheckMode sCheckMode = SCheckMode::CHECK);
523const PropertyDescriptor &desc, SCheckMode sCheckMode = SCheckMode::CHECK);
525 static bool OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj,
526const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc,
529 …static bool OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t in…
530 const PropertyDescriptor &desc,
533 static bool IsCompatiblePropertyDescriptor(bool extensible, const PropertyDescriptor &desc,
534 const PropertyDescriptor &current);
536 …static bool ValidateAndApplyPropertyDescriptor(ObjectOperator *op, bool extensible, const Property…
537 const PropertyDescriptor &current,
540 static OperationResult PUBLIC_API GetProperty(JSThread *thread, const JSHandle<JSObject> &obj,
541 const JSHandle<JSTaggedValue> &key);
543 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
544const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &receiver);
546 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
547const JSHandle<JSTaggedValue> &key, SCheckMode sCheckMode = SCheckMode::CHECK);
549 …static OperationResult GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t …
551 …static OperationResult GetPropertyFromGlobal(JSThread *thread, const JSHandle<JSTaggedValue> &key);
553 …static bool SetProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedVa…
556 …static bool SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTag…
560 …static bool SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTag…
561 JSHandle<JSTaggedValue> value, const JSHandle<JSTaggedValue> &receiver,
564 static bool SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index,
567 static bool GlobalSetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &key,
571 …static bool HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedVa…
573 static bool HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index);
576 …static bool DeleteProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagge…
580 … static JSHandle<TaggedArray> GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj);
582 …static JSHandle<TaggedArray> GetAllPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj, u…
584 static void CollectEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj,
588 static void AppendOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj,
592 …static JSHandle<TaggedArray> GetOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSObject> &ob…
595 static JSHandle<JSObject> ObjectCreate(JSThread *thread, const JSHandle<JSObject> &proto);
598 static bool InstanceOf(JSThread *thread, const JSHandle<JSTaggedValue> &object,
599 const JSHandle<JSTaggedValue> &target);
604 …static JSHandle<JSForInIterator> EnumerateObjectProperties(JSThread *thread, const JSHandle<JSTagg…
605 …static JSHandle<JSForInIterator> LoadEnumerateProperties(JSThread *thread, const JSHandle<JSTagged…
607 static bool IsRegExp(JSThread *thread, const JSHandle<JSTaggedValue> &argument);
609 static JSTaggedValue CallGetter(JSThread *thread, const AccessorData *accessor,
610 const JSHandle<JSTaggedValue> &receiver);
611 static bool PUBLIC_API CallSetter(JSThread *thread, const AccessorData &accessor,
612 const JSHandle<JSTaggedValue> &receiver,
613 const JSHandle<JSTaggedValue> &value, bool mayThrow = false);
615 static void FillElementsWithHoles(const JSThread *thread, const JSHandle<JSObject> &obj,
618 JSHClass *GetJSHClass() const in GetJSHClass()
622 uint32_t GetNonInlinedFastPropsCapacity() const;
623 bool IsJSGlobalObject() const;
624 bool IsConstructor() const;
625 bool IsECMAObject() const;
626 bool IsJSError() const;
627 bool IsArguments() const;
628 bool IsDate() const;
629 bool IsJSArray() const;
630 bool IsJSSArray() const;
631 bool IsJSShared() const;
632 bool IsJSMap() const;
633 bool IsJSSet() const;
634 bool IsJSRegExp() const;
635 bool IsJSFunction() const;
636 bool IsBoundFunction() const;
637 bool IsJSIntlBoundFunction() const;
638 bool IsProxyRevocFunction() const;
639 bool IsAccessorData() const;
640 bool IsJSGlobalEnv() const;
641 bool IsJSProxy() const;
642 bool IsGeneratorObject() const;
643 bool IsAsyncGeneratorObject() const;
644 bool IsForinIterator() const;
645 bool IsJSSetIterator() const;
646 bool IsJSRegExpIterator() const;
647 bool IsJSMapIterator() const;
648 bool IsJSArrayIterator() const;
649 bool IsJSAPIArrayListIterator() const;
650 bool IsJSAPIStackIterator() const;
651 bool IsJSAPIVectorIterator() const;
652 bool IsJSAPIBitVectorIterator() const;
653 bool IsJSAPILinkedListIterator() const;
654 bool IsJSAPIListIterator() const;
655 bool IsJSPrimitiveRef() const;
656 bool IsElementDict(const JSThread *thread) const;
657 bool IsPropertiesDict(const JSThread *thread) const;
658 bool IsTypedArray() const;
659 bool IsSharedTypedArray() const;
660 bool PUBLIC_API ElementsAndPropertiesIsEmpty(JSThread *thread) const;
662 static PUBLIC_API void DefinePropertyByLiteral(JSThread *thread, const JSHandle<JSObject> &obj,
663 const JSHandle<JSTaggedValue> &key,
664 const JSHandle<JSTaggedValue> &value,
666 …static void DefineSetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTa…
667 const JSHandle<JSTaggedValue> &value);
668 …static void DefineGetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTa…
669 const JSHandle<JSTaggedValue> &value);
670 static PUBLIC_API JSHandle<JSObject> CreateObjectFromProperties(const JSThread *thread,
671const JSHandle<TaggedArray> &properties,
673 static JSHandle<JSObject> CreateObjectFromPropertiesByIHClass(const JSThread *thread,
674const JSHandle<TaggedArray> &properties,
676 const JSHandle<JSHClass> &ihc,
678 static bool CheckPropertiesForRep(const JSThread *thread,
679 const JSHandle<TaggedArray> &properties, uint32_t propsLen, const JSHandle<JSHClass> &ihc);
680 static void GetAllKeys(const JSThread *thread, const JSHandle<JSObject> &obj, int offset,
681 const JSHandle<TaggedArray> &keyArray);
682 static void GetAllKeysForSerialization(const JSThread *thread, const JSHandle<JSObject> &obj,
685 static void GetAllKeysByFilter(const JSThread *thread, const JSHandle<JSObject> &obj,
687 const JSHandle<TaggedArray> &keyArray,
689 static void GetAllElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
690 const JSHandle<TaggedArray> &keyArray);
692 const JSHandle<JSObject> &obj,
693 const JSHandle<TaggedArray> &keyArray,
697 static void GetALLElementKeysIntoVector(const JSThread *thread, const JSHandle<JSObject> &obj,
699 std::pair<uint32_t, uint32_t> GetNumberOfEnumKeys(const JSThread *thread) const;
700 uint32_t GetNumberOfKeys(const JSThread *thread);
703 …static JSHandle<TaggedArray> GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, i…
705 static void CollectEnumElements(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
708 static void GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
709 const JSHandle<TaggedArray> &keyArray);
710 static JSHandle<TaggedArray> GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj,
712 static uint32_t GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
713 const JSHandle<TaggedArray> &keyArray);
715 …static void AddAccessor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTag…
716 const JSHandle<AccessorData> &value, PropertyAttributes attr);
725 void Dump(const JSThread *thread, std::ostream &os, bool isPrivacy = false) const DUMP_API_ATTR;
726 void Dump(const JSThread *thread) const DUMP_API_ATTR in Dump()
730 void DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const;
731 …static const CString ExtractConstructorAndRecordName(JSThread *thread, TaggedObject *obj, bool noA…
734 static const CString ExtractFilePath(JSThread *thread, CString name, CString moduleName,
737 static JSHandle<NameDictionary> PUBLIC_API TransitionToDictionary(const JSThread *thread,
738const JSHandle<JSObject> &receiver);
742 …inline void SetPropertyInlinedPropsWithRep(const JSThread *thread, uint32_t index, JSTaggedValue v…
744 inline void SetPropertyInlinedPropsWithSize(const JSThread* thread, JSTaggedValue value);
746 … inline void SetPropertyInlinedProps(const JSThread *thread, uint32_t index, JSTaggedValue value);
748 …inline void SetPropertyInlinedProps(const JSThread *thread, const JSHClass *hclass, uint32_t index,
750 inline JSTaggedValue GetPropertyInlinedPropsWithRep(const JSThread *thread, uint32_t index,
751 PropertyAttributes attr) const;
752 …inline JSTaggedValue GetPropertyInlinedPropsWithRep(const JSThread* thread, const JSHClass *hclass…
753 PropertyAttributes attr) const;
755 inline JSTaggedValue GetPropertyInlinedPropsWithSize(const JSThread* thread) const;
756 inline JSTaggedValue GetPropertyInlinedProps(const JSThread* thread, uint32_t index) const;
757 …ine JSTaggedValue GetPropertyInlinedProps(const JSThread* thread, const JSHClass *hclass, uint32_t…
758 …inline JSTaggedValue GetProperty(const JSThread* thread, const JSHClass *hclass, PropertyAttribute…
759 PropertyBox* GetGlobalPropertyBox(const JSThread *thread, const std::string& key);
761 inline void SetProperty(const JSThread *thread, const JSHClass *hclass, PropertyAttributes attr,
764 static bool IsArrayLengthWritable(JSThread *thread, const JSHandle<JSObject> &receiver);
765 bool UpdatePropertyInDictionary(const JSThread *thread, JSTaggedValue key, JSTaggedValue value);
768 static bool AttributesUnchanged(const JSThread *thread, const JSHandle<JSObject> &obj);
769 …static JSHandle<TaggedArray> GrowElementsCapacity(const JSThread *thread, const JSHandle<JSObject>…
779 static inline void SetEnumCacheKind([[maybe_unused]] const JSThread *thread, in SetEnumCacheKind()
780 JSHandle<EnumCache> enumCache, const EnumCacheKind kind) in SetEnumCacheKind()
799 …static JSHandle<JSTaggedValue> IterableToList(JSThread *thread, const JSHandle<JSTaggedValue> &ite…
802 static void TryOptimizeAsFastElements(const JSThread *thread, JSHandle<JSObject> obj);
803 static void OptimizeAsFastProperties(const JSThread *thread, JSHandle<JSObject> obj);
805 …static void SetSProperties(JSThread *thread, JSHandle<JSObject> obj, const std::vector<PropertyDes…
807 …static void PUBLIC_API TryMigrateToGenericKindForJSObject(const JSThread *thread, const JSHandle<J…
808 const ElementsKind oldKind);
809 static void ElementsToDictionary(const JSThread *thread, JSHandle<JSObject> obj);
813const std::string &className, const std::string &funcName);
825 static bool HasMutantTaggedArrayElements(const JSThread *thread, const JSHandle<JSObject> &obj);
826 PropertyBox* GetGlobalPropertyBox(const JSThread *thread, JSTaggedValue key);
827 static bool CheckAndUpdateArrayLength(JSThread *thread, const JSHandle<JSObject> &receiver,
830 …JSThread *thread, const JSHandle<JSObject> &receiver, uint32_t index, const JSHandle<JSTaggedValue…
835 …static bool SetPropertyForData(ObjectOperator *op, const JSHandle<JSTaggedValue> &value, bool *isA…
836 static bool SetPropertyForAccessor(ObjectOperator *op, const JSHandle<JSTaggedValue> &value);
837 static void DeletePropertyInternal(JSThread *thread, const JSHandle<JSObject> &obj,
838 const JSHandle<JSTaggedValue> &key, uint32_t index);
839 int FindProperty(const JSHandle<JSTaggedValue> &key);
849 …JSThread *thread, const JSHandle<JSObject> &obj, uint32_t *copyLengthOfKeys, uint32_t *copyLengthO…
850 static bool CheckHClassHit(const JSHandle<JSObject> &obj, const JSHandle<JSHClass> &cls);
851 …static uint32_t SetValuesOrEntries(JSThread *thread, const JSHandle<TaggedArray> &prop, uint32_t i…
852const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value,
856 static void TrimInlinePropsSpace(const JSThread *thread, const JSHandle<JSObject> &object,
858 …static bool ValidateDataDescriptorWhenConfigurable(ObjectOperator *op, const PropertyDescriptor &d…
859const PropertyDescriptor &current, SCheckMode sCheckMode);
863 const JSHandle<JSTaggedValue> &value,