Home
last modified time | relevance | path

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

12345678910>>...34

/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 …]
Dfreelist_allocator.h39 static_assert(FREELIST_ALLOCATOR_MIN_SIZE >= (sizeof(freelist::FreeListHeader) - sizeof(freelist::M…
93 auto p = reinterpret_cast<void *>(Alloc(sizeof(T))); in New()
170 return sizeof(MemoryBlockHeader); in PoolAlign()
196 class alignas(sizeof(MemoryBlockHeader)) MemoryPoolHeader {
203 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetPrev()
205 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetPrev()
212 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetNext()
214 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetNext()
221 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in SetPrev()
223 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in SetPrev()
[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/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/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.h70 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in CountLeadingZeros()
72 return sizeof(T) * 8; // 8: Each byte has 8 bits in CountLeadingZeros()
74 if (sizeof(T) == sizeof(uint64_t)) { in CountLeadingZeros()
108 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in CountTrailingZeros()
110 return sizeof(T) * 8; // 8: Each byte has 8 bits in CountTrailingZeros()
112 if (sizeof(T) == sizeof(uint64_t)) { in CountTrailingZeros()
163 static_assert(sizeof(To) == sizeof(From), "size of the types must be equal"); in bit_cast()
174 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/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 …]
Djs_thread_hclass_entries.h71 return sizeof(Entry) * index + MEMBER_OFFSET(Entry, builtinHClass); in GetBuiltinHClassOffset()
77 return sizeof(Entry) * index + MEMBER_OFFSET(Entry, instanceHClass); in GetInstanceHClassOffset()
83 return sizeof(Entry) * index + MEMBER_OFFSET(Entry, extraHClass); in GetExtraHClassOffset()
89 return sizeof(Entry) * index + MEMBER_OFFSET(Entry, prototypeHClass); in GetPrototypeHClassOffset()
95 return sizeof(Entry) * index + MEMBER_OFFSET(Entry, prototypeOfPrototypeHClass); in GetPrototypeOfPrototypeHClassOffset()
98 static constexpr size_t SizeArch32 = sizeof(entries);
99 static constexpr size_t SizeArch64 = sizeof(entries);
104 STATIC_ASSERT_EQ_ARCH(sizeof(BuiltinHClassEntries),
/arkcompiler/ets_runtime/ecmascript/tests/
Decma_string_test.cpp31 EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU8, sizeof(arrayU8) / sizeof(arrayU8[0]))); in SetUpTestCase()
32 …EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU16Comp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0… in SetUpTestCase()
33 …EXPECT_FALSE(EcmaString::CanBeCompressed(arrayU16NotComp, sizeof(arrayU16Comp) / sizeof(arrayU16Co… in SetUpTestCase()
48 EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU8, sizeof(arrayU8) / sizeof(arrayU8[0]))); in HWTEST_F_L0()
49 …EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU16Comp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0… in HWTEST_F_L0()
50 …EXPECT_FALSE(EcmaString::CanBeCompressed(arrayU16NotComp, sizeof(arrayU16Comp) / sizeof(arrayU16Co… in HWTEST_F_L0()
106 size_t lengthEcmaStrU8 = sizeof(arrayU8) - 1; in HWTEST_F_L0()
127 size_t lengthEcmaStrU16Comp = sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]); in HWTEST_F_L0()
136 size_t lengthEcmaStrU16NotComp = sizeof(arrayU16NotComp) / sizeof(arrayU16NotComp[0]); in HWTEST_F_L0()
158 …EXPECT_EQ(handleEcmaStrAllocComp->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStr… in HWTEST_F_L0()
[all …]
Decma_string_accessor_test.cpp107 size_t lengthEcmaStrU8 = sizeof(arrayU8) - 1; in HWTEST_F_L0()
128 size_t lengthEcmaStrU16Comp = sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]); in HWTEST_F_L0()
137 size_t lengthEcmaStrU16NotComp = sizeof(arrayU16NotComp) / sizeof(arrayU16NotComp[0]); in HWTEST_F_L0()
157 uint32_t lengthEcmaStrFrontU8 = sizeof(arrayFrontU8) - 1; in HWTEST_F_L0()
158 uint32_t lengthEcmaStrBackU8 = sizeof(arrayBackU8) - 1; in HWTEST_F_L0()
187 …uint32_t lengthEcmaStrFrontU16NotComp = sizeof(arrayFrontU16NotComp) / sizeof(arrayFrontU16NotComp… in HWTEST_F_L0()
188 …uint32_t lengthEcmaStrBackU16NotComp = sizeof(arrayBackU16NotComp) / sizeof(arrayBackU16NotComp[0]… in HWTEST_F_L0()
247 uint32_t lengthEcmaStrU16Comp = sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]); in HWTEST_F_L0()
272 uint32_t lengthEcmaStrU16NotComp = sizeof(arrayU16NotComp) / sizeof(arrayU16NotComp[0]); in HWTEST_F_L0()
340 uint32_t lengthEcmaStrU8 = sizeof(arrayU8) - 1; in HWTEST_F_L0()
[all …]
Dconstant_string_test.cpp51 size_t lengthEcmaStrU8 = sizeof(arrayU8) - 1; in HWTEST_F_L0()
75 size_t lengthEcmaStrU8 = sizeof(arrayU8) - 1; in HWTEST_F_L0()
95 uint32_t lengthEcmaStrU8No1 = sizeof(arrayU8No1) - 1; in HWTEST_F_L0()
96 uint32_t lengthEcmaStrU8No2 = sizeof(arrayU8No2) - 1; in HWTEST_F_L0()
97 uint32_t lengthEcmaStrU8No3 = sizeof(arrayU8No3) - 1; in HWTEST_F_L0()
121 uint32_t lengthEcmaStrU8No1 = sizeof(arrayU8No1) - 1; in HWTEST_F_L0()
126 uint32_t lengthEcmaStrU8No2 = sizeof(arrayU8No2) - 1; in HWTEST_F_L0()
131 … uint32_t lengthEcmaStrU16NotCompNo1 = sizeof(arrayU16NotCompNo1) / sizeof(arrayU16NotCompNo1[0]); in HWTEST_F_L0()
136 … uint32_t lengthEcmaStrU16NotCompNo2 = sizeof(arrayU16NotCompNo2) / sizeof(arrayU16NotCompNo2[0]); in HWTEST_F_L0()
141 … uint32_t lengthEcmaStrU16NotCompNo3 = sizeof(arrayU16NotCompNo3) / sizeof(arrayU16NotCompNo3[0]); in HWTEST_F_L0()
[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/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()
/arkcompiler/runtime_core/static_core/dprof/libdprof/dprof/ipc/
Dipc_unix_socket.cpp30 static_assert(sizeof(static_cast<sockaddr_un *>(nullptr)->sun_path) >= sizeof(SOCKET_NAME), "Socket…
37 …if (PANDA_FAILURE_RETRY(::setsockopt(sock.Get(), SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt))) == … in CreateUnixServerSocket()
43 if (memset_s(&serverAddr, sizeof(serverAddr), 0, sizeof(serverAddr)) != EOK) { in CreateUnixServerSocket()
48 … if (memcpy_s(serverAddr.sun_path, sizeof(SOCKET_NAME), SOCKET_NAME, sizeof(SOCKET_NAME)) != EOK) { in CreateUnixServerSocket()
53 if (PANDA_FAILURE_RETRY(::bind(sock.Get(), sockAddr, sizeof(serverAddr))) == -1) { in CreateUnixServerSocket()
75 if (memset_s(&serverAddr, sizeof(serverAddr), 0, sizeof(serverAddr)) != EOK) { in CreateUnixClientSocket()
80 … if (memcpy_s(serverAddr.sun_path, sizeof(SOCKET_NAME), SOCKET_NAME, sizeof(SOCKET_NAME)) != EOK) { in CreateUnixClientSocket()
85 if (PANDA_FAILURE_RETRY(::connect(sock.Get(), sockAddr, sizeof(serverAddr))) == -1) { in CreateUnixClientSocket()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_value.h70 static_assert(sizeof(T) <= sizeof(holder_)); in EtsValue()
72 memcpy_s(&holder_, sizeof(holder_), &value, sizeof(value)); in EtsValue()
79 static_assert(sizeof(T) <= sizeof(holder_)); in GetAs()
82 memcpy_s(&tmp, sizeof(T), &holder_, sizeof(T)); in GetAs()
/arkcompiler/runtime_core/static_core/libpandafile/
Dliteral_data_accessor-inl.h29 … static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(literalDataSp_.SubSpan(index * ID_SIZE))))); in GetLiteralValsNum()
51 value = static_cast<uint64_t>(helpers::Read<sizeof(uint64_t)>(&sp)); in EnumerateLiteralVals()
55 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
59 value = bit_cast<double>(helpers::Read<sizeof(uint64_t)>(&sp)); in EnumerateLiteralVals()
63 value = static_cast<bool>(helpers::Read<sizeof(uint8_t)>(&sp)); in EnumerateLiteralVals()
67 value = bit_cast<float>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
71 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
79 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
83 value = static_cast<uint16_t>(helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateLiteralVals()
88 value = static_cast<uint8_t>(helpers::Read<sizeof(uint8_t)>(&sp)); in EnumerateLiteralVals()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_be/
Dcg_aarch64_aarch64_isa_test.cpp37 for (int i = 0; i < sizeof(input_ls1) / sizeof(input_ls1[0]); i++) in TEST()
41 for (int i = 0; i < sizeof(input_ls2) / sizeof(input_ls2[0]); i++) in TEST()
58 for (int i = 0; i < sizeof(input_ls) / sizeof(input_ls[0]); i++) in TEST()
74 for (i = 0; i < sizeof(input_ls) / sizeof(input_ls[0]); i++) in TEST()
105 for (i = 0; i < sizeof(input_ls) / sizeof(input_ls[0]); i++) in TEST()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/rawheap_translate/
Drawheap_translate.cpp55 auto result = CheckAndGetHead(file, offset - sizeof(uint64_t), 0); in ReadMetaDataJson()
85 auto result = CheckAndGetHead(file, endOffset - sizeof(uint64_t), sizeof(uint32_t)); in ReadSectionInfo()
94 …if (!ReadFileAtOffset(file, endOffset - sectionSize - sizeof(uint64_t), sectionSize, sectionBytes.… in ReadSectionInfo()
132 auto result = CheckAndGetHead(file, offset, sizeof(AddrTableItem)); in ReadObjTable()
139 uint32_t baseOffset = sizeof(uint64_t) + offset; in ReadObjTable()
147 uint32_t objMemSize = size - tableSize - sizeof(uint64_t); in ReadObjTable()
156 uint32_t nextOffset = i + 1 < objNum ? objTable[i + 1].offset : size - sizeof(uint64_t); in ReadObjTable()
158 if (actSize != objTable[i].objSize && actSize != sizeof(uint64_t)) { in ReadObjTable()
187 char *curStrSection = strSection + sizeof(uint32_t) * 2; in ReadStringTable()
191 uint32_t objCnt = ByteToU32(curStrSection + sizeof(uint32_t)); in ReadStringTable()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/
Dcl_ut_test.cpp163 int argc = (sizeof(argv) / sizeof(argv[0])) - 1; in TEST()
183 int argc = (sizeof(argv) / sizeof(argv[0])) - 1; in TEST()
217 int argc = (sizeof(argv) / sizeof(argv[0])) - 1; in TEST()
245 int argc = (sizeof(argv) / sizeof(argv[0])) - 1; in TEST()
280 int argc = (sizeof(argv) / sizeof(argv[0])) - 1; in TEST()
298 int argc = (sizeof(argv) / sizeof(argv[0])) - 1; in TEST()
316 int argc = (sizeof(argv) / sizeof(argv[0])) - 1; in TEST()
330 int argc = (sizeof(argv) / sizeof(argv[0])) - 1; in TEST()
348 int argc = (sizeof(argv) / sizeof(argv[0])) - 1; in TEST()
369 int argc = (sizeof(argv) / sizeof(argv[0])) - 1; in TEST()
[all …]
/arkcompiler/ets_runtime/ecmascript/ohos/
Dcode_decrypt.cpp26 arg.arg1_len = sizeof(srcAppId); in DecryptSetKey()
36 arg.arg1_len = sizeof(srcAppId); in DecrypRemoveKey()
46 arg.arg1_len = sizeof(dstAppId); in DecryptAssociateKey()
48 arg.arg2_len = sizeof(srcAppId); in DecryptAssociateKey()
56 arg.arg1_len = sizeof(dstAppId); in DecrypRemoveAssociateKey()
58 arg.arg2_len = sizeof(srcAppId); in DecrypRemoveAssociateKey()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Dgdb_jit.cpp229 if (memcpy_s(shStrBuff, sizeof(SHSTR), SHSTR, sizeof(SHSTR)) != EOK) { in CopyStrTab()
232 char *newStrtab = shStrBuff + sizeof(SHSTR); in CopyStrTab()
238 if (memcpy_s((newStrtab + 1), sizeof(bcStubName), bcStubName, sizeof(bcStubName)) != EOK) { in CopyStrTab()
248 memset_s(newSymtab, sizeof(Elf64_Sym), 0, sizeof(Elf64_Sym)); in ConstructSymTab()
278 if (memcpy_s(newEhdr->e_ident, sizeof(info.ehdr->e_ident), in ConstructEhdrAndPhdr()
279 info.ehdr->e_ident, sizeof(info.ehdr->e_ident)) != EOK) { in ConstructEhdrAndPhdr()
283 newEhdr->e_phoff = sizeof(Elf64_Ehdr); in ConstructEhdrAndPhdr()
285 newEhdr->e_ehsize = sizeof(Elf64_Ehdr); in ConstructEhdrAndPhdr()
286 newEhdr->e_phentsize = sizeof(Elf64_Phdr); in ConstructEhdrAndPhdr()
288 newEhdr->e_shentsize = sizeof(Elf64_Shdr); in ConstructEhdrAndPhdr()
[all …]

12345678910>>...34