/arkcompiler/ets_runtime/test/fuzztest/setruntimeinfo_fuzzer/ |
H A D | setruntimeinfo_fuzzer.cpp | 51 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 D | string.h | 140 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 D | ecma_string.h | 390 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 D | ecma_string-inl.h | 373 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 D | compiler_queue_aged_counter_priority.h | 33 explicit CompilerPriorityAgedCounterQueue(mem::InternalAllocatorPtr allocator, uint64_t maxLength, in CompilerPriorityAgedCounterQueue() argument 35 : CompilerPriorityCounterQueue(allocator, maxLength, 0 /* unused */) in CompilerPriorityAgedCounterQueue()
|
H A D | compiler_thread_pool_worker.cpp | 46 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 D | compiler_queue_counter_priority.h | 78 explicit CompilerPriorityCounterQueue(mem::InternalAllocatorPtr allocator, uint64_t maxLength, in CompilerPriorityCounterQueue() argument 82 maxLength_ = maxLength; in CompilerPriorityCounterQueue()
|
H A D | compiler_thread_pool_worker.h | 81 CompilerQueueInterface *CreateJITTaskQueue(const std::string &queueType, uint64_t maxLength, uint64_t taskLife,
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_string.h | 330 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 D | builtins_array_stub_builder.h | 75 uint32_t maxLength, JsArrayRequirements requirements);
|
H A D | builtins_array_stub_builder.cpp | 2054 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 D | builtins_global.h | 199 // 22.1.3.17.2 StringPad ( S, maxLength, fillString, placement ) 202 uint32_t maxLength,
|
H A D | builtins_global.cpp | 346 // 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 D | bounds_analysis.cpp | 717 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 D | typed_hcr_lowering.cpp | 1953 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 D | cocos_worker_test.js | 1952 this.setMaxLength(e.maxLength); 1989 maxLength: t._maxLength, [all...] |