Searched refs:srcArray (Results 1 – 8 of 8) sorted by relevance
| /arkcompiler/ets_runtime/ecmascript/ |
| D | tagged_array-inl.h | 170 void TaggedArray::RemoveElementByIndex(const JSThread *thread, JSHandle<TaggedArray> &srcArray, in RemoveElementByIndex() argument 174 Region *region = Region::ObjectAddressToRange(reinterpret_cast<TaggedObject *>(*srcArray)); in RemoveElementByIndex() 178 auto *addr = reinterpret_cast<JSTaggedType *>(ToUintPtr(srcArray->GetData()) + offset); in RemoveElementByIndex() 186 srcArray->Set(thread, index, srcArray->Get(index + 1)); in RemoveElementByIndex() 190 srcArray->Set(thread, effectiveLength - 1, JSTaggedValue::Hole()); in RemoveElementByIndex() 193 void TaggedArray::InsertElementByIndex(const JSThread *thread, JSHandle<TaggedArray> &srcArray, in InsertElementByIndex() argument 197 ASSERT(effectiveLength < srcArray->GetLength()); in InsertElementByIndex() 198 Region *region = Region::ObjectAddressToRange(reinterpret_cast<TaggedObject *>(*srcArray)); in InsertElementByIndex() 202 auto *addr = reinterpret_cast<JSTaggedType *>(ToUintPtr(srcArray->GetData()) + offset); in InsertElementByIndex() 210 JSTaggedValue oldValue = srcArray->Get(effectiveLength - 1); in InsertElementByIndex() [all …]
|
| D | tagged_array.h | 72 static inline void RemoveElementByIndex(const JSThread *thread, JSHandle<TaggedArray> &srcArray, 74 static inline void InsertElementByIndex(const JSThread *thread, JSHandle<TaggedArray> &srcArray,
|
| /arkcompiler/ets_runtime/ecmascript/js_api/ |
| D | js_api_plain_array.cpp | 81 void JSAPIPlainArray::AdjustArray(JSThread *thread, TaggedArray *srcArray, int32_t fromIndex, in AdjustArray() argument 88 JSTaggedValue value = srcArray->Get(idx); in AdjustArray() 89 srcArray->Set(thread, idx + 1, value); in AdjustArray() 97 JSTaggedValue value = srcArray->Get(fromIndex + i); in AdjustArray() 98 srcArray->Set(thread, toIndex + i, value); in AdjustArray() 100 srcArray->Set(thread, toIndex + i, JSTaggedValue::Hole()); in AdjustArray()
|
| D | js_api_lightweightset.cpp | 382 void JSAPILightWeightSet::AdjustArray(JSThread *thread, JSHandle<TaggedArray> srcArray, uint32_t fr… in AdjustArray() argument 389 JSTaggedValue value = srcArray->Get(idx); in AdjustArray() 390 srcArray->Set(thread, idx + 1, value); in AdjustArray() 398 JSTaggedValue value = srcArray->Get(fromIndex + i); in AdjustArray() 399 srcArray->Set(thread, toIndex + i, value); in AdjustArray() 401 srcArray->Set(thread, toIndex + i, JSTaggedValue::Hole()); in AdjustArray()
|
| D | js_api_lightweightset.h | 48 …void AdjustArray(JSThread *thread, JSHandle<TaggedArray> srcArray, uint32_t fromIndex, uint32_t to…
|
| D | js_api_plain_array.h | 63 void AdjustArray(JSThread *thread, TaggedArray *srcArray, int32_t fromIndex, int32_t toIndex,
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | typed_array_helper.cpp | 212 JSHandle<JSTaggedValue> srcArray = BuiltinsBase::GetCallArg(argv, 0); in CreateFromTypedArray() local 213 JSHandle<JSTypedArray> srcObj(srcArray); in CreateFromTypedArray() 263 ContentType srcArrayContentType = JSHandle<JSTypedArray>::Cast(srcArray)->GetContentType(); in CreateFromTypedArray()
|
| /arkcompiler/ets_runtime/ecmascript/containers/ |
| D | containers_lightweightset.cpp | 519 JSHandle<TaggedArray> srcArray(thread, lightweightset->GetValues()); in ToArray() local 520 JSHandle<TaggedArray> dstElements = factory->NewAndCopyTaggedArray(srcArray, length, length); in ToArray()
|