Home
last modified time | relevance | path

Searched full:sizeof (Results 1 – 25 of 967) sorted by relevance

12345678910>>...39

/arkcompiler/ets_frontend/ets2panda/test/unit/
Dsizeof_node_test.cpp47 size_t SizeOf();
56 // NOLINTBEGIN(bugprone-sizeof-container)
59 size_t SizeOfNodeTest::SizeOf<AstNode>() in SizeOf() function in ark::es2panda::ir::SizeOfNodeTest
61 constexpr size_t SIZE_OF_VTABLE = sizeof(void *); in SizeOf()
66 sizeof(node->parent_) + in SizeOf()
67 sizeof(node->range_) + in SizeOf()
68 sizeof(node->type_) + in SizeOf()
69 sizeof(node->flags_) + in SizeOf()
70 sizeof(node->astNodeFlags_) + in SizeOf()
71 sizeof(node->boxingUnboxingFlags_) + in SizeOf()
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
Dsample_writer.cpp30 static_assert(sizeof(sample.threadInfo.threadId) == sizeof(uint32_t)); in WriteSample()
31 static_assert(sizeof(sample.threadInfo.threadStatus) == sizeof(uint32_t)); in WriteSample()
32 static_assert(sizeof(sample.stackInfo.managedStackSize) == sizeof(uintptr_t)); in WriteSample()
35 sizeof(sample.threadInfo.threadId)); in WriteSample()
37 sizeof(sample.threadInfo.threadStatus)); in WriteSample()
39 sizeof(sample.stackInfo.managedStackSize)); in WriteSample()
41 … sample.stackInfo.managedStackSize * sizeof(SampleInfo::ManagedStackFrameId)); in WriteSample()
47 static_assert(sizeof(MODULE_INDICATOR_VALUE) == sizeof(uintptr_t)); in WriteModule()
48 static_assert(sizeof(moduleInfo.ptr) == sizeof(uintptr_t)); in WriteModule()
49 static_assert(sizeof(moduleInfo.checksum) == sizeof(uint32_t)); in WriteModule()
[all …]
Dsample_reader.h29 static constexpr size_t SAMPLE_THREAD_ID_OFFSET = 0 * sizeof(uint32_t);
30 static constexpr size_t SAMPLE_THREAD_STATUS_OFFSET = 1 * sizeof(uint32_t);
31 static constexpr size_t SAMPLE_STACK_SIZE_OFFSET = 2 * sizeof(uint32_t);
32 …static constexpr size_t SAMPLE_STACK_OFFSET = 2 * sizeof(uint32_t) + 1 * sizeof(uintptr_t);
34 static constexpr size_t PANDA_FILE_POINTER_OFFSET = 1 * sizeof(uintptr_t);
35 static constexpr size_t PANDA_FILE_CHECKSUM_OFFSET = 2 * sizeof(uintptr_t);
36 …static constexpr size_t PANDA_FILE_NAME_SIZE_OFFSET = 2 * sizeof(uintptr_t) + 1 * sizeof(uint32_t);
37 …static constexpr size_t PANDA_FILE_NAME_OFFSET = 3 * sizeof(uintptr_t) + 1 * sizeof(uint32_t);
/arkcompiler/runtime_core/static_core/runtime/mem/
Dfreelist.h33 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in Initialize()
36 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in Initialize()
43 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in IsUsed()
45 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in IsUsed()
53 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in SetUsed()
55 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in SetUsed()
62 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in SetUnused()
64 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in SetUnused()
73 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in IsLastBlockInPool()
75 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in IsLastBlockInPool()
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/utils/
Dbit_utils.h53 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in Clz()
56 if (sizeof(T) == sizeof(uint64_t)) { in Clz()
69 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in Ctz()
72 if (sizeof(T) == sizeof(uint64_t)) { in Ctz()
85 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in Popcount()
87 if (sizeof(T) == sizeof(uint64_t)) { in Popcount()
97 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in MinimumBitsToStore()
124 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in Ffs()
126 if (sizeof(T) == sizeof(uint64_t)) { in Ffs()
212 if (sizeof(T) == sizeof(uint16_t)) { in BSWAP()
[all …]
/arkcompiler/runtime_core/libpandabase/utils/
Dbit_utils.h52 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in Clz()
55 if (sizeof(T) == sizeof(uint64_t)) { in Clz()
68 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in Ctz()
71 if (sizeof(T) == sizeof(uint64_t)) { in Ctz()
84 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in Popcount()
86 if (sizeof(T) == sizeof(uint64_t)) { in Popcount()
96 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in MinimumBitsToStore()
123 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in Ffs()
125 if (sizeof(T) == sizeof(uint64_t)) { in Ffs()
210 if (sizeof(T) == sizeof(uint16_t)) { in BSWAP()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Daligned_struct.h36 static constexpr size_t Size = 1 + sizeof...(Res);
83 static constexpr size_t SizeArch32 = sizeof(uint32_t);
84 static constexpr size_t SizeArch64 = sizeof(uint64_t);
87 return sizeof(uintptr_t);
92 static constexpr size_t SizeArch32 = sizeof(uint32_t);
93 static constexpr size_t SizeArch64 = sizeof(uint64_t);
96 return sizeof(uintptr_t);
101 static constexpr size_t SizeArch32 = sizeof(uint64_t);
102 static constexpr size_t SizeArch64 = sizeof(uint64_t);
105 return sizeof(uint64_t);
[all …]
Dbit_helper.h72 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in CountLeadingZeros()
74 return sizeof(T) * 8; // 8: Each byte has 8 bits in CountLeadingZeros()
76 if (sizeof(T) == sizeof(uint64_t)) { in CountLeadingZeros()
110 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in CountTrailingZeros()
112 return sizeof(T) * 8; // 8: Each byte has 8 bits in CountTrailingZeros()
114 if (sizeof(T) == sizeof(uint64_t)) { in CountTrailingZeros()
165 static_assert(sizeof(To) == sizeof(From), "size of the types must be equal"); in bit_cast()
176 return sizeof(T) * BIT_NUMBER_OF_CHAR; in BitNumbers()
/arkcompiler/runtime_core/static_core/runtime/tests/
Dclass_size_test.cpp29 static constexpr size_t OBJECT_POINTER_SIZE = sizeof(ObjectPointerType);
34 const size_t alignedClassSize = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST()
40 const size_t alignedClassSize = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST()
47 const size_t alignedClassSize = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST()
49 ASSERT_EQ(alignedClassSize + num8bitFields * sizeof(int8_t), in TEST()
55 const size_t alignedClassSize = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST()
57 ASSERT_EQ(alignedClassSize + num16bitFields * sizeof(int16_t), in TEST()
63 const size_t alignedClassSize = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST()
65 ASSERT_EQ(alignedClassSize + num32bitFields * sizeof(int32_t), in TEST()
71 const size_t alignedClassSize = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/string_ops/
Dstring_get_utf16_substr_test.cpp27 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
46 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
51 ani_size substrSize = sizeof(example) / sizeof(uint16_t) - 1U; in TEST_F()
65 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
70 ani_size substrSize = sizeof(example) / sizeof(uint16_t) - 1U; in TEST_F()
84 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t), &string); in TEST_F()
89 ani_size substrSize = sizeof(example) / sizeof(uint16_t); in TEST_F()
113 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
129 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
143 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
[all …]
Dstring_new_utf16_test.cpp45 size_t length = sizeof(example) / sizeof(example[0U]) - 1U; in TEST_F()
54 size_t length = sizeof(example) / sizeof(example[0U]) - 1U; in TEST_F()
64 size_t length = sizeof(example) / sizeof(example[0U]); in TEST_F()
74 size_t length = sizeof(example) / sizeof(example[0U]) - 1U; in TEST_F()
84 size_t length = sizeof(example) / sizeof(example[0U]) - 1U; in TEST_F()
105 size_t length = sizeof(example) / sizeof(example[0U]); in TEST_F()
/arkcompiler/ets_runtime/ecmascript/
Djs_thread_stub_entries.h35 static constexpr size_t SizeArch32 = sizeof(uint32_t) * COUNT;
36 static constexpr size_t SizeArch64 = sizeof(uint64_t) * COUNT;
55 STATIC_ASSERT_EQ_ARCH(sizeof(BCStubEntries), BCStubEntries::SizeArch32, BCStubEntries::SizeArch64);
61 static constexpr size_t SizeArch32 = sizeof(uint32_t) * COUNT;
62 static constexpr size_t SizeArch64 = sizeof(uint64_t) * COUNT;
76 STATIC_ASSERT_EQ_ARCH(sizeof(RTStubEntries), RTStubEntries::SizeArch32, RTStubEntries::SizeArch64);
82 static constexpr size_t SizeArch32 = sizeof(uint32_t) * COUNT;
83 static constexpr size_t SizeArch64 = sizeof(uint64_t) * COUNT;
104 static constexpr size_t SizeArch32 = sizeof(uint32_t) * COUNT;
105 static constexpr size_t SizeArch64 = sizeof(uint64_t) * COUNT;
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Dbase_string_test.cpp32 EXPECT_TRUE(BaseString::CanBeCompressed(arrayU8, sizeof(arrayU8) / sizeof(arrayU8[0]))); in SetUpTestCase()
33 …EXPECT_TRUE(BaseString::CanBeCompressed(arrayU16Comp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0… in SetUpTestCase()
34 …EXPECT_FALSE(BaseString::CanBeCompressed(arrayU16NotComp, sizeof(arrayU16Comp) / sizeof(arrayU16Co… in SetUpTestCase()
58 EXPECT_TRUE(BaseString::CanBeCompressed(arrayU8, sizeof(arrayU8) / sizeof(arrayU8[0]))); in HWTEST_F_L0()
59 …EXPECT_TRUE(BaseString::CanBeCompressed(arrayU16Comp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0… in HWTEST_F_L0()
60 …EXPECT_FALSE(BaseString::CanBeCompressed(arrayU16NotComp, sizeof(arrayU16Comp) / sizeof(arrayU16Co… in HWTEST_F_L0()
112 size_t lengthEcmaStrU8 = sizeof(arrayU8) - 1; in HWTEST_F_L0()
134 size_t lengthEcmaStrU16Comp = sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]); in HWTEST_F_L0()
144 size_t lengthEcmaStrU16NotComp = sizeof(arrayU16NotComp) / sizeof(arrayU16NotComp[0]); in HWTEST_F_L0()
170 BaseString::SIZE + sizeof(uint8_t) * lengthEcmaStrAllocComp); in HWTEST_F_L0()
[all …]
Decma_string_accessor_test.cpp108 size_t lengthEcmaStrU8 = sizeof(arrayU8) - 1; in HWTEST_F_L0()
146 size_t lengthEcmaStrU16Comp = sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]); in HWTEST_F_L0()
155 size_t lengthEcmaStrU16NotComp = sizeof(arrayU16NotComp) / sizeof(arrayU16NotComp[0]); in HWTEST_F_L0()
175 uint32_t lengthEcmaStrFrontU8 = sizeof(arrayFrontU8) - 1; in HWTEST_F_L0()
176 uint32_t lengthEcmaStrBackU8 = sizeof(arrayBackU8) - 1; in HWTEST_F_L0()
205 …uint32_t lengthEcmaStrFrontU16NotComp = sizeof(arrayFrontU16NotComp) / sizeof(arrayFrontU16NotComp… in HWTEST_F_L0()
206 …uint32_t lengthEcmaStrBackU16NotComp = sizeof(arrayBackU16NotComp) / sizeof(arrayBackU16NotComp[0]… in HWTEST_F_L0()
265 uint32_t lengthEcmaStrU16Comp = sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]); in HWTEST_F_L0()
290 uint32_t lengthEcmaStrU16NotComp = sizeof(arrayU16NotComp) / sizeof(arrayU16NotComp[0]); in HWTEST_F_L0()
358 uint32_t lengthEcmaStrU8 = sizeof(arrayU8) - 1; in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/runtime/jit/libprofile/
Dpgo_file_builder.cpp28 static_assert(sizeof(PgoHeader) == 24, "PgoHeader is 24 bytes");
30 static_assert(sizeof(PandaFilesSectionHeader) == 8, "PandaFiles section header is 8 bytes");
32 static_assert(sizeof(PandaFileInfoHeader) == 8,
35 static_assert(sizeof(SectionsInfoSectionHeader) == 8, "Header of SectionsInfo section is 8 bytes");
37 static_assert(sizeof(SectionInfo) == 20, "Each item of section info in SectionsInfo section is 20 b…
39 static_assert(sizeof(MethodsHeader) == 8, "Header of Methods section is 8 bytes");
41 static_assert(sizeof(MethodDataHeader) == 16, "Header of one method data sub-section is 16 bytes");
43 static_assert(sizeof(AotProfileDataHeader) == 12, "Header of one profile data sub-section is 12 byt…
48 … static_cast<uint32_t>(sizeof(PandaFilesSectionHeader))}; in WritePandaFilesSection()
51 sectionHeader.sectionSize += sizeof(PandaFileInfoHeader) + fileInfo.second.size() + 1; in WritePandaFilesSection()
[all …]
/arkcompiler/ets_runtime/common_components/heap/ark_collector/tests/
Dpost_marking_barrier_test.cpp52 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
67 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
82 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
109 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
126 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
142 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
157 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
162 …HeapAddress newObjAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, tru… in HWTEST_F_L0()
177 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
190 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
[all …]
Denum_barrier_test.cpp52 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
67 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
82 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
97 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
105 … HeapAddress newAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
121 … HeapAddress oldAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
129 … HeapAddress newAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
167 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
173 …HeapAddress weakAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
179 …HeapAddress nonTaggedAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, … in HWTEST_F_L0()
[all …]
Didle_barrier_test.cpp52 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
54 HeapAddress src = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
57 HeapAddress dst = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
61 idleBarrier->ReadStruct(dst, obj, src, sizeof(BaseObject)); in HWTEST_F_L0()
71 … HeapAddress oldAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
79 … HeapAddress newAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
98 … HeapAddress oldAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
106 … HeapAddress newAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
125 … HeapAddress oldAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
133 … HeapAddress newAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
[all …]
Dmarking_barrier_test.cpp52 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
66 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
80 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
94 HeapAddress addr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
96 HeapAddress src = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
99 HeapAddress dst = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
103 markingBarrier->ReadStruct(dst, obj, src, sizeof(BaseObject)); in HWTEST_F_L0()
113 … HeapAddress oldAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
123 … HeapAddress newAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
142 … HeapAddress oldAddr = HeapManager::Allocate(sizeof(BaseObject), AllocType::MOVEABLE_OBJECT, true); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_snapshot.cpp161 uint32_t checksumSize = sizeof(uint32_t); in ReadDataFromFile()
176 if (!reader.ReadSingleData(&readAppVersionCode, sizeof(readAppVersionCode), "AppVersionCode")) { in ReadDataFromFile()
188 … if (!reader.ReadSingleData(&readVersionStrLen, sizeof(readVersionStrLen), "readVersionStrLen")) { in ReadDataFromFile()
202 if (!reader.ReadSingleData(&data->dataIndex_, sizeof(data->dataIndex_), "dataIndex")) { in ReadDataFromFile()
207 … reader.Step(GetAlignUpPadding(reader.GetReadPtr(), fileMapMem.GetOriginAddr(), sizeof(uint64_t))); in ReadDataFromFile()
210 if (!reader.ReadSingleData(&data->sizeLimit_, sizeof(data->sizeLimit_), "sizeLimit")) { in ReadDataFromFile()
214 … reader.Step(GetAlignUpPadding(reader.GetReadPtr(), fileMapMem.GetOriginAddr(), sizeof(uint64_t))); in ReadDataFromFile()
217 if (!reader.ReadSingleData(sizeGroup, GROUP_SIZE * sizeof(size_t), "sizeGroup")) { in ReadDataFromFile()
242 … if (!reader.ReadSingleData(&regularRemainSizeVectorSize, sizeof(regularRemainSizeVectorSize), in ReadDataFromFile()
247 size_t vecSize = regularRemainSizeVectorSize * sizeof(size_t); in ReadDataFromFile()
[all …]
/arkcompiler/runtime_core/libpandafile/
Dmodule_data_accessor-inl.h31 … auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
32 … auto import_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
33 … auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord()
39 … auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
40 … auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord()
46 … auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
47 … auto export_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
53 … auto export_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
54 … auto import_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
55 … auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord()
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_snapshot.cpp85 uint32_t checksumSize = sizeof(uint32_t); in WriteDataToFile()
86 uint32_t fileSize = sizeof(uint32_t); in WriteDataToFile()
87 uint32_t appVersionCodeSize = sizeof(uint32_t); in WriteDataToFile()
88 uint32_t versionStrLenSize = sizeof(uint32_t); in WriteDataToFile()
94 bufSize += sizeof(uint32_t); // len in WriteDataToFile()
98 bufSize += sizeof(numMethods); // numMethods in WriteDataToFile()
99 bufSize += sizeof(MethodLiteral) * numMethods; // MethodLiteral Total size in WriteDataToFile()
102 bufSize += sizeof(mainMethodIndexSize); in WriteDataToFile()
108 bufSize += sizeof(uint32_t); // mainMethodIndex in WriteDataToFile()
109 bufSize += sizeof(uint32_t); // recordName len in WriteDataToFile()
[all …]
/arkcompiler/ets_runtime/common_components/base/tests/
Dutf_helper_test.cpp80 size_t len = sizeof(input) / sizeof(input[0]); in HWTEST_F_L0()
89 size_t len = sizeof(input) / sizeof(input[0]); in HWTEST_F_L0()
94 size_t len1 = sizeof(input1) / sizeof(input1[0]); in HWTEST_F_L0()
99 size_t len2 = sizeof(input2) / sizeof(input2[0]); in HWTEST_F_L0()
104 size_t len3 = sizeof(input3) / sizeof(input3[0]); in HWTEST_F_L0()
113 size_t len = sizeof(input) / sizeof(input[0]); in HWTEST_F_L0()
124 size_t len = sizeof(input) / sizeof(input[0]); in HWTEST_F_L0()
175 …result = utf_helper::ConvertRegionUtf16ToUtf8(utf16In, nullptr, 1, sizeof(utf16In), 0, false, fals… in HWTEST_F_L0()
187 …result = utf_helper::ConvertRegionUtf16ToUtf8(nullptr, nullptr, 1, sizeof(utf8Out), 0, false, fals… in HWTEST_F_L0()
193 …result = utf_helper::ConvertRegionUtf16ToUtf8(utf16In, utf8Out, 1, sizeof(utf8Out), 0, false, fals… in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/compiler_service/test/fuzztest/aotcompilerargsprepare_fuzzer/
Daotcompilerargsprepare_fuzzer.cpp33 if (offset + sizeof(int16_t) >= size) { in DoSomethingInterestingWithMyAPI()
39 offset += sizeof(uint8_t); in DoSomethingInterestingWithMyAPI()
42 if (offset + sizeof(int16_t) >= size) { in DoSomethingInterestingWithMyAPI()
46 offset += sizeof(uint8_t); in DoSomethingInterestingWithMyAPI()
54 if (offset + sizeof(uint8_t) >= size) { in DoSomethingInterestingWithMyAPI()
58 offset += sizeof(uint8_t); in DoSomethingInterestingWithMyAPI()
69 while (offset + sizeof(int16_t) < size) { in DoSomethingInterestingWithMyAPI()
71 std::copy_n(&data[offset], sizeof(int16_t), &signalValue); in DoSomethingInterestingWithMyAPI()
73 offset += sizeof(int16_t); in DoSomethingInterestingWithMyAPI()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_ir/
Dmir_type_test.cpp34 for (int i = 0; i < sizeof(input_ls) / sizeof(input_ls[0]); i++) in TEST()
51 for (int i = 0; i < sizeof(input_ls) / sizeof(input_ls[0]); i++) in TEST()
70 for (int i = 0; i < sizeof(input_ls) / sizeof(input_ls[0]); i++) in TEST()
84 for (int i = 0; i < sizeof(input_ls) / sizeof(input_ls[0]); i++) in TEST()
94 for (int i = 0; i < sizeof(input_ls) / sizeof(input_ls[0]); i++) in TEST()

12345678910>>...39