• Home
  • Raw
  • Download

Lines Matching refs:insertCount

94 …                                  uint32_t start, uint32_t insertCount, uint32_t actualDeleteCount,  in Splice()  argument
151 uint32_t newCapacity = len - actualDeleteCount + insertCount; in Splice()
155 if (insertCount < actualDeleteCount) { in Splice()
163 if ((idx + insertCount) < ElementAccessor::GetElementsLength(thisObjHandle)) { in Splice()
164 … ElementAccessor::Set(thread, thisObjHandle, idx + insertCount, element, needTransition); in Splice()
180 … ElementAccessor::Set(thread, thisObjHandle, idx + insertCount - 1, element, needTransition); in Splice()
962 int64_t insertCount, int64_t index, JSHandle<JSTaggedValue> value) in With() argument
966 … JSTaggedNumber(static_cast<uint32_t>(insertCount))); in With()
973 if (insertCount > ElementAccessor::GetElementsLength(newArrayHandle)) { in With()
974 destElements = *JSObject::GrowElementsCapacity(thread, newArrayHandle, insertCount); in With()
978 for (uint32_t idx = 0; idx < insertCount; idx++) { in With()
990 JSHandle<JSArray>::Cast(newArrayHandle)->SetArrayLength(thread, insertCount); in With()
995 … int64_t argc, int64_t actualStart, int64_t actualSkipCount, int64_t insertCount) in ToSpliced() argument
1001 … JSTaggedNumber(static_cast<uint32_t>(insertCount))); in ToSpliced()
1008 if (insertCount > ElementAccessor::GetElementsLength(newArrayHandle)) { in ToSpliced()
1009 destElements = *JSObject::GrowElementsCapacity(thread, newArrayHandle, insertCount); in ToSpliced()
1030 while (i < insertCount) { in ToSpliced()
1041 JSHandle<JSArray>::Cast(newArrayHandle)->SetArrayLength(thread, insertCount); in ToSpliced()
1047 int64_t insertCount) in ToReversed() argument
1051 … JSTaggedNumber(static_cast<uint32_t>(insertCount))); in ToReversed()
1058 if (insertCount > ElementAccessor::GetElementsLength(newArrayHandle)) { in ToReversed()
1059 destElements = *JSObject::GrowElementsCapacity(thread, newArrayHandle, insertCount); in ToReversed()
1063 for (uint32_t idx = 0; idx < insertCount; idx++) { in ToReversed()
1066 ElementAccessor::Set(thread, newArrayHandle, insertCount - idx - 1, in ToReversed()
1069 … ElementAccessor::Set(thread, newArrayHandle, insertCount - idx - 1, kValue, needTransition); in ToReversed()
1072 JSHandle<JSArray>::Cast(newArrayHandle)->SetArrayLength(thread, insertCount); in ToReversed()