/arkcompiler/ets_runtime/ecmascript/ |
D | js_arraybuffer.cpp | 29 …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()
|
D | js_arraybuffer.h | 27 …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);
|
D | linked_hash_table.h | 226 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()
|
D | tagged_hash_table.h | 365 int fromIndex = Derived::GetKeyIndex(i); in Rehash() local 372 JSTaggedValue tv = Get(fromIndex); in Rehash() 375 tv = Get(fromIndex + j); in Rehash()
|
D | tagged_list.h | 147 … const int fromIndex, const int toIndex, const JSHandle<TaggedSingleList> &subList);
|
D | tagged_list.cpp | 452 const int fromIndex, const int toIndex, in GetSubList() argument 460 if (nodeSum == fromIndex) { in GetSubList() 485 subList->SetNumberOfNodes(thread, toIndex - fromIndex); in GetSubList()
|
D | js_hclass.cpp | 108 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/ |
D | lib_ark_builtins.d.ts | 509 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/ |
D | js_api_vector.cpp | 207 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 …]
|
D | js_api_list.cpp | 182 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()
|
D | js_api_plain_array.cpp | 81 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()
|
D | js_api_plain_array.h | 61 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,
|
D | js_api_arraylist.cpp | 297 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()
|
D | js_api_vector.h | 64 int32_t fromIndex, int32_t toIndex); 67 int32_t fromIndex, int32_t toIndex);
|
D | js_api_lightweightset.cpp | 382 …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()
|
D | js_api_list.h | 45 const int fromIndex, const int toIndex);
|
D | js_api_lightweightset.h | 48 …void AdjustArray(JSThread *thread, JSHandle<TaggedArray> srcArray, uint32_t fromIndex, uint32_t to…
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_array_buffer_test.cpp | 73 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/ |
D | genericClassPropertyInheritanceSpecialization.ts | 34 indexOf(searchElement: T, fromIndex?: number): number;
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_array.cpp | 1154 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/ |
D | containers_vector.cpp | 403 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()
|
D | containers_list.cpp | 551 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/ |
D | es2015_tests.txt | 997 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 …]
|
D | CI_tests.txt | 2221 built-ins/TypedArray/prototype/indexOf/fromIndex-infinity.js 2236 built-ins/TypedArray/prototype/lastIndexOf/fromIndex-infinity.js
|
/arkcompiler/ets_frontend/es2panda/test/ |
D | test262skiplist.txt | 643 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
|