Lines Matching refs:JSHandle
34 static PUBLIC_API JSHandle<JSTaggedValue> ArrayCreate(JSThread *thread, JSTaggedNumber length,
36 static JSHandle<JSTaggedValue> ArrayCreate(JSThread *thread, JSTaggedNumber length,
37 const JSHandle<JSTaggedValue> &newTarget,
39 static JSTaggedValue ArraySpeciesCreate(JSThread *thread, const JSHandle<JSObject> &originalArray,
41 static bool ArraySetLength(JSThread *thread, const JSHandle<JSObject> &array, const PropertyDescriptor &desc);
42 static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &array, const JSHandle<JSTaggedValue> &key,
44 static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &array, uint32_t index,
47 static bool IsLengthString(JSThread *thread, const JSHandle<JSTaggedValue> &key);
49 static JSHandle<JSArray> CreateArrayFromList(JSThread *thread, const JSHandle<TaggedArray> &elements);
50 static JSHandle<JSArray> CreateArrayFromList(JSThread *thread, const JSHandle<JSTaggedValue> &newtarget,
51 const JSHandle<TaggedArray> &elements);
88 static bool PropertyKeyToArrayIndex(JSThread *thread, const JSHandle<JSTaggedValue> &key, uint32_t *output);
90 static JSTaggedValue LengthGetter(JSThread *thread, const JSHandle<JSObject> &self);
92 static bool LengthSetter(JSThread *thread, const JSHandle<JSObject> &self, const JSHandle<JSTaggedValue> &value,
95 static JSHandle<JSTaggedValue> FastGetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
98 static JSHandle<JSTaggedValue> FastGetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
99 const JSHandle<JSTaggedValue> &key);
101 static bool FastSetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index,
102 const JSHandle<JSTaggedValue> &value);
104 static bool FastSetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
105 const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value);
107 static bool TryFastCreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
108 const JSHandle<JSTaggedValue> &value,
111 static JSTaggedValue Sort(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &fn);
112 static bool IncludeInSortedValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
113 const JSHandle<JSTaggedValue> &value);
114 static JSHandle<TaggedArray> ToTaggedArray(JSThread *thread, const JSHandle<JSTaggedValue> &obj);
115 static void PUBLIC_API CheckAndCopyArray(const JSThread *thread, JSHandle<JSArray> obj);
116 static void SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint32_t newLen,
118 static void SortElements(JSThread *thread, const JSHandle<TaggedArray> &elements,
119 const JSHandle<JSTaggedValue> &fn);
120 static void SortElementsByObject(JSThread *thread, const JSHandle<JSObject> &thisObjHandle,
121 const JSHandle<JSTaggedValue> &fn);
122 static void SortElementsByInsertionSort(JSThread *thread, const JSHandle<TaggedArray> &elements, uint32_t len,
123 const JSHandle<JSTaggedValue> &fn);
124 static void SortElementsByMergeSort(JSThread *thread, const JSHandle<TaggedArray> &elements,
125 const JSHandle<JSTaggedValue> &fn, int64_t startIdx, int64_t endIdx);
126 static void MergeSortedElements(JSThread *thread, const JSHandle<TaggedArray> &elements,
127 const JSHandle<JSTaggedValue> &fn, int64_t startIdx, int64_t middleIdx, int64_t endIdx);
133 JSHandle<TaggedArray> newElements(factory->NewTaggedArray(length));
135 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, newElements));