Home
last modified time | relevance | path

Searched refs:srcArray (Results 1 – 9 of 9) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Dtagged_array-inl.h172 void TaggedArray::RemoveElementByIndex(const JSThread *thread, JSHandle<TaggedArray> &srcArray, in RemoveElementByIndex() argument
176 Region *region = Region::ObjectAddressToRange(reinterpret_cast<TaggedObject *>(*srcArray)); in RemoveElementByIndex()
180 auto *addr = reinterpret_cast<JSTaggedType *>(ToUintPtr(srcArray->GetData()) + offset); in RemoveElementByIndex()
188 srcArray->Set(thread, index, srcArray->Get(index + 1)); in RemoveElementByIndex()
192 srcArray->Set(thread, effectiveLength - 1, JSTaggedValue::Hole()); in RemoveElementByIndex()
195 void TaggedArray::InsertElementByIndex(const JSThread *thread, JSHandle<TaggedArray> &srcArray, in InsertElementByIndex() argument
199 ASSERT(effectiveLength < srcArray->GetLength()); in InsertElementByIndex()
200 Region *region = Region::ObjectAddressToRange(reinterpret_cast<TaggedObject *>(*srcArray)); in InsertElementByIndex()
204 auto *addr = reinterpret_cast<JSTaggedType *>(ToUintPtr(srcArray->GetData()) + offset); in InsertElementByIndex()
212 JSTaggedValue oldValue = srcArray->Get(effectiveLength - 1); in InsertElementByIndex()
[all …]
Dtagged_array.h73 static inline void RemoveElementByIndex(const JSThread *thread, JSHandle<TaggedArray> &srcArray,
75 static inline void InsertElementByIndex(const JSThread *thread, JSHandle<TaggedArray> &srcArray,
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_string_builder.cpp116 coretypes::Array *srcArray = reinterpret_cast<EtsArray *>(obj)->GetCoreType(); in ReconstructStringAsMUtf8() local
117 uint32_t n = srcArray->GetLength(); in ReconstructStringAsMUtf8()
120 dstData[j] = srcArray->GetPrimitive<uint16_t>(sizeof(uint16_t) * j); in ReconstructStringAsMUtf8()
142 coretypes::Array *srcArray = reinterpret_cast<EtsCharArray *>(obj)->GetCoreType(); in ReconstructStringAsUtf16() local
143 auto *srcData = reinterpret_cast<EtsChar *>(srcArray->GetData()); in ReconstructStringAsUtf16()
144 uint32_t n = srcArray->GetLength(); in ReconstructStringAsUtf16()
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_lightweightset.cpp384 void JSAPILightWeightSet::AdjustArray(JSThread *thread, JSHandle<TaggedArray> srcArray, uint32_t fr… in AdjustArray() argument
391 JSTaggedValue value = srcArray->Get(idx); in AdjustArray()
392 srcArray->Set(thread, idx + 1, value); in AdjustArray()
400 JSTaggedValue value = srcArray->Get(fromIndex + i); in AdjustArray()
401 srcArray->Set(thread, toIndex + i, value); in AdjustArray()
403 srcArray->Set(thread, toIndex + i, JSTaggedValue::Hole()); in AdjustArray()
Djs_api_plain_array.cpp81 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()
Djs_api_lightweightset.h48 …void AdjustArray(JSThread *thread, JSHandle<TaggedArray> srcArray, uint32_t fromIndex, uint32_t to…
Djs_api_plain_array.h63 void AdjustArray(JSThread *thread, TaggedArray *srcArray, int32_t fromIndex, int32_t toIndex,
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_lightweightset.cpp523 JSHandle<TaggedArray> srcArray(thread, lightweightset->GetValues()); in ToArray() local
525 if (srcArray.GetTaggedValue().IsCOWArray()) { in ToArray()
526 array->SetElements(thread, srcArray.GetTaggedValue()); in ToArray()
530 auto newElements = factory->CopyArray(srcArray, srcArray->GetLength(), srcArray->GetLength(), in ToArray()
/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper.cpp214 JSHandle<JSTaggedValue> srcArray = BuiltinsBase::GetCallArg(argv, 0); in CreateFromTypedArray() local
215 JSHandle<JSTypedArray> srcObj(srcArray); in CreateFromTypedArray()
266 ContentType srcArrayContentType = JSHandle<JSTypedArray>::Cast(srcArray)->GetContentType(); in CreateFromTypedArray()