Searched refs:allocateLength (Results 1 – 3 of 3) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/ |
D | js_stable_array.cpp | 260 size_t allocateLength = 0; in Join() local 290 allocateLength += EcmaStringAccessor(nextStr).GetLength(); in Join() 296 allocateLength += sepLength * (len - 1); in Join() 298 …auto newString = EcmaStringAccessor::CreateLineString(thread->GetEcmaVM(), allocateLength, isOneBy… in Join() 307 allocateLength - static_cast<uint32_t>(current), sepLength); in Join() 314 allocateLength - static_cast<uint32_t>(current), nextLength); in Join()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_typedarray.cpp | 798 size_t allocateLength = 0; in Join() local 818 allocateLength += EcmaStringAccessor(nextStr).GetLength(); in Join() 823 allocateLength += sepLength * (length - 1); in Join() 824 if (allocateLength <= 1) { in Join() 828 …auto newString = EcmaStringAccessor::CreateLineString(thread->GetEcmaVM(), allocateLength, isOneBy… in Join() 837 … newString, *sepStringHandle, current, allocateLength - static_cast<size_t>(current), sepLength); in Join() 844 allocateLength - static_cast<size_t>(current), nextLength); in Join()
|
D | builtins_array.cpp | 1274 uint32_t allocateLength = 0; in Join() local 1278 allocateLength = sepLength * (len - 1) + len; in Join() 1280 if (allocateLength > EcmaString::MAX_STRING_LENGTH) { in Join()
|