Lines Matching defs:allocateLength
434 bool JSStableArray::WorthUseTreeString(int sep, size_t allocateLength, uint32_t len)
436 if (allocateLength >= TREE_STRING_THRESHOLD) {
440 if (treeStringElementNum * TreeEcmaString::SIZE <= allocateLength) {
505 uint64_t allocateLength = 0;
539 allocateLength += EcmaStringAccessor(nextStr).GetLength();
545 allocateLength += static_cast<uint64_t>(sepLength) * (len - 1);
547 if (allocateLength > EcmaString::MAX_STRING_LENGTH) {
551 if (WorthUseTreeString(sep, allocateLength, len)) {
555 EcmaStringAccessor::CreateLineString(thread->GetEcmaVM(), static_cast<size_t>(allocateLength), isOneByte);
564 allocateLength - static_cast<uint32_t>(current), sepLength);
571 allocateLength - static_cast<uint32_t>(current), nextLength);