Home
last modified time | relevance | path

Searched refs:maxLength (Results 1 - 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/test/fuzztest/setruntimeinfo_fuzzer/
H A Dsetruntimeinfo_fuzzer.cpp51 constexpr int maxLength = 255; in SetRuntimeInfoFuzzTest() local
52 char lines[maxLength][bufferSize] = {}; in SetRuntimeInfoFuzzTest()
54 int lineCount = dataProvider.ConsumeIntegralInRange<int>(1, maxLength); in SetRuntimeInfoFuzzTest()
60 runtimeInfoTest.TestSetRuntimeInfo(realOutPath.c_str(), lines, maxLength); in SetRuntimeInfoFuzzTest()
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
H A Dstring.h140 inline size_t CopyDataMUtf8(uint8_t *buf, size_t maxLength, bool isCString) in CopyDataMUtf8() argument
143 ASSERT(maxLength != 0); in CopyDataMUtf8()
145 buf[maxLength - 1] = '\0'; in CopyDataMUtf8()
146 return CopyDataRegionMUtf8(buf, 0, GetLength(), maxLength) + 1; // add place for zero at the end in CopyDataMUtf8()
149 return CopyDataRegionMUtf8(buf, 0, GetLength(), maxLength); in CopyDataMUtf8()
152 size_t CopyDataRegionMUtf8(uint8_t *buf, size_t start, size_t length, size_t maxLength) in CopyDataRegionMUtf8() argument
154 if (length > maxLength) { in CopyDataRegionMUtf8()
167 if (memcpy_s(buf, sizeof(uint8_t) * (maxLength + 1), GetDataMUtf8() + start, length) != EOK) { in CopyDataRegionMUtf8()
172 return ark::utf::ConvertRegionUtf16ToMUtf8(GetDataUtf16(), buf, length, maxLength - 1, start); in CopyDataRegionMUtf8()
175 inline uint32_t CopyDataUtf16(uint16_t *buf, uint32_t maxLength) in CopyDataUtf16() argument
180 CopyDataRegionUtf16(uint16_t *buf, uint32_t start, uint32_t length, uint32_t maxLength) CopyDataRegionUtf16() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Decma_string.h390 inline size_t CopyDataUtf8(uint8_t *buf, size_t maxLength, bool modify = true) const
392 if (maxLength == 0) {
393 return 1; // maxLength was -1 at napi
396 if (length > maxLength) {
400 buf[maxLength - 1] = '\0';
402 return CopyDataRegionUtf8(buf, 0, length, maxLength, modify) + 1; // add place for zero in the end
405 // It allows user to copy into buffer even if maxLength < length
406 inline size_t WriteUtf8(uint8_t *buf, size_t maxLength, bool isWriteBuffer = false) const
408 if (maxLength == 0) {
409 return 1; // maxLength wa
1257 WriteToFlatUtf8(uint8_t *buf, uint32_t maxLength, bool isWriteBuffer = false) WriteToFlatUtf8() argument
1267 WriteToOneByte(uint8_t *buf, uint32_t maxLength) WriteToOneByte() argument
1286 WriteToFlat(EcmaString *src, Char *buf, uint32_t maxLength) WriteToFlat() argument
[all...]
H A Decma_string-inl.h373 void EcmaString::WriteToFlat(EcmaString *src, Char *buf, uint32_t maxLength) in WriteToFlat() argument
381 ASSERT(length <= maxLength && length > 0); in WriteToFlat()
405 WriteToFlat(first, buf, maxLength); in WriteToFlat()
411 maxLength -= firstLength; in WriteToFlat()
422 WriteToFlat(second, buf + firstLength, maxLength - firstLength); in WriteToFlat()
425 maxLength = firstLength; in WriteToFlat()
451 [[ maybe_unused ]] uint32_t maxLength = src->GetLength(); in WriteToFlatWithPos() local
456 ASSERT(length + pos <= maxLength && length > 0); in WriteToFlatWithPos()
/arkcompiler/runtime_core/static_core/runtime/
H A Dcompiler_queue_aged_counter_priority.h33 explicit CompilerPriorityAgedCounterQueue(mem::InternalAllocatorPtr allocator, uint64_t maxLength, in CompilerPriorityAgedCounterQueue() argument
35 : CompilerPriorityCounterQueue(allocator, maxLength, 0 /* unused */) in CompilerPriorityAgedCounterQueue()
H A Dcompiler_thread_pool_worker.cpp46 CompilerQueueInterface *CompilerThreadPoolWorker::CreateJITTaskQueue(const std::string &queueType, uint64_t maxLength, in CreateJITTaskQueue() argument
55 return internalAllocator_->New<CompilerPriorityCounterQueue>(internalAllocator_, maxLength, taskLife); in CreateJITTaskQueue()
H A Dcompiler_queue_counter_priority.h78 explicit CompilerPriorityCounterQueue(mem::InternalAllocatorPtr allocator, uint64_t maxLength, in CompilerPriorityCounterQueue() argument
82 maxLength_ = maxLength; in CompilerPriorityCounterQueue()
H A Dcompiler_thread_pool_worker.h81 CompilerQueueInterface *CreateJITTaskQueue(const std::string &queueType, uint64_t maxLength, uint64_t taskLife,
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_string.h330 size_t CopyDataMUtf8(void *buf, size_t maxLength, bool isCString) in CopyDataMUtf8() argument
332 return GetCoreType()->CopyDataMUtf8(reinterpret_cast<uint8_t *>(buf), maxLength, isCString); in CopyDataMUtf8()
335 size_t CopyDataRegionMUtf8(void *buf, size_t start, size_t length, size_t maxLength) in CopyDataRegionMUtf8() argument
337 return GetCoreType()->CopyDataRegionMUtf8(reinterpret_cast<uint8_t *>(buf), start, length, maxLength); in CopyDataRegionMUtf8()
340 uint32_t CopyDataUtf16(void *buf, uint32_t maxLength) in CopyDataUtf16() argument
342 return GetCoreType()->CopyDataUtf16(reinterpret_cast<uint16_t *>(buf), maxLength); in CopyDataUtf16()
345 uint32_t CopyDataRegionUtf16(void *buf, uint32_t start, uint32_t length, uint32_t maxLength) in CopyDataRegionUtf16() argument
347 return GetCoreType()->CopyDataRegionUtf16(reinterpret_cast<uint16_t *>(buf), start, length, maxLength); in CopyDataRegionUtf16()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_array_stub_builder.h75 uint32_t maxLength, JsArrayRequirements requirements);
H A Dbuiltins_array_stub_builder.cpp2054 uint32_t maxLength, JsArrayRequirements requirements) in IsJsArrayWithLengthLimit()
2083 result.WriteVariable(Int32UnsignedLessThanOrEqual(GetArrayLength(object), Int32(maxLength))); in IsJsArrayWithLengthLimit()
2053 IsJsArrayWithLengthLimit(GateRef glue, GateRef object, uint32_t maxLength, JsArrayRequirements requirements) IsJsArrayWithLengthLimit() argument
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_global.h199 // 22.1.3.17.2 StringPad ( S, maxLength, fillString, placement )
202 uint32_t maxLength,
H A Dbuiltins_global.cpp346 // 22.1.3.17.2 StringPad ( S, maxLength, fillString, placement )
348 uint32_t maxLength, const JSHandle<EcmaString> &fillString, in StringPad()
353 // 2. If maxLength ≤ stringLength, return S. in StringPad()
354 if (maxLength <= stringLength) { in StringPad()
362 // 4. Let fillLen be maxLength - stringLength. in StringPad()
363 uint32_t fillLen = maxLength - stringLength; in StringPad()
347 StringPad(JSThread *thread, const JSHandle<EcmaString> &source, uint32_t maxLength, const JSHandle<EcmaString> &fillString, Placement placement) StringPad() argument
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
H A Dbounds_analysis.cpp717 auto maxLength = INT32_MAX; in FindBoundsRange() local
724 maxLength = runtime->GetMaxArrayLength(klass); in FindBoundsRange()
727 return BoundsRange(0, maxLength, nullptr, inst->GetType()); in FindBoundsRange()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dtyped_hcr_lowering.cpp1953 GateRef maxLength = builder_.GetLengthFromString(*lineString); in LowerStringAdd() local
1956 BRANCH_CIR(builder_.Int32LessThan(maxLength, newLength), &needsRealloc, &backingStore); in LowerStringAdd()
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
H A Dcocos_worker_test.js1952 this.setMaxLength(e.maxLength);
1989 maxLength: t._maxLength,
[all...]

Completed in 53 milliseconds