Home
last modified time | relevance | path

Searched refs:middleIndex (Results 1 – 6 of 6) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_array.cpp409 int64_t middleIndex = (beginIndex + endIndex) / 2; // 2 : half in Sort() local
411 … ObjectFastOperator::FastGetPropertyByIndex<true>(thread, obj.GetTaggedValue(), middleIndex)); in Sort()
416 endIndex = middleIndex; in Sort()
418 beginIndex = middleIndex + 1; in Sort()
Dtagged_list.cpp421 int middleIndex = 0; in Sort() local
428 middleIndex = (beginIndex + endIndex) / 2; // 2 : half in Sort()
429 middleValue.Update(taggedList->GetElement(nodeIndexMapToDataIndex[middleIndex])); in Sort()
433 endIndex = middleIndex; in Sort()
435 beginIndex = middleIndex + 1; in Sort()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_typedarray.cpp1415 uint32_t middleIndex = beginIndex + (endIndex - beginIndex) / 2; // 2 : half in Sort() local
1416 key1.Update(JSTaggedValue(middleIndex)); in Sort()
1423 compareResult > 0 ? (endIndex = middleIndex) : (beginIndex = middleIndex + 1); in Sort()
1694 uint32_t middleIndex = beginIndex + (endIndex - beginIndex) / 2; // 2 : half in ToSorted() local
1695 key1.Update(JSTaggedValue(middleIndex)); in ToSorted()
1702 compareResult > 0 ? (endIndex = middleIndex) : (beginIndex = middleIndex + 1); in ToSorted()
Dbuiltins_array.cpp2235 int middleIndex = (beginIndex + endIndex) / 2; // 2 : half in Sort() local
2237 …ctFastOperator::FastGetPropertyByIndex<true>(thread, thisObjHandle.GetTaggedValue(), middleIndex)); in Sort()
2242 endIndex = middleIndex; in Sort()
2244 beginIndex = middleIndex + 1; in Sort()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_vector.cpp771 uint32_t middleIndex = (beginIndex + endIndex) / 2; // 2 : half in Sort() local
772 middleValue.Update(elements->Get(middleIndex)); in Sort()
776 endIndex = middleIndex; in Sort()
778 beginIndex = middleIndex + 1; in Sort()
Dcontainers_arraylist.cpp594 uint32_t middleIndex = (beginIndex + endIndex) / 2; // 2 : half in Sort() local
595 middleValue.Update(elements->Get(middleIndex)); in Sort()
600 endIndex = middleIndex; in Sort()
602 beginIndex = middleIndex + 1; in Sort()