Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
Djs_stackgetter.cpp113 int srcLength = strlen(src); in CheckAndCopy() local
114 if (length <= static_cast<size_t>(srcLength) || strcpy_s(dest, srcLength + 1, src) != EOK) { in CheckAndCopy()
118 dest[srcLength] = '\0'; in CheckAndCopy()
154 uint8_t srcLength = stream.str().size(); in GetNativeStack() local
155 CheckAndCopy(functionName + methodNameStrLength + napiBeginLength + srcLength, in GetNativeStack()
156 size - methodNameStrLength - napiBeginLength - srcLength, ")"); in GetNativeStack()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_namespace.cpp328 int srcLength = strlen(moduleStr.c_str()) + 1; in SetModuleDeregisterProcession() local
329 auto moduleNameData = thread->GetEcmaVM()->GetNativeAreaAllocator()->AllocateBuffer(srcLength); in SetModuleDeregisterProcession()
330 if (memcpy_s(moduleNameData, srcLength, moduleStr.c_str(), srcLength) != EOK) { in SetModuleDeregisterProcession()
335 tmpData[srcLength - 1] = '\0'; in SetModuleDeregisterProcession()
338 …erpret_cast<void *>(moduleNameData), callback, reinterpret_cast<void *>(thread), false, srcLength); in SetModuleDeregisterProcession()
/arkcompiler/ets_runtime/ecmascript/
Decma_string.cpp775 uint32_t srcLength = srcFlat->GetLength(); in ToLower() local
778 … std::u16string u16str = base::StringHelper::Utf16ToU16String(srcFlat->GetDataUtf16(), srcLength); in ToLower()
790 uint32_t srcLength = srcFlat->GetLength(); in TryToLower() local
793 uint32_t upperIndex = srcLength; in TryToLower()
794 Span<uint8_t> data(srcFlat->GetDataUtf8Writable(), srcLength); in TryToLower()
795 for (uint32_t index = 0; index < srcLength; ++index) { in TryToLower()
801 if (upperIndex == srcLength) { in TryToLower()
813 uint32_t srcLength = srcFlat->GetLength(); in ConvertUtf8ToLowerOrUpper() local
814 auto newString = CreateLineString(vm, srcLength, true); in ConvertUtf8ToLowerOrUpper()
815 Span<uint8_t> data(srcFlat->GetDataUtf8Writable(), srcLength); in ConvertUtf8ToLowerOrUpper()
[all …]
Djs_stable_array.h58 … uint32_t srcLength, JSHandle<TaggedArray> &elements);
Djs_stable_array.cpp665 … uint32_t srcLength, JSHandle<TaggedArray> &elements) in FastCopyFromArrayToTypedArray() argument
676 if (srcLength + static_cast<uint64_t>(targetOffset) > targetLength) { in FastCopyFromArrayToTypedArray()
685 for (uint32_t i = 0; i < srcLength; i++) { in FastCopyFromArrayToTypedArray()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_typedarray.cpp1170 uint32_t srcLength = typedArray->GetArrayLength(); in Set() local
1173 if (srcLength + targetOffset > targetLength) { in Set()
1199 ASSERT((static_cast<uint64_t>(targetElementSize) * static_cast<uint64_t>(srcLength) + in Set()
1201 uint32_t limit = targetByteIndex + targetElementSize * srcLength; in Set()
1233 … if (memcpy_s(targetBuf, srcLength * srcElementSize, srcBuf, srcLength * srcElementSize) != EOK) { in Set()
1462 uint32_t srcLength = thisObj->GetArrayLength(); in Subarray() local
1473 double tempBeginIndex = relativeBegin + static_cast<double>(srcLength); in Subarray()
1476 beginIndex = relativeBegin < static_cast<double>(srcLength) ? in Subarray()
1477 static_cast<uint32_t>(relativeBegin) : srcLength; in Subarray()
1481 double relativeEnd = srcLength; in Subarray()
[all …]
Dbuiltins_string.cpp1151 int32_t srcLength = static_cast<int32_t>(EcmaStringAccessor(srcString).GetLength()); in GetSubstitution() local
1152 if (tailPos < srcLength) { in GetSubstitution()
1154 ecmaVm, srcString, tailPos, srcLength - tailPos); in GetSubstitution()
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
Dsamples_record.cpp887 int srcLength = strlen(src); in CheckAndCopy() local
888 if (length <= static_cast<size_t>(srcLength) || strcpy_s(dest, srcLength + 1, src) != EOK) { in CheckAndCopy()
892 dest[srcLength] = '\0'; in CheckAndCopy()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dgate_meta_data.h820 auto srcLength = str.size(); in StringMetaData() local
824 … if (destlength <= static_cast<size_t>(srcLength) || strcpy_s(dest, destlength, src) != EOK) { in StringMetaData()