Lines Matching defs:JSObject

404 class JSObject : public ECMAObject {
417 CAST_CHECK(JSObject, IsECMAObject);
436 static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key,
439 static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
442 static bool CreateMethodProperty(JSThread *thread, const JSHandle<JSObject> &obj,
445 static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj,
449 static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
453 static JSHandle<TaggedArray> PUBLIC_API EnumerableOwnNames(JSThread *thread, const JSHandle<JSObject> &obj);
456 static JSHandle<TaggedArray> EnumerableOwnPropertyNames(JSThread *thread, const JSHandle<JSObject> &obj,
458 static void EnumerableOwnPropertyNamesHelper(JSThread *thread, const JSHandle<JSObject> &obj,
464 static bool SetIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel level);
466 static bool FreezeSharedObject(JSThread *thread, const JSHandle<JSObject> &obj);
468 static bool TestIntegrityLevel(JSThread *thread, const JSHandle<JSObject> &obj, IntegrityLevel level);
470 static JSHandle<JSTaggedValue> SpeciesConstructor(JSThread *thread, const JSHandle<JSObject> &obj,
481 static JSTaggedValue GetPrototype(const JSHandle<JSObject> &obj);
486 static bool SetPrototype(JSThread *thread, const JSHandle<JSObject> &obj,
494 static bool PreventExtensions(JSThread *thread, const JSHandle<JSObject> &obj);
497 static bool GetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key,
502 static bool OrdinaryGetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj,
509 static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key,
512 static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
518 static bool OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj,
522 static bool OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
533 static OperationResult PUBLIC_API GetProperty(JSThread *thread, const JSHandle<JSObject> &obj,
546 static bool SetProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key,
564 static bool HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key);
566 static bool HasProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index);
569 static bool DeleteProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key,
573 static JSHandle<TaggedArray> GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj);
575 static JSHandle<TaggedArray> GetAllPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t filter);
577 static void CollectEnumKeysAlongProtoChain(JSThread *thread, const JSHandle<JSObject> &obj,
581 static void AppendOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj,
585 static JSHandle<TaggedArray> GetOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSObject> &obj);
588 static JSHandle<JSObject> ObjectCreate(JSThread *thread, const JSHandle<JSObject> &proto);
653 static PUBLIC_API void DefinePropertyByLiteral(JSThread *thread, const JSHandle<JSObject> &obj,
661 static PUBLIC_API JSHandle<JSObject> CreateObjectFromProperties(const JSThread *thread,
664 static JSHandle<JSObject> CreateObjectFromProperties(const JSThread *thread,
668 static JSHandle<JSObject> CreateObjectFromPropertiesByIHClass(const JSThread *thread,
674 static void GetAllKeys(const JSThread *thread, const JSHandle<JSObject> &obj, int offset,
676 static void GetAllKeysForSerialization(const JSHandle<JSObject> &obj, std::vector<JSTaggedValue> &keyVector);
678 static void GetAllKeysByFilter(const JSThread *thread, const JSHandle<JSObject> &obj,
682 static void GetAllElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
685 const JSHandle<JSObject> &obj,
690 static void GetALLElementKeysIntoVector(const JSThread *thread, const JSHandle<JSObject> &obj,
696 static JSHandle<TaggedArray> GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
698 static void CollectEnumElementsAlongProtoChain(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
701 static void GetEnumElementKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
703 static JSHandle<TaggedArray> GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj,
705 static uint32_t GetAllEnumKeys(JSThread *thread, const JSHandle<JSObject> &obj, int offset,
723 const JSHandle<JSObject> &receiver);
744 static bool IsArrayLengthWritable(JSThread *thread, const JSHandle<JSObject> &receiver);
748 static bool ShouldOptimizeAsFastElements(const JSThread *thread, JSHandle<JSObject> obj);
749 static JSHandle<TaggedArray> GrowElementsCapacity(const JSThread *thread, const JSHandle<JSObject> &obj,
764 static void TryOptimizeAsFastElements(const JSThread *thread, JSHandle<JSObject> obj);
765 static void OptimizeAsFastProperties(const JSThread *thread, JSHandle<JSObject> obj);
767 static void SetSProperties(JSThread *thread, JSHandle<JSObject> obj, const std::vector<PropertyDescriptor> &descs);
769 static void PUBLIC_API TryMigrateToGenericKindForJSObject(const JSThread *thread, const JSHandle<JSObject> &obj,
772 static void ElementsToDictionary(const JSThread *thread, JSHandle<JSObject> obj);
784 static bool HasMutantTaggedArrayElements(const JSHandle<JSObject> &obj);
787 JSThread *thread, const JSHandle<JSObject> &receiver, uint32_t index, const JSHandle<JSTaggedValue> &value,
792 static void DeletePropertyInternal(JSThread *thread, const JSHandle<JSObject> &obj,
804 JSThread *thread, const JSHandle<JSObject> &obj, uint32_t *copyLengthOfKeys, uint32_t *copyLengthOfElements);
805 static bool CheckHClassHit(const JSHandle<JSObject> &obj, const JSHandle<JSHClass> &cls);
811 static void TrimInlinePropsSpace(const JSThread *thread, const JSHandle<JSObject> &object,