• Home
  • Raw
  • Download

Lines Matching full:const

67     explicit PropertyDescriptor(const JSThread *thread) : thread_(thread) {}  in PropertyDescriptor()
69 …PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v) : thread_(thread), value_(v)… in PropertyDescriptor()
71 PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v, bool w, bool e, bool c) in PropertyDescriptor()
83 PropertyDescriptor(const JSThread *thread, bool w, bool e, bool c) in PropertyDescriptor()
88 inline JSHandle<JSTaggedValue> GetValue() const in GetValue()
96 inline JSHandle<JSTaggedValue> GetKey() const in GetKey()
119 inline SharedFieldType GetSharedFieldType() const in GetSharedFieldType()
124 inline bool IsWritable() const in IsWritable()
135 inline bool IsEnumerable() const in IsEnumerable()
146 inline bool IsConfigurable() const in IsConfigurable()
157 inline bool HasValue() const in HasValue()
162 inline bool HasWritable() const in HasWritable()
167 inline bool HasConfigurable() const in HasConfigurable()
172 inline bool HasEnumerable() const in HasEnumerable()
177 inline bool HasGetter() const in HasGetter()
182 inline bool HasSetter() const in HasSetter()
187 inline JSHandle<JSTaggedValue> GetGetter() const in GetGetter()
195 inline JSHandle<JSTaggedValue> GetSetter() const in GetSetter()
214 inline bool IsAccessorDescriptor() const in IsAccessorDescriptor()
220 inline bool IsDataDescriptor() const in IsDataDescriptor()
226 inline bool IsGenericDescriptor() const in IsGenericDescriptor()
232 inline bool IsEmpty() const in IsEmpty()
237 static void CompletePropertyDescriptor(const JSThread *thread, PropertyDescriptor &desc);
240 const JSThread *thread_{nullptr};
277 inline bool IsFound() const in IsFound()
287 inline bool GetIsInlinedProps() const in GetIsInlinedProps()
297 inline Representation GetRepresentation() const in GetRepresentation()
312 inline uint32_t GetOffset() const in GetOffset()
323 OperationResult(const JSThread *thread, JSTaggedValue value, PropertyMetaData metaData) in OperationResult()
334 JSHandle<JSTaggedValue> GetValue() const in GetValue()
343 JSHandle<JSTaggedValue> GetRawValue() const in GetRawValue()
348 const PropertyMetaData &GetPropertyMetaData() const in GetPropertyMetaData()
354 const JSThread *thread_ {nullptr};
372 bool IsCallable() const;
373 Method *GetCallTarget() const;
374 void *GetNativePointer() const;
379 static void SetHash(const JSThread *thread, int32_t hash, const JSHandle<ECMAObject> &obj);
380 int32_t GetHash() const;
381 bool HasHash() const;
388 void* GetNativePointerField(int32_t index) const;
389 …static void SetNativePointerField(const JSThread *thread, const JSHandle<JSObject> &obj, int32_t i…
390 … void *nativePointer, const NativePointerCallback &callBack, void *data,
392 int32_t GetNativePointerFieldCount() const;
393 …static void SetNativePointerFieldCount(const JSThread *thread, const JSHandle<JSObject> &obj, int3…
421 …static JSHandle<JSTaggedValue> FromPropertyDescriptor(JSThread *thread, const PropertyDescriptor &…
424 …static void ToPropertyDescriptor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, PropertyDes…
425 static bool ToPropertyDescriptorFast(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
428 …static JSHandle<JSTaggedValue> CallFunction(JSThread *thread, const JSHandle<JSTaggedValue> &func);
431 static JSHandle<JSTaggedValue> GetMethod(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
432 const JSHandle<JSTaggedValue> &key);
434 … static JSHandle<JSTaggedValue> FastGetMethod(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
435 const JSHandle<JSTaggedValue> &key);
437 …static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JST…
438const JSHandle<JSTaggedValue> &value, SCheckMode sCheckMode = SCheckMode::CHECK);
440 static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
441const JSHandle<JSTaggedValue> &value, SCheckMode sCheckMode = SCheckMode::CHECK);
443 static bool CreateMethodProperty(JSThread *thread, const JSHandle<JSObject> &obj,
444const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value);
446 static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj,
447const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value,
450 …static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t in…
451 const JSHandle<JSTaggedValue> &value,
454 …static JSHandle<TaggedArray> PUBLIC_API EnumerableOwnNames(JSThread *thread, const JSHandle<JSObje…
457 …static JSHandle<TaggedArray> EnumerableOwnPropertyNames(JSThread *thread, const JSHandle<JSObject>…
459 static void EnumerableOwnPropertyNamesHelper(JSThread *thread, const JSHandle<JSObject> &obj,
460 const JSHandle<TaggedArray> &arr, JSHandle<TaggedArray> &properties,
463 …static JSHandle<GlobalEnv> GetFunctionRealm(JSThread *thread, const JSHandle<JSTaggedValue> &objec…
465 …static bool SetIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel leve…
467 static bool FreezeSharedObject(JSThread *thread, const JSHandle<JSObject> &obj);
469 …static bool TestIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel lev…
471 … static JSHandle<JSTaggedValue> SpeciesConstructor(JSThread *thread, const JSHandle<JSObject> &obj,
472const JSHandle<JSTaggedValue> &defaultConstructor);
474const JSHandle<JSTaggedValue> &objConstructor,
475const JSHandle<JSTaggedValue> &defaultConstructor);
478 …static JSHandle<JSTaggedValue> CreateListFromArrayLike(JSThread *thread, const JSHandle<JSTaggedVa…
482 static JSTaggedValue GetPrototype(const JSHandle<JSObject> &obj);
487 static bool SetPrototype(JSThread *thread, const JSHandle<JSObject> &obj,
488 const JSHandle<JSTaggedValue> &proto,
492 bool IsExtensible() const;
495 static bool PreventExtensions(JSThread *thread, const JSHandle<JSObject> &obj);
498 …static bool GetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagge…
501 …static bool GlobalGetOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &key, PropertyDes…
503 static bool OrdinaryGetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj,
504const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc);
508const PropertyDescriptor &desc, SCheckMode sCheckMode = SCheckMode::CHECK);
510 …static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTa…
511const PropertyDescriptor &desc, SCheckMode sCheckMode = SCheckMode::CHECK);
513 static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
514const PropertyDescriptor &desc, SCheckMode sCheckMode = SCheckMode::CHECK);
517const PropertyDescriptor &desc, SCheckMode sCheckMode = SCheckMode::CHECK);
519 static bool OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj,
520const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc,
523 …static bool OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t in…
524 const PropertyDescriptor &desc,
527 static bool IsCompatiblePropertyDescriptor(bool extensible, const PropertyDescriptor &desc,
528 const PropertyDescriptor &current);
530 …static bool ValidateAndApplyPropertyDescriptor(ObjectOperator *op, bool extensible, const Property…
531 const PropertyDescriptor &current,
534 static OperationResult PUBLIC_API GetProperty(JSThread *thread, const JSHandle<JSObject> &obj,
535 const JSHandle<JSTaggedValue> &key);
537 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
538const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &receiver);
540 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
541const JSHandle<JSTaggedValue> &key, SCheckMode sCheckMode = SCheckMode::CHECK);
543 …static OperationResult GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t …
545 …static OperationResult GetPropertyFromGlobal(JSThread *thread, const JSHandle<JSTaggedValue> &key);
547 …static bool SetProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedVa…
550 …static bool SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTag…
554 …static bool SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTag…
555 JSHandle<JSTaggedValue> value, const JSHandle<JSTaggedValue> &receiver,
558 static bool SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index,
561 static bool GlobalSetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &key,
565 …static bool HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedVa…
567 static bool HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index);
570 …static bool DeleteProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagge…
574 … static JSHandle<TaggedArray> GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj);
576 …static JSHandle<TaggedArray> GetAllPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj, u…
578 static void CollectEnumKeysAlongProtoChain(JSThread *thread, const JSHandle<JSObject> &obj,
582 static void AppendOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj,
586 …static JSHandle<TaggedArray> GetOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSObject> &ob…
589 static JSHandle<JSObject> ObjectCreate(JSThread *thread, const JSHandle<JSObject> &proto);
592 static bool InstanceOf(JSThread *thread, const JSHandle<JSTaggedValue> &object,
593 const JSHandle<JSTaggedValue> &target);
598 …static JSHandle<JSForInIterator> EnumerateObjectProperties(JSThread *thread, const JSHandle<JSTagg…
599 …static JSHandle<JSForInIterator> LoadEnumerateProperties(JSThread *thread, const JSHandle<JSTagged…
601 static bool IsRegExp(JSThread *thread, const JSHandle<JSTaggedValue> &argument);
603 static JSTaggedValue CallGetter(JSThread *thread, const AccessorData *accessor,
604 const JSHandle<JSTaggedValue> &receiver);
605 static bool PUBLIC_API CallSetter(JSThread *thread, const AccessorData &accessor,
606 const JSHandle<JSTaggedValue> &receiver,
607 const JSHandle<JSTaggedValue> &value, bool mayThrow = false);
609 static void FillElementsWithHoles(const JSThread *thread, const JSHandle<JSObject> &obj,
612 JSHClass *GetJSHClass() const in GetJSHClass()
616 uint32_t GetNonInlinedFastPropsCapacity() const;
617 bool IsJSGlobalObject() const;
618 bool IsConstructor() const;
619 bool IsECMAObject() const;
620 bool IsJSError() const;
621 bool IsArguments() const;
622 bool IsDate() const;
623 bool IsJSArray() const;
624 bool IsJSSArray() const;
625 bool IsJSShared() const;
626 bool IsJSMap() const;
627 bool IsJSSet() const;
628 bool IsJSRegExp() const;
629 bool IsJSFunction() const;
630 bool IsBoundFunction() const;
631 bool IsJSIntlBoundFunction() const;
632 bool IsProxyRevocFunction() const;
633 bool IsAccessorData() const;
634 bool IsJSGlobalEnv() const;
635 bool IsJSProxy() const;
636 bool IsGeneratorObject() const;
637 bool IsAsyncGeneratorObject() const;
638 bool IsForinIterator() const;
639 bool IsJSSetIterator() const;
640 bool IsJSRegExpIterator() const;
641 bool IsJSMapIterator() const;
642 bool IsJSArrayIterator() const;
643 bool IsJSAPIArrayListIterator() const;
644 bool IsJSAPIStackIterator() const;
645 bool IsJSAPIVectorIterator() const;
646 bool IsJSAPIBitVectorIterator() const;
647 bool IsJSAPILinkedListIterator() const;
648 bool IsJSAPIListIterator() const;
649 bool IsJSPrimitiveRef() const;
650 bool IsElementDict() const;
651 bool IsPropertiesDict() const;
652 bool IsTypedArray() const;
653 bool IsSharedTypedArray() const;
654 bool PUBLIC_API ElementsAndPropertiesIsEmpty() const;
656 static PUBLIC_API void DefinePropertyByLiteral(JSThread *thread, const JSHandle<JSObject> &obj,
657 const JSHandle<JSTaggedValue> &key,
658 const JSHandle<JSTaggedValue> &value,
660 …static void DefineSetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTa…
661 const JSHandle<JSTaggedValue> &value);
662 …static void DefineGetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTa…
663 const JSHandle<JSTaggedValue> &value);
664 static PUBLIC_API JSHandle<JSObject> CreateObjectFromProperties(const JSThread *thread,
665const JSHandle<TaggedArray> &properties,
667 static JSHandle<JSObject> CreateObjectFromProperties(const JSThread *thread,
668 const JSHandle<JSHClass> &hclass,
669 const JSHandle<TaggedArray> &properties,
671 static JSHandle<JSObject> CreateObjectFromPropertiesByIHClass(const JSThread *thread,
672const JSHandle<TaggedArray> &properties,
674 const JSHandle<JSHClass> &ihc);
676 const JSHandle<TaggedArray> &properties, uint32_t propsLen, const JSHandle<JSHClass> &ihc);
677 static void GetAllKeys(const JSThread *thread, const JSHandle<JSObject> &obj, int offset,
678 const JSHandle<TaggedArray> &keyArray);
679 …static void GetAllKeysForSerialization(const JSHandle<JSObject> &obj, std::vector<JSTaggedValue> &…
681 static void GetAllKeysByFilter(const JSThread *thread, const JSHandle<JSObject> &obj,
683 const JSHandle<TaggedArray> &keyArray,
685 static void GetAllElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
686 const JSHandle<TaggedArray> &keyArray);
688 const JSHandle<JSObject> &obj,
689 const JSHandle<TaggedArray> &keyArray,
693 static void GetALLElementKeysIntoVector(const JSThread *thread, const JSHandle<JSObject> &obj,
695 std::pair<uint32_t, uint32_t> GetNumberOfEnumKeys() const;
699 …static JSHandle<TaggedArray> GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, i…
701 …static void CollectEnumElementsAlongProtoChain(JSThread *thread, const JSHandle<JSObject> &obj, in…
704 static void GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
705 const JSHandle<TaggedArray> &keyArray);
706 static JSHandle<TaggedArray> GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj,
708 static uint32_t GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
709 const JSHandle<TaggedArray> &keyArray);
711 …static void AddAccessor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTag…
712 const JSHandle<AccessorData> &value, PropertyAttributes attr);
721 void Dump(std::ostream &os, bool isPrivacy = false) const DUMP_API_ATTR;
722 void Dump() const DUMP_API_ATTR in Dump()
726 void DumpForSnapshot(std::vector<Reference> &vec) const;
727 …static const CString ExtractConstructorAndRecordName(JSThread *thread, TaggedObject *obj, bool noA…
730 static JSHandle<NameDictionary> PUBLIC_API TransitionToDictionary(const JSThread *thread,
731const JSHandle<JSObject> &receiver);
735 …inline void SetPropertyInlinedPropsWithRep(const JSThread *thread, uint32_t index, JSTaggedValue v…
737 inline void SetPropertyInlinedPropsWithSize(const JSThread* thread, JSTaggedValue value);
739 … inline void SetPropertyInlinedProps(const JSThread *thread, uint32_t index, JSTaggedValue value);
741 …inline void SetPropertyInlinedProps(const JSThread *thread, const JSHClass *hclass, uint32_t index,
743 …inline JSTaggedValue GetPropertyInlinedPropsWithRep(uint32_t index, PropertyAttributes attr) const;
744 inline JSTaggedValue GetPropertyInlinedPropsWithRep(const JSHClass *hclass, uint32_t index,
745 PropertyAttributes attr) const;
747 inline JSTaggedValue GetPropertyInlinedPropsWithSize() const;
748 inline JSTaggedValue GetPropertyInlinedProps(uint32_t index) const;
749 inline JSTaggedValue GetPropertyInlinedProps(const JSHClass *hclass, uint32_t index) const;
750 inline JSTaggedValue GetProperty(const JSHClass *hclass, PropertyAttributes attr) const;
751 PropertyBox* GetGlobalPropertyBox(JSThread *thread, const std::string& key);
753 inline void SetProperty(const JSThread *thread, const JSHClass *hclass, PropertyAttributes attr,
756 static bool IsArrayLengthWritable(JSThread *thread, const JSHandle<JSObject> &receiver);
757 bool UpdatePropertyInDictionary(const JSThread *thread, JSTaggedValue key, JSTaggedValue value);
760 static bool AttributesUnchanged(const JSThread *thread, const JSHandle<JSObject> &obj);
761 …static JSHandle<TaggedArray> GrowElementsCapacity(const JSThread *thread, const JSHandle<JSObject>…
773 …static JSHandle<JSTaggedValue> IterableToList(JSThread *thread, const JSHandle<JSTaggedValue> &ite…
776 static void TryOptimizeAsFastElements(const JSThread *thread, JSHandle<JSObject> obj);
777 static void OptimizeAsFastProperties(const JSThread *thread, JSHandle<JSObject> obj);
779 …static void SetSProperties(JSThread *thread, JSHandle<JSObject> obj, const std::vector<PropertyDes…
781 …static void PUBLIC_API TryMigrateToGenericKindForJSObject(const JSThread *thread, const JSHandle<J…
782 const ElementsKind oldKind);
783 static void ElementsToDictionary(const JSThread *thread, JSHandle<JSObject> obj);
795 static bool HasMutantTaggedArrayElements(const JSHandle<JSObject> &obj);
797 static bool CheckAndUpdateArrayLength(JSThread *thread, const JSHandle<JSObject> &receiver,
800 …JSThread *thread, const JSHandle<JSObject> &receiver, uint32_t index, const JSHandle<JSTaggedValue…
805 …static bool SetPropertyForData(ObjectOperator *op, const JSHandle<JSTaggedValue> &value, bool *isA…
806 static bool SetPropertyForAccessor(ObjectOperator *op, const JSHandle<JSTaggedValue> &value);
807 static void DeletePropertyInternal(JSThread *thread, const JSHandle<JSObject> &obj,
808 const JSHandle<JSTaggedValue> &key, uint32_t index);
809 int FindProperty(const JSHandle<JSTaggedValue> &key);
819 …JSThread *thread, const JSHandle<JSObject> &obj, uint32_t *copyLengthOfKeys, uint32_t *copyLengthO…
820 static bool CheckHClassHit(const JSHandle<JSObject> &obj, const JSHandle<JSHClass> &cls);
821 …static uint32_t SetValuesOrEntries(JSThread *thread, const JSHandle<TaggedArray> &prop, uint32_t i…
822const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value,
826 static void TrimInlinePropsSpace(const JSThread *thread, const JSHandle<JSObject> &object,
828 …static bool ValidateDataDescriptorWhenConfigurable(ObjectOperator *op, const PropertyDescriptor &d…
829const PropertyDescriptor &current, SCheckMode sCheckMode);
833 const JSHandle<JSTaggedValue> &value,