• 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;
378 static void SetHash(const JSThread *thread, int32_t hash, const JSHandle<ECMAObject> &obj);
379 int32_t GetHash() const;
380 bool HasHash() const;
387 void* GetNativePointerField(int32_t index) const;
388 void SetNativePointerField(const JSThread *thread, int32_t index, void *nativePointer,
389const NativePointerCallback &callBack, void *data, size_t nativeBindingsize = 0,
391 int32_t GetNativePointerFieldCount() const;
392 void SetNativePointerFieldCount(const JSThread *thread, int32_t count);
397 void VisitObjects(const EcmaObjectRangeVisitor &visitor) in VisitObjects()
420 …static JSHandle<JSTaggedValue> FromPropertyDescriptor(JSThread *thread, const PropertyDescriptor &…
423 …static void ToPropertyDescriptor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, PropertyDes…
424 static bool ToPropertyDescriptorFast(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
427 …static JSHandle<JSTaggedValue> CallFunction(JSThread *thread, const JSHandle<JSTaggedValue> &func);
430 static JSHandle<JSTaggedValue> GetMethod(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
431 const JSHandle<JSTaggedValue> &key);
433 … static JSHandle<JSTaggedValue> FastGetMethod(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
434 const JSHandle<JSTaggedValue> &key);
436 …static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JST…
437const JSHandle<JSTaggedValue> &value, SCheckMode sCheckMode = SCheckMode::CHECK);
439 static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
440const JSHandle<JSTaggedValue> &value, SCheckMode sCheckMode = SCheckMode::CHECK);
442 static bool CreateMethodProperty(JSThread *thread, const JSHandle<JSObject> &obj,
443const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value);
445 static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj,
446const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value,
449 …static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t in…
450 const JSHandle<JSTaggedValue> &value,
453 …static JSHandle<TaggedArray> PUBLIC_API EnumerableOwnNames(JSThread *thread, const JSHandle<JSObje…
456 …static JSHandle<TaggedArray> EnumerableOwnPropertyNames(JSThread *thread, const JSHandle<JSObject>…
458 static void EnumerableOwnPropertyNamesHelper(JSThread *thread, const JSHandle<JSObject> &obj,
459 const JSHandle<TaggedArray> &arr, JSHandle<TaggedArray> &properties,
462 …static JSHandle<GlobalEnv> GetFunctionRealm(JSThread *thread, const JSHandle<JSTaggedValue> &objec…
464 …static bool SetIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel leve…
466 static bool FreezeSharedObject(JSThread *thread, const JSHandle<JSObject> &obj);
468 …static bool TestIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel lev…
470 … static JSHandle<JSTaggedValue> SpeciesConstructor(JSThread *thread, const JSHandle<JSObject> &obj,
471const JSHandle<JSTaggedValue> &defaultConstructor);
473const JSHandle<JSTaggedValue> &objConstructor,
474const JSHandle<JSTaggedValue> &defaultConstructor);
477 …static JSHandle<JSTaggedValue> CreateListFromArrayLike(JSThread *thread, const JSHandle<JSTaggedVa…
481 static JSTaggedValue GetPrototype(const JSHandle<JSObject> &obj);
486 static bool SetPrototype(JSThread *thread, const JSHandle<JSObject> &obj,
487 const JSHandle<JSTaggedValue> &proto,
491 bool IsExtensible() const;
494 static bool PreventExtensions(JSThread *thread, const JSHandle<JSObject> &obj);
497 …static bool GetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagge…
500 …static bool GlobalGetOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &key, PropertyDes…
502 static bool OrdinaryGetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj,
503const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc);
506 …static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTa…
507const PropertyDescriptor &desc, SCheckMode sCheckMode = SCheckMode::CHECK);
509 static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
510const PropertyDescriptor &desc, SCheckMode sCheckMode = SCheckMode::CHECK);
512 static bool OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj,
513const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc,
516 …static bool OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t in…
517 const PropertyDescriptor &desc,
520 static bool IsCompatiblePropertyDescriptor(bool extensible, const PropertyDescriptor &desc,
521 const PropertyDescriptor &current);
523 …static bool ValidateAndApplyPropertyDescriptor(ObjectOperator *op, bool extensible, const Property…
524 const PropertyDescriptor &current,
527 static OperationResult PUBLIC_API GetProperty(JSThread *thread, const JSHandle<JSObject> &obj,
528 const JSHandle<JSTaggedValue> &key);
530 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
531const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &receiver);
533 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
534const JSHandle<JSTaggedValue> &key, SCheckMode sCheckMode = SCheckMode::CHECK);
536 …static OperationResult GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t …
538 …static OperationResult GetPropertyFromGlobal(JSThread *thread, const JSHandle<JSTaggedValue> &key);
540 …static bool SetProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedVa…
541 const JSHandle<JSTaggedValue> &value, bool mayThrow = false);
543 …static bool SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTag…
544 const JSHandle<JSTaggedValue> &value, bool mayThrow = false,
547 …static bool SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTag…
548const JSHandle<JSTaggedValue> &value, const JSHandle<JSTaggedValue> &receiver,
551 static bool SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index,
552 const JSHandle<JSTaggedValue> &value, bool mayThrow = false);
554 static bool GlobalSetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &key,
555 const JSHandle<JSTaggedValue> &value, bool mayThrow);
558 …static bool HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedVa…
560 static bool HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index);
563 …static bool DeleteProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTagge…
567 … static JSHandle<TaggedArray> GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj);
569 …static JSHandle<TaggedArray> GetAllPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj, u…
571 static void CollectEnumKeysAlongProtoChain(JSThread *thread, const JSHandle<JSObject> &obj,
575 static void AppendOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj,
579 …static JSHandle<TaggedArray> GetOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSObject> &ob…
582 static JSHandle<JSObject> ObjectCreate(JSThread *thread, const JSHandle<JSObject> &proto);
585 static bool InstanceOf(JSThread *thread, const JSHandle<JSTaggedValue> &object,
586 const JSHandle<JSTaggedValue> &target);
591 …static JSHandle<JSForInIterator> EnumerateObjectProperties(JSThread *thread, const JSHandle<JSTagg…
592 …static JSHandle<JSForInIterator> LoadEnumerateProperties(JSThread *thread, const JSHandle<JSTagged…
594 static bool IsRegExp(JSThread *thread, const JSHandle<JSTaggedValue> &argument);
596 static JSTaggedValue CallGetter(JSThread *thread, const AccessorData *accessor,
597 const JSHandle<JSTaggedValue> &receiver);
598 static bool PUBLIC_API CallSetter(JSThread *thread, const AccessorData &accessor,
599 const JSHandle<JSTaggedValue> &receiver,
600 const JSHandle<JSTaggedValue> &value, bool mayThrow = false);
602 void FillElementsWithHoles(const JSThread *thread, uint32_t start, uint32_t end);
604 JSHClass *GetJSHClass() const in GetJSHClass()
608 uint32_t GetNonInlinedFastPropsCapacity() const;
609 bool IsJSGlobalObject() const;
610 bool IsConstructor() const;
611 bool IsECMAObject() const;
612 bool IsJSError() const;
613 bool IsArguments() const;
614 bool IsDate() const;
615 bool IsJSArray() const;
616 bool IsJSSArray() const;
617 bool IsJSShared() const;
618 bool IsJSMap() const;
619 bool IsJSSet() const;
620 bool IsJSRegExp() const;
621 bool IsJSFunction() const;
622 bool IsBoundFunction() const;
623 bool IsJSIntlBoundFunction() const;
624 bool IsProxyRevocFunction() const;
625 bool IsAccessorData() const;
626 bool IsJSGlobalEnv() const;
627 bool IsJSProxy() const;
628 bool IsGeneratorObject() const;
629 bool IsAsyncGeneratorObject() const;
630 bool IsForinIterator() const;
631 bool IsJSSetIterator() const;
632 bool IsJSRegExpIterator() const;
633 bool IsJSMapIterator() const;
634 bool IsJSArrayIterator() const;
635 bool IsJSAPIArrayListIterator() const;
636 bool IsJSAPIStackIterator() const;
637 bool IsJSAPIVectorIterator() const;
638 bool IsJSAPIBitVectorIterator() const;
639 bool IsJSAPILinkedListIterator() const;
640 bool IsJSAPIListIterator() const;
641 bool IsJSPrimitiveRef() const;
642 bool IsElementDict() const;
643 bool IsPropertiesDict() const;
644 bool IsTypedArray() const;
645 bool PUBLIC_API ElementsAndPropertiesIsEmpty() const;
647 static PUBLIC_API void DefinePropertyByLiteral(JSThread *thread, const JSHandle<JSObject> &obj,
648 const JSHandle<JSTaggedValue> &key,
649 const JSHandle<JSTaggedValue> &value,
651 …static void DefineSetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTa…
652 const JSHandle<JSTaggedValue> &value);
653 …static void DefineGetter(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTa…
654 const JSHandle<JSTaggedValue> &value);
655 static PUBLIC_API JSHandle<JSObject> CreateObjectFromProperties(const JSThread *thread,
656const JSHandle<TaggedArray> &properties,
658 static JSHandle<JSObject> CreateObjectFromProperties(const JSThread *thread,
659 const JSHandle<JSHClass> &hclass,
660 const JSHandle<TaggedArray> &properties,
662 static JSHandle<JSObject> CreateObjectFromPropertiesByIHClass(const JSThread *thread,
663const JSHandle<TaggedArray> &properties,
665 const JSHandle<JSHClass> &ihc);
667 const JSHandle<TaggedArray> &properties, uint32_t propsLen, const JSHandle<JSHClass> &ihc);
668 static void GetAllKeys(const JSThread *thread, const JSHandle<JSObject> &obj, int offset,
669 const JSHandle<TaggedArray> &keyArray);
670 …static void GetAllKeysForSerialization(const JSHandle<JSObject> &obj, std::vector<JSTaggedValue> &…
672 static void GetAllKeysByFilter(const JSThread *thread, const JSHandle<JSObject> &obj,
674 const JSHandle<TaggedArray> &keyArray,
676 static void GetAllElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
677 const JSHandle<TaggedArray> &keyArray);
679 const JSHandle<JSObject> &obj,
680 const JSHandle<TaggedArray> &keyArray,
684 static void GetALLElementKeysIntoVector(const JSThread *thread, const JSHandle<JSObject> &obj,
686 std::pair<uint32_t, uint32_t> GetNumberOfEnumKeys() const;
690 …static JSHandle<TaggedArray> GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, i…
692 …static void CollectEnumElementsAlongProtoChain(JSThread *thread, const JSHandle<JSObject> &obj, in…
695 static void GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
696 const JSHandle<TaggedArray> &keyArray);
697 static JSHandle<TaggedArray> GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj,
699 static uint32_t GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
700 const JSHandle<TaggedArray> &keyArray);
702 …static void AddAccessor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTag…
703 const JSHandle<AccessorData> &value, PropertyAttributes attr);
713 …static const CString ExtractConstructorAndRecordName(JSThread *thread, TaggedObject *obj, bool noA…
716 static JSHandle<NameDictionary> PUBLIC_API TransitionToDictionary(const JSThread *thread,
717const JSHandle<JSObject> &receiver);
721 …inline void SetPropertyInlinedPropsWithRep(const JSThread *thread, uint32_t index, JSTaggedValue v…
723 … inline void SetPropertyInlinedProps(const JSThread *thread, uint32_t index, JSTaggedValue value);
725 …inline void SetPropertyInlinedProps(const JSThread *thread, const JSHClass *hclass, uint32_t index,
727 …inline JSTaggedValue GetPropertyInlinedPropsWithRep(uint32_t index, PropertyAttributes attr) const;
728 inline JSTaggedValue GetPropertyInlinedPropsWithRep(const JSHClass *hclass, uint32_t index,
729 PropertyAttributes attr) const;
730 inline JSTaggedValue GetPropertyInlinedProps(uint32_t index) const;
731 inline JSTaggedValue GetPropertyInlinedProps(const JSHClass *hclass, uint32_t index) const;
732 inline JSTaggedValue GetProperty(const JSHClass *hclass, PropertyAttributes attr) const;
733 PropertyBox* GetGlobalPropertyBox(JSThread *thread, const std::string& key);
735 inline void SetProperty(const JSThread *thread, const JSHClass *hclass, PropertyAttributes attr,
738 static bool IsArrayLengthWritable(JSThread *thread, const JSHandle<JSObject> &receiver);
739 bool UpdatePropertyInDictionary(const JSThread *thread, JSTaggedValue key, JSTaggedValue value);
742 static bool ShouldOptimizeAsFastElements(const JSThread *thread, JSHandle<JSObject> obj);
743 …static JSHandle<TaggedArray> GrowElementsCapacity(const JSThread *thread, const JSHandle<JSObject>…
755 …static JSHandle<JSTaggedValue> IterableToList(JSThread *thread, const JSHandle<JSTaggedValue> &ite…
758 static void TryOptimizeAsFastElements(const JSThread *thread, JSHandle<JSObject> obj);
759 static void OptimizeAsFastProperties(const JSThread *thread, JSHandle<JSObject> obj);
761 …static void SetSProperties(JSThread *thread, JSHandle<JSObject> obj, const std::vector<PropertyDes…
763 …static void PUBLIC_API TryMigrateToGenericKindForJSObject(const JSThread *thread, const JSHandle<J…
764 const ElementsKind oldKind);
766 static void ElementsToDictionary(const JSThread *thread, JSHandle<JSObject> obj);
778 static bool HasMutantTaggedArrayElements(const JSHandle<JSObject> &obj);
781 …JSThread *thread, const JSHandle<JSObject> &receiver, uint32_t index, const JSHandle<JSTaggedValue…
785 … static bool SetProperty(ObjectOperator *op, const JSHandle<JSTaggedValue> &value, bool mayThrow);
786 static void DeletePropertyInternal(JSThread *thread, const JSHandle<JSObject> &obj,
787 const JSHandle<JSTaggedValue> &key, uint32_t index);
788 int FindProperty(const JSHandle<JSTaggedValue> &key);
798 …JSThread *thread, const JSHandle<JSObject> &obj, uint32_t *copyLengthOfKeys, uint32_t *copyLengthO…
799 static bool CheckHClassHit(const JSHandle<JSObject> &obj, const JSHandle<JSHClass> &cls);
800 …static uint32_t SetValuesOrEntries(JSThread *thread, const JSHandle<TaggedArray> &prop, uint32_t i…
801const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value,
805 static void TrimInlinePropsSpace(const JSThread *thread, const JSHandle<JSObject> &object,
807 …static bool ValidateDataDescriptorWhenConfigurable(ObjectOperator *op, const PropertyDescriptor &d…
808const PropertyDescriptor &current, SCheckMode sCheckMode);
809 … static bool SetPropertyForDataDescriptor(ObjectOperator *op, const JSHandle<JSTaggedValue> &value,
812 const JSHandle<JSTaggedValue> &value,