Home
last modified time | relevance | path

Searched refs:fromIndex (Results 1 – 25 of 25) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_arraybuffer.cpp29 …opyDataBlockBytes(JSTaggedValue toBlock, JSTaggedValue fromBlock, int32_t fromIndex, int32_t count) in CopyDataBlockBytes() argument
33 CopyDataPointBytes(toBuf, fromBuf, fromIndex, count); in CopyDataBlockBytes()
36 void JSArrayBuffer::CopyDataPointBytes(void *toBuf, void *fromBuf, int32_t fromIndex, int32_t count) in CopyDataPointBytes() argument
40 if (memcpy_s(to, count, from + fromIndex, count) != EOK) { // NOLINT in CopyDataPointBytes()
Djs_arraybuffer.h27 …pyDataBlockBytes(JSTaggedValue toBlock, JSTaggedValue fromBlock, int32_t fromIndex, int32_t count);
28 static void CopyDataPointBytes(void *toBuf, void *fromBuf, int32_t fromIndex, int32_t count);
Dlinked_hash_table.h226 int fromIndex = static_cast<int>(EntryToIndex(i)); in Rehash() local
227 JSTaggedValue key = GetElement(fromIndex); in Rehash()
244 newTable->SetElement(thread, desIndex + j, GetElement(fromIndex + j)); in Rehash()
Dtagged_hash_table.h365 int fromIndex = Derived::GetKeyIndex(i); in Rehash() local
372 JSTaggedValue tv = Get(fromIndex); in Rehash()
375 tv = Get(fromIndex + j); in Rehash()
Dtagged_list.h147 … const int fromIndex, const int toIndex, const JSHandle<TaggedSingleList> &subList);
Dtagged_list.cpp452 const int fromIndex, const int toIndex, in GetSubList() argument
460 if (nodeSum == fromIndex) { in GetSubList()
485 subList->SetNumberOfNodes(thread, toIndex - fromIndex); in GetSubList()
Djs_hclass.cpp108 int fromIndex = GetEntryIndex(i); in Rehash() local
114 JSTaggedValue tv = Get(fromIndex); in Rehash()
117 tv = Get(fromIndex + j); in Rehash()
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dlib_ark_builtins.d.ts509 indexOf(searchElement: any, fromIndex?: number): number;
515 lastIndexOf(searchElement: any, fromIndex?: number): number;
547 includes(searchElement: any, fromIndex?: number): boolean;
776 indexOf(searchElement: number, fromIndex?: number): number;
780 lastIndexOf(searchElement: number, fromIndex?: number): number;
812 includes(searchElement: number, fromIndex?: number): boolean;
864 indexOf(searchElement: number, fromIndex?: number): number;
868 lastIndexOf(searchElement: number, fromIndex?: number): number;
900 includes(searchElement: number, fromIndex?: number): boolean;
952 indexOf(searchElement: number, fromIndex?: number): number;
[all …]
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_vector.cpp207 int32_t fromIndex, int32_t toIndex) in RemoveByRange() argument
210 if (toIndex <= fromIndex) { in RemoveByRange()
214 if (fromIndex < 0 || fromIndex >= length) { in RemoveByRange()
224 elements->Set(thread, fromIndex + i, elements->Get(endIndex + i)); in RemoveByRange()
227 int32_t newLength = length - (endIndex - fromIndex); in RemoveByRange()
234 int32_t fromIndex, int32_t toIndex) in SubVector() argument
237 if (fromIndex < 0 || toIndex < 0 || in SubVector()
238 fromIndex >= length || toIndex >= length) { in SubVector()
242 if (toIndex <= fromIndex) { in SubVector()
247 uint32_t newLength = static_cast<uint32_t>(toIndex - fromIndex); in SubVector()
[all …]
Djs_api_list.cpp182 const int fromIndex, const int toIndex) in GetSubList() argument
187 if (fromIndex < 0 || fromIndex >= size) { in GetSubList()
190 << (size - 1) << ". Received value is: " << fromIndex; in GetSubList()
194 if (toIndex < 0 || toIndex <= fromIndex || toIndex >= nodeLength) { in GetSubList()
201 …uint32_t len = TaggedSingleList::ELEMENTS_START_INDEX + (toIndex - fromIndex + 1) * TaggedSingleLi… in GetSubList()
205 TaggedSingleList::GetSubList(thread, singleList, fromIndex, toIndex, subSingleList); in GetSubList()
Djs_api_plain_array.cpp81 void JSAPIPlainArray::AdjustArray(JSThread *thread, TaggedArray *srcArray, int32_t fromIndex, in AdjustArray() argument
87 while (fromIndex < toIndex) { in AdjustArray()
91 fromIndex++; in AdjustArray()
94 uint32_t moveSize = size - static_cast<uint32_t>(fromIndex); in AdjustArray()
96 if ((fromIndex + static_cast<int32_t>(i)) < static_cast<int32_t>(size)) { in AdjustArray()
97 JSTaggedValue value = srcArray->Get(fromIndex + i); in AdjustArray()
106 int32_t JSAPIPlainArray::BinarySearch(TaggedArray *array, int32_t fromIndex, int32_t toIndex, int32… in BinarySearch() argument
108 int32_t low = fromIndex; in BinarySearch()
Djs_api_plain_array.h61 int32_t BinarySearch(TaggedArray *array, int32_t fromIndex, int32_t toIndex, int32_t key);
63 void AdjustArray(JSThread *thread, TaggedArray *srcArray, int32_t fromIndex, int32_t toIndex,
Djs_api_arraylist.cpp297 int fromIndex = JSTaggedValue::ToInt32(thread, value1); in SubArrayList() local
300 if (fromIndex < 0 || fromIndex >= size) { in SubArrayList()
303 << ". Received value is: " << fromIndex; in SubArrayList()
307 if (toIndex <= fromIndex || toIndex < 0 || toIndex > length) { in SubArrayList()
316 int newLength = toIndex == length ? length - fromIndex : endIndex - fromIndex; in SubArrayList()
326 subArrayList->Set(thread, i, elements->Get(fromIndex + i)); in SubArrayList()
Djs_api_vector.h64 int32_t fromIndex, int32_t toIndex);
67 int32_t fromIndex, int32_t toIndex);
Djs_api_lightweightset.cpp382 …PILightWeightSet::AdjustArray(JSThread *thread, JSHandle<TaggedArray> srcArray, uint32_t fromIndex, in AdjustArray() argument
388 while (fromIndex < toIndex) { in AdjustArray()
392 fromIndex++; in AdjustArray()
395 uint32_t moveSize = size - fromIndex; in AdjustArray()
397 if ((fromIndex + i) < size) { in AdjustArray()
398 JSTaggedValue value = srcArray->Get(fromIndex + i); in AdjustArray()
Djs_api_list.h45 const int fromIndex, const int toIndex);
Djs_api_lightweightset.h48 …void AdjustArray(JSThread *thread, JSHandle<TaggedArray> srcArray, uint32_t fromIndex, uint32_t to…
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_array_buffer_test.cpp73 int32_t fromIndex = 0; in HWTEST_F_L0() local
76 JSHandle<JSTaggedValue>::Cast(fromNativePointer).GetTaggedValue(), fromIndex, count); in HWTEST_F_L0()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DgenericClassPropertyInheritanceSpecialization.ts34 indexOf(searchElement: T, fromIndex?: number): number;
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_array.cpp1154 double fromIndex = 0; in IndexOf() local
1160 fromIndex = base::NumberHelper::TruncateDouble(fromIndexTemp.GetNumber()); in IndexOf()
1164 if (fromIndex >= len) { in IndexOf()
1173 int64_t from = (fromIndex >= 0) ? fromIndex : ((len + fromIndex) >= 0 ? len + fromIndex : 0); in IndexOf()
1340 double fromIndex = len - 1; in LastIndexOf() local
1346 fromIndex = base::NumberHelper::TruncateDouble(fromIndexTemp.GetNumber()); in LastIndexOf()
1353 if (fromIndex >= 0) { in LastIndexOf()
1354 from = (len - 1) < fromIndex ? len - 1 : fromIndex; in LastIndexOf()
1356 double tempFrom = len + fromIndex; in LastIndexOf()
2865 double fromIndex = 0; in Includes() local
[all …]
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_vector.cpp403 JSHandle<JSTaggedValue> fromIndex = GetCallArg(argv, 0); in RemoveByRange() local
405 if (!fromIndex->IsNumber() || !toIndex->IsNumber()) { in RemoveByRange()
410 JSTaggedValue::ToInt32(thread, fromIndex), in RemoveByRange()
463 JSHandle<JSTaggedValue> fromIndex = GetCallArg(argv, 0); in SubVector() local
465 if (!fromIndex->IsNumber() || !toIndex->IsNumber()) { in SubVector()
469 … JSTaggedValue::ToInt32(thread, fromIndex), in SubVector()
Dcontainers_list.cpp551 JSHandle<JSTaggedValue> fromIndex = GetCallArg(argv, 0); in GetSubList() local
553 if (!fromIndex->IsInteger()) { in GetSubList()
554 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, fromIndex.GetTaggedValue()); in GetSubList()
574 …JSTaggedValue newList = JSAPIList::GetSubList(thread, jsAPIList, fromIndex->GetInt(), toIndex->Get… in GetSubList()
/arkcompiler/ets_frontend/test262/
Des2015_tests.txt997 built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js
998 built-ins/Array/prototype/includes/fromIndex-infinity.js
999 built-ins/Array/prototype/includes/fromIndex-minus-zero.js
4645 built-ins/TypedArray/prototype/includes/BigInt/detached-buffer-during-fromIndex-returns-false-for-z…
4646 built-ins/TypedArray/prototype/includes/BigInt/detached-buffer-during-fromIndex-returns-true-for-un…
4647 built-ins/TypedArray/prototype/includes/BigInt/fromIndex-equal-or-greater-length-returns-false.js
4648 built-ins/TypedArray/prototype/includes/BigInt/fromIndex-infinity.js
4649 built-ins/TypedArray/prototype/includes/BigInt/fromIndex-minus-zero.js
4658 built-ins/TypedArray/prototype/includes/detached-buffer-during-fromIndex-returns-false-for-zero.js
4659 built-ins/TypedArray/prototype/includes/detached-buffer-during-fromIndex-returns-true-for-undefined…
[all …]
DCI_tests.txt2221 built-ins/TypedArray/prototype/indexOf/fromIndex-infinity.js
2236 built-ins/TypedArray/prototype/lastIndexOf/fromIndex-infinity.js
/arkcompiler/ets_frontend/es2panda/test/
Dtest262skiplist.txt643 built-ins/TypedArray/prototype/includes/BigInt/fromIndex-equal-or-greater-length-returns-false.js
644 built-ins/TypedArray/prototype/includes/BigInt/fromIndex-infinity.js
645 built-ins/TypedArray/prototype/includes/BigInt/fromIndex-minus-zero.js
654 built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-equal-or-greater-length-returns-minus-one.js
655 built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-infinity.js
656 built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-minus-zero.js
671 built-ins/TypedArray/prototype/lastIndexOf/BigInt/fromIndex-infinity.js
672 built-ins/TypedArray/prototype/lastIndexOf/BigInt/fromIndex-minus-zero.js