Lines Matching refs:JSArray
57 return JSArray::ArrayCreate(thread, JSTaggedNumber(0), newTarget).GetTaggedValue(); in ArrayConstructor()
63 … JSHandle<JSObject> newArrayHandle(JSArray::ArrayCreate(thread, JSTaggedNumber(0), newTarget)); in ArrayConstructor()
87 JSArray::SetCapacity(thread, newArrayHandle, 0, newLen, true); in ArrayConstructor()
114 auto newArray = JSArray::CreateArrayFromList(thread, newTarget, elements); in ArrayConstructor()
124 …JSTaggedValue newArray = JSArray::ArrayCreate(thread, JSTaggedNumber(argc), newTarget).GetTaggedVa… in ArrayConstructor()
150 JSArray::Cast(*newArrayHandle)->SetArrayLength(thread, argc); in ArrayConstructor()
223 newArray = JSArray::ArrayCreate(thread, JSTaggedNumber(0)).GetTaggedValue(); in From()
247 … JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, arrayLike, k); in From()
342 …newArray = JSArray::ArrayCreate(thread, JSTaggedNumber(static_cast<double>(len))).GetTaggedValue(); in From()
361 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, arrayLike, k); in From()
433 newArray = JSArray::ArrayCreate(thread, JSTaggedNumber(argc)); in Of()
489 …JSTaggedValue newArray = JSArray::ArraySpeciesCreate(thread, thisObjHandle, JSTaggedNumber(arrayLe… in Concat()
543 JSArray::FastGetPropertyByValue(thread, ele, fromKey); in Concat()
683 …JSHandle<JSTaggedValue> fromValHandle = JSArray::FastGetPropertyByValue(thread, thisObjVal, fromKe… in CopyWithin()
685 JSArray::FastSetPropertyByValue(thread, thisObjVal, toKey, fromValHandle); in CopyWithin()
778 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in Every()
817 uint32_t length = JSArray::Cast(*thisObjHandle)->GetLength(); in Fill()
882 JSArray::FastSetPropertyByValue(thread, thisObjVal, key, value); in Fill()
904 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in FilterUnStableJSArray()
957 …JSTaggedValue newArray = JSArray::ArraySpeciesCreate(thread, thisObjHandle, JSTaggedNumber(arrayLe… in Filter()
1030 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in Find()
1102 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in FindIndex()
1174 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in ForEach()
1195 int64_t length = JSHandle<JSArray>::Cast(thisHandle)->GetArrayLength(); in IndexOfStable()
1327 … return JSStableArray::Join(thread, JSHandle<JSArray>::Cast(thisHandle), sepStringHandle, len); in Join()
1357 JSHandle<JSTaggedValue> element = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in Join()
1404 int64_t length = JSHandle<JSArray>::Cast(thisHandle)->GetArrayLength(); in LastIndexOfStable()
1518 … JSArray::ArraySpeciesCreate(thread, thisObjHandle, JSTaggedNumber(static_cast<double>(rawLen))); in Map()
1560 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in MapUnStableJSArray()
1593 return JSStableArray::Pop(JSHandle<JSArray>::Cast(thisHandle), argv); in Pop()
1649 return JSStableArray::Push(JSHandle<JSArray>::Cast(thisHandle), argv); in Push()
1677 JSArray::FastSetPropertyByValue(thread, thisObjVal, key, kValue); in Push()
1705 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in ReduceUnStableJSArray()
1796 … accumulator.Update(JSArray::FastGetPropertyByValue(thread, thisObjVal, k).GetTaggedValue()); in ReduceInner()
1885 … accumulator.Update(JSArray::FastGetPropertyByValue(thread, thisObjVal, k).GetTaggedValue()); in ReduceRightInner()
1923 … JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, key); in ReduceRightInner()
1961 len = JSArray::Cast(thisHandle->GetTaggedObject())->GetArrayLength(); in Reverse()
2026 lowerValueHandle = JSArray::FastGetPropertyByValue(thread, thisObjVal, lowerP); in Reverse()
2032 upperValueHandle = JSArray::FastGetPropertyByValue(thread, thisObjVal, upperP); in Reverse()
2036 JSArray::FastSetPropertyByValue(thread, thisObjVal, lowerP, upperValueHandle); in Reverse()
2038 JSArray::FastSetPropertyByValue(thread, thisObjVal, upperP, lowerValueHandle); in Reverse()
2041 JSArray::FastSetPropertyByValue(thread, thisObjVal, lowerP, upperValueHandle); in Reverse()
2048 JSArray::FastSetPropertyByValue(thread, thisObjVal, upperP, lowerValueHandle); in Reverse()
2073 return JSStableArray::Shift(JSHandle<JSArray>::Cast(thisHandle), argv); in Shift()
2120 … JSHandle<JSTaggedValue> fromValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in Shift()
2122 JSArray::FastSetPropertyByValue(thread, thisObjVal, k - 1, fromValue); in Shift()
2222 … JSArray::ArraySpeciesCreate(thread, thisObjHandle, JSTaggedNumber(static_cast<double>(count))); in Slice()
2251 … JSHandle<JSTaggedValue> kValueHandle = JSArray::FastGetPropertyByValue(thread, thisObjVal, key); in Slice()
2316 JSArray::Sort(thread, JSHandle<JSTaggedValue>::Cast(thisObjHandle), callbackFnHandle); in Sort()
2388 JSTaggedValue newArray = JSArray::ArraySpeciesCreate(thread, thisObjHandle, in Splice()
2393 return JSStableArray::Splice(JSHandle<JSArray>::Cast(thisHandle), argv, start, insertCount, in Splice()
2413 … JSHandle<JSTaggedValue> fromValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, fromKey); in Splice()
2456 … JSHandle<JSTaggedValue> fromValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, fromKey); in Splice()
2458 JSArray::FastSetPropertyByValue(thread, thisObjVal, toKey, fromValue); in Splice()
2498 … JSHandle<JSTaggedValue> fromValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, fromKey); in Splice()
2500 JSArray::FastSetPropertyByValue(thread, thisObjVal, toKey, fromValue); in Splice()
2516 JSArray::FastSetPropertyByValue(thread, thisObjVal, key, itemValue); in Splice()
2594 … JSHandle<JSTaggedValue> nextElement = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in ToLocaleString()
2716 … JSHandle<JSTaggedValue> fromValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, fromKey); in Unshift()
2718 JSArray::FastSetPropertyByValue(thread, thisObjVal, toKey, fromValue); in Unshift()
2738 JSArray::FastSetPropertyByValue(thread, thisObjVal, toKey, toValue); in Unshift()
2810 …JSTaggedValue newArray = JSArray::ArraySpeciesCreate(thread, thisObjHandle, JSTaggedNumber(arrayLe… in Flat()
2850 …JSTaggedValue newArray = JSArray::ArraySpeciesCreate(thread, thisObjHandle, JSTaggedNumber(arrayLe… in FlatMap()
2922 … kValueHandle.Update(JSArray::FastGetPropertyByValue(thread, thisObjVal, key).GetTaggedValue()); in Includes()
2944 return JSStableArray::At(JSHandle<JSArray>::Cast(thisHandle), argv); in At()
2979 JSHandle<JSTaggedValue> element = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in At()
3022 JSArray::ArrayCreate(thread, JSTaggedNumber(static_cast<double>(len))).GetTaggedValue(); in With()
3027 … return JSStableArray::With(thread, JSHandle<JSArray>::Cast(thisHandle), len, actualIndex, value); in With()
3044 fromValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, fromKey); in With()
3081 …JSTaggedValue newArray = JSArray::ArrayCreate(thread, JSTaggedNumber(static_cast<double>(len))).Ge… in ToSorted()
3173 … return JSStableArray::ToSpliced(JSHandle<JSArray>::Cast(thisHandle), argv, argc, actualStart, in ToSpliced()
3178 JSArray::ArrayCreate(thread, JSTaggedNumber(static_cast<double>(newLen))); in ToSpliced()
3192 JSHandle<JSTaggedValue> iValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, i); in ToSpliced()
3222 … JSHandle<JSTaggedValue> fromValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, from); in ToSpliced()
3292 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in FindLast()
3363 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, k); in FindLastIndex()
3402 return JSStableArray::ToReversed(thread, JSHandle<JSArray>::Cast(thisHandle), len); in ToReversed()
3405 …JSTaggedValue newArray = JSArray::ArrayCreate(thread, JSTaggedNumber(static_cast<double>(len))).Ge… in ToReversed()
3424 … JSHandle<JSTaggedValue> fromValue = JSArray::FastGetPropertyByValue(thread, thisObjVal, fromKey); in ToReversed()