Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 77) sorted by relevance

1234

/ark/js_runtime/ecmascript/tooling/base/
Dpt_returns.cpp34 size_t len = locations_.size(); in ToJson() local
35 for (size_t i = 0; i < len; i++) { in ToJson()
63 size_t len = locations_.size(); in ToJson() local
64 for (size_t i = 0; i < len; i++) { in ToJson()
90 size_t len = callFrames_.size(); in ToJson() local
91 for (size_t i = 0; i < len; i++) { in ToJson()
105 size_t len = result_.size(); in ToJson() local
106 for (size_t i = 0; i < len; i++) { in ToJson()
140 size_t len = callFrames_->size(); in ToJson() local
141 for (size_t i = 0; i < len; i++) { in ToJson()
[all …]
Dpt_events.cpp38 size_t len = callFrames_.size(); in ToJson() local
39 for (size_t i = 0; i < len; i++) { in ToJson()
51 len = hitBreakpoints_->size(); in ToJson()
52 for (size_t i = 0; i < len; i++) { in ToJson()
220 size_t len = result_.size(); in ToJson() local
221 for (size_t i = 0; i < len; i++) { in ToJson()
240 size_t len = statsUpdate_.size(); in ToJson() local
241 for (size_t i = 0; i < len; i++) { in ToJson()
/ark/runtime_core/dprof/libdprof/dprof/ipc/
Dipc_unix_socket.cpp95 bool SendAll(int fd, const void *buf, int len) in SendAll() argument
99 while (total < len) { in SendAll()
101 int n = PANDA_FAILURE_RETRY(::send(fd, p + total, len, 0)); in SendAll()
107 len -= n; in SendAll()
139 int RecvTimeout(int fd, void *buf, int len, int timeoutMs) in RecvTimeout() argument
146 int n = PANDA_FAILURE_RETRY(::recv(fd, buf, len, 0)); in RecvTimeout()
148 PLOG(ERROR, DPROF) << "Cannot recv data, len=" << len; in RecvTimeout()
155 if (n != len) { in RecvTimeout()
156 LOG(ERROR, DPROF) << "Cannot recv data id, len=" << len << " n=" << n; in RecvTimeout()
160 return len; in RecvTimeout()
Dipc_unix_socket.h26 bool SendAll(int fd, const void *buf, int len);
27 int RecvTimeout(int fd, void *buf, int len, int timeoutMs);
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_array.cpp77 JSHandle<JSTaggedValue> len = GetCallArg(argv, 0); in ArrayConstructor() local
87 if (!len->IsNumber()) { in ArrayConstructor()
89 JSObject::CreateDataProperty(thread, newArrayHandle, key0, len); in ArrayConstructor()
92 newLen = JSTaggedValue::ToUint32(thread, len); in ArrayConstructor()
94 if (JSTaggedNumber(len.GetTaggedValue()).GetNumber() != newLen) { in ArrayConstructor()
249 double len = ArrayHelper::GetArrayLength(thread, arrayLike); in From() local
259 arguments->MakeArgv(JSTaggedValue(len)); in From()
264 newArray = JSArray::ArrayCreate(thread, JSTaggedNumber(len)).GetTaggedValue(); in From()
282 while (k < len) { in From()
301 JSHandle<JSTaggedValue> lenHandle(thread, JSTaggedValue(len)); in From()
[all …]
Dbuiltins_typedarray.cpp171 int32_t len = vec.size(); in From() local
173 arguments->MakeArgv(JSTaggedValue(len)); in From()
188 while (k < len) { in From()
222 double len = tLen.GetNumber(); in From() local
226 arguments->MakeArgv(JSTaggedValue(len)); in From()
240 while (k < len) { in From()
271 uint32_t len = argv->GetArgsNumber(); in Of() local
281 arguments->MakeArgv(JSTaggedValue(len)); in Of()
294 while (k < len) { in Of()
448 int32_t len = TypedArrayHelper::GetArrayLength(thread, thisObjHandle); in Every() local
[all …]
Dbuiltins_number.cpp164 …size_t len = base::utf_helper::Utf16ToUtf8Size(numberString->GetDataUtf16(), numberString->GetLeng… in ParseFloat() local
165 CVector<uint8_t> buf(len); in ParseFloat()
166 len = base::utf_helper::ConvertRegionUtf16ToUtf8(numberString->GetDataUtf16(), buf.data(), in ParseFloat()
167 numberString->GetLength(), len, 0); in ParseFloat()
168 str = Span<const uint8_t>(buf.data(), len); in ParseFloat()
203 …size_t len = base::utf_helper::Utf16ToUtf8Size(numberString->GetDataUtf16(), numberString->GetLeng… in ParseInt() local
204 CVector<uint8_t> buf(len); in ParseInt()
205 len = base::utf_helper::ConvertRegionUtf16ToUtf8(numberString->GetDataUtf16(), buf.data(), in ParseInt()
206 numberString->GetLength(), len, 0); in ParseInt()
207 str = Span<const uint8_t>(buf.data(), len); in ParseInt()
Dbuiltins_string_iterator.cpp50 uint32_t len = string.GetObject<EcmaString>()->GetLength(); in Next() local
54 if (position >= len) { in Next()
67 if (position + 1 == len || first < base::utf_helper::DECODE_LEAD_LOW || in Next()
/ark/js_runtime/ecmascript/
Djs_date.cpp181 int JSDate::GetSignedNumFromString(const CString &str, int len, int *index) in GetSignedNumFromString() argument
184 GetNumFromString(str, len, index, &res); in GetSignedNumFromString()
192 bool JSDate::GetNumFromString(const CString &str, int len, int *index, int *num) in GetNumFromString() argument
196 while (indexStr < len) { in GetNumFromString()
203 if (indexStr >= len) { in GetNumFromString()
207 while (indexStr < len) { in GetNumFromString()
247 int len = str.length(); in LocalParseStringToMs() local
268 GetNumFromString(str, len, &index, &date); in LocalParseStringToMs()
269 GetNumFromString(str, len, &index, &year); in LocalParseStringToMs()
272 GetNumFromString(str, len, &index, &hours); in LocalParseStringToMs()
[all …]
Decma_string-inl.h70 [[maybe_unused]] auto len = in CreateFromUtf8() local
72 ASSERT(len == utf16Len); in CreateFromUtf8()
91 uint32_t len = utf16Len * (sizeof(uint16_t) / sizeof(uint8_t)); in CreateFromUtf16() local
92 if (memcpy_s(string->GetDataUtf16Writable(), len, utf16Data, len) != EOK) { in CreateFromUtf16()
196 uint32_t len = length * (sizeof(uint16_t) / sizeof(uint8_t)); in FastSubUtf16String() local
200 EcmaString::StringCopy(dst, len, source, len); in FastSubUtf16String()
Djs_serializer.cpp744 size_t len = sizeof(int32_t); in ReadInt() local
745 if (len > static_cast<size_t>(end_ - position_)) { in ReadInt()
748 if (memcpy_s(value, len, position_, len) != EOK) { in ReadInt()
751 position_ += len; in ReadInt()
757 size_t len = sizeof(uint64_t); in ReadObjectId() local
758 if (len > static_cast<size_t>(end_ - position_)) { in ReadObjectId()
761 if (memcpy_s(objectId, len, position_, len) != EOK) { in ReadObjectId()
764 position_ += len; in ReadObjectId()
770 size_t len = sizeof(double); in ReadDouble() local
771 if (len > static_cast<size_t>(end_ - position_)) { in ReadDouble()
[all …]
/ark/runtime_core/libpandabase/utils/
Dhash_base.h37 static uint32_t GetHash32WithSeed(const uint8_t *key, size_t len, uint32_t seed) in GetHash32WithSeed() argument
39 return HashImpl::GetHash32WithSeedImpl(key, len, seed); in GetHash32WithSeed()
48 static uint32_t GetHash32(const uint8_t *key, size_t len) in GetHash32() argument
50 return HashImpl::GetHash32Impl(key, len); in GetHash32()
Dmurmur3_hash.h38 static uint32_t GetHash32WithSeedImpl(const uint8_t *key, size_t len, uint32_t seed) in GetHash32WithSeedImpl() argument
40 return MurmurHash3(key, len, seed); in GetHash32WithSeedImpl()
42 static uint32_t GetHash32Impl(const uint8_t *key, size_t len) in GetHash32Impl() argument
44 return GetHash32WithSeedImpl(key, len, seed_value); in GetHash32Impl()
90 static uint32_t MurmurHash3(const uint8_t *key, size_t len, uint32_t seed) in MurmurHash3() argument
99 for (size_t i = len / BLOCK_SIZE; i != 0; i--) { in MurmurHash3()
120 for (size_t i = len & 3U; i > 0; i--) { in MurmurHash3()
134 hash ^= len; in MurmurHash3()
Dhash.h42 inline uint32_t GetHash32WithSeed(const uint8_t *key, size_t len, uint32_t seed) in GetHash32WithSeed() argument
44 return Hash::GetHash32WithSeed(key, len, seed); in GetHash32WithSeed()
53 inline uint32_t GetHash32(const uint8_t *key, size_t len) in GetHash32() argument
55 return Hash::GetHash32(key, len); in GetHash32()
/ark/runtime_core/runtime/mem/
Dpanda_string.cpp97 size_t len = utf::Utf16ToMUtf8Size(s->GetDataUtf16(), s->GetUtf16Length()) - 1; in ConvertToString() local
98 PandaVector<uint8_t> buf(len); in ConvertToString()
99len = utf::ConvertRegionUtf16ToMUtf8(s->GetDataUtf16(), buf.data(), s->GetUtf16Length(), len, 0); in ConvertToString()
100 Span<const uint8_t> sp(buf.data(), len); in ConvertToString()
/ark/js_runtime/ecmascript/mem/
Dc_string.cpp101 … size_t len = base::utf_helper::Utf16ToUtf8Size(s->GetDataUtf16(), s->GetLength(), modify) - 1; in ConvertToString() local
102 CVector<uint8_t> buf(len); in ConvertToString()
103len = base::utf_helper::ConvertRegionUtf16ToUtf8(s->GetDataUtf16(), buf.data(), s->GetLength(), le… in ConvertToString()
104 Span<const uint8_t> sp(buf.data(), len); in ConvertToString()
/ark/js_runtime/ecmascript/regexp/
Ddyn_chunk.cpp53 int DynChunk::Insert(uint32_t position, size_t len) in Insert() argument
58 if (Expand(size_ + len) != 0) { in Insert()
63 if (memmove_s(buf_ + position + len, moveSize, buf_ + position, moveSize) != EOK) { in Insert()
66 size_ += len; in Insert()
Dregexp_parser.cpp116 uint32_t len = buffer_.size_ - start; in ParseDisjunction() local
118 splitOp.InsertOpCode(&buffer_, start, len + gotoOp.GetSize()); in ParseDisjunction()
465 size_t len = 0; in FindGroupName() local
472 len = strlen(p); in FindGroupName()
473 if (len == nameLen && memcmp(name.c_str(), p, nameLen) == 0) { in FindGroupName()
476 p += len + 1; // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in FindGroupName()
499 uint32_t len = buffer_.size_ - start; in ParseAssertionCapture() local
500 matchAheadOp.InsertOpCode(&buffer_, start, len); in ParseAssertionCapture()
513 uint32_t len = buffer_.size_ - start; in ParseAssertionCapture() local
514 matchAheadOp.InsertOpCode(&buffer_, start, len); in ParseAssertionCapture()
[all …]
Ddyn_chunk.h42 int Insert(uint32_t position, size_t len);
44 int Emit(const uint8_t *data, size_t len);
46 int EmitSelf(size_t offset, size_t len);
Dregexp_executor.cpp605 int32_t len = captureState->captureEnd - captureState->captureStart; in DumpResult() local
606 …if ((captureState->captureStart != nullptr && captureState->captureEnd != nullptr) && (len >= 0)) { in DumpResult()
607 … << ":\t" << CString(reinterpret_cast<const char *>(captureState->captureStart), len) << std::endl; in DumpResult()
631 int32_t len = captureState->captureEnd - captureState->captureStart; in GetResult() local
633 …if ((captureState->captureStart != nullptr && captureState->captureEnd != nullptr) && (len >= 0)) { in GetResult()
638 reinterpret_cast<const uint16_t *>(captureState->captureStart), len / 2); in GetResult()
641 CVector<uint8_t> buffer(len + 1); in GetResult()
643 … if (memcpy_s(dest, len + 1, reinterpret_cast<const uint8_t *>(captureState->captureStart), len) != in GetResult()
648 dest[len] = '\0'; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in GetResult()
650 factory->NewFromUtf8(reinterpret_cast<const uint8_t *>(buffer.data()), len); in GetResult()
/ark/js_runtime/ecmascript/base/
Darray_helper.cpp127 JSTaggedNumber len = JSTaggedValue::ToLength(thread, lenResult); in GetLength() local
129 return len.GetNumber(); in GetLength()
140 JSTaggedNumber len = JSTaggedValue::ToLength(thread, lenResult); in GetArrayLength() local
142 return len.GetNumber(); in GetArrayLength()
/ark/ts2abc/ts2panda/scripts/
Dgenerate_plugin.py51 for i in range(0, len(array), max_len):
110 total_len = len(lines)
161 method_len_list.append(len(array))
168 % (len(byte_str), os.linesep))
169 for idx in range(0, len(method_len_list)):
/ark/runtime_core/scripts/
Dmemusage.py54 return len(line) > 0 and is_hex_digit(line[0])
150 if len(elems) < 3:
154 if len(elems) < 3:
158 if len(elems) < 3:
172 count = len(reports)
/ark/runtime_core/libpandabase/os/windows/
Dmem.cpp91 void *mmap([[maybe_unused]] void *addr, size_t len, int prot, uint32_t flags, int fildes, off_t off) in mmap() argument
96 if (len == 0 || (flags & MMAP_FLAG_FIXED) != 0 || prot == MMAP_PROT_EXEC) { in mmap()
109 const off_t max_size = off + static_cast<off_t>(len); in mmap()
121 void *map = MapViewOfFile(fm, prot_file, file_off_high, file_off_low, len); in mmap()
131 int munmap(void *addr, [[maybe_unused]] size_t len) in munmap() argument
/ark/runtime_core/libpandabase/tests/
Dalloc_tracker_test.cpp43 uint32_t len = 0; in SkipString() local
44 in->read(reinterpret_cast<char *>(&len), sizeof(len)); in SkipString()
48 in->seekg(len, std::ios_base::cur); in SkipString()

1234