| /arkcompiler/runtime_core/runtime/mem/ |
| D | freelist.h | 33 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 …]
|
| D | freelist_allocator.h | 39 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() 186 class alignas(sizeof(MemoryBlockHeader)) MemoryPoolHeader { 193 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetPrev() 195 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetPrev() 202 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetNext() 204 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetNext() 211 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in SetPrev() 213 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in SetPrev() [all …]
|
| D | humongous_obj_allocator.h | 68 auto p = reinterpret_cast<void *>(Alloc(sizeof(T))); in New() 143 return AlignUp(obj_size + sizeof(MemoryPoolHeader) + GetAlignmentInBytes(LOG_ALIGN_MAX), in GetMinPoolSize() 173 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetPrev() 175 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetPrev() 182 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetNext() 184 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in GetNext() 191 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in SetPrev() 193 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in SetPrev() 199 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in SetNext() 201 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryPoolHeader)); in SetNext() [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | bit_utils.h | 52 …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/runtime/tests/ |
| D | class_size_test.cpp | 29 static constexpr size_t OBJECT_POINTER_SIZE = sizeof(object_pointer_type); 34 const size_t aligned_class_size = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST() 40 const size_t aligned_class_size = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST() 47 const size_t aligned_class_size = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST() 49 ASSERT_EQ(aligned_class_size + num_8bit_fields * sizeof(int8_t), in TEST() 55 const size_t aligned_class_size = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST() 57 ASSERT_EQ(aligned_class_size + num_16bit_fields * sizeof(int16_t), in TEST() 63 const size_t aligned_class_size = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST() 65 ASSERT_EQ(aligned_class_size + num_32bit_fields * sizeof(int32_t), in TEST() 71 const size_t aligned_class_size = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST() [all …]
|
| D | class_linker_test.cpp | 207 return sizeof(uint8_t); in GetComponentSize() 210 return sizeof(uint16_t); in GetComponentSize() 214 return sizeof(uint32_t); in GetComponentSize() 218 return sizeof(uint64_t); in GetComponentSize() 437 {"sf_f64", sizeof(double), 0}, in TEST_F() 438 {"sf_i64", sizeof(int64_t), 0}, in TEST_F() 439 {"sf_u64", sizeof(uint64_t), 0}, in TEST_F() 440 {"sf_i32", sizeof(int32_t), 0}, in TEST_F() 441 {"sf_u32", sizeof(uint32_t), 0}, in TEST_F() 442 {"sf_f32", sizeof(float), 0}, in TEST_F() [all …]
|
| D | math_helpers_test.cpp | 26 ss << "Test bit_shl with sizeof(T) = "; in TestBitShl() 27 ss << sizeof(T); in TestBitShl() 64 ss << "Test bit_shr with sizeof(T) = "; in TestBitShr() 65 ss << sizeof(T); in TestBitShr() 102 ss << "Test bit_ashr with sizeof(T) = "; in TestBitAshr() 103 ss << sizeof(T); in TestBitAshr() 155 ss << "Test fcmpl with sizeof(T) = "; in TestFcmpl() 156 ss << sizeof(T); in TestFcmpl() 199 ss << "Test fcmpg with sizeof(T) = "; in TestFcmpg() 200 ss << sizeof(T); in TestFcmpg()
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | aligned_struct.h | 36 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 …]
|
| D | bit_helper.h | 61 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in CountLeadingZeros() 63 return sizeof(T) * 8; in CountLeadingZeros() 65 if (sizeof(T) == sizeof(uint64_t)) { in CountLeadingZeros() 99 …static_assert(sizeof(T) == sizeof(uint64_t) || sizeof(T) <= sizeof(uint32_t), "Unsupported sizeof(… in CountTrailingZeros() 101 return sizeof(T) * 8; in CountTrailingZeros() 103 if (sizeof(T) == sizeof(uint64_t)) { in CountTrailingZeros() 154 static_assert(sizeof(To) == sizeof(From), "size of the types must be equal"); in bit_cast() 165 return sizeof(T) * BIT_NUMBER_OF_CHAR; in BitNumbers()
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | ecma_string_test.cpp | 31 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() 67 EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU8, sizeof(arrayU8) / sizeof(arrayU8[0]))); in HWTEST_F_L0() 68 …EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU16Comp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0… in HWTEST_F_L0() 69 …EXPECT_FALSE(EcmaString::CanBeCompressed(arrayU16NotComp, sizeof(arrayU16Comp) / sizeof(arrayU16Co… in HWTEST_F_L0() 125 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() 222 …EXPECT_EQ(handleEcmaStrAllocComp->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStr… in HWTEST_F_L0() [all …]
|
| D | ecma_string_accessor_test.cpp | 104 size_t lengthEcmaStrU8 = sizeof(arrayU8) - 1; in HWTEST_F_L0() 125 size_t lengthEcmaStrU16Comp = sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]); in HWTEST_F_L0() 134 size_t lengthEcmaStrU16NotComp = sizeof(arrayU16NotComp) / sizeof(arrayU16NotComp[0]); in HWTEST_F_L0() 154 uint32_t lengthEcmaStrFrontU8 = sizeof(arrayFrontU8) - 1; in HWTEST_F_L0() 155 uint32_t lengthEcmaStrBackU8 = sizeof(arrayBackU8) - 1; in HWTEST_F_L0() 184 …uint32_t lengthEcmaStrFrontU16NotComp = sizeof(arrayFrontU16NotComp) / sizeof(arrayFrontU16NotComp… in HWTEST_F_L0() 185 …uint32_t lengthEcmaStrBackU16NotComp = sizeof(arrayBackU16NotComp) / sizeof(arrayBackU16NotComp[0]… in HWTEST_F_L0() 216 uint32_t lengthEcmaStrFrontU8 = sizeof(arrayFrontU8) - 1; in HWTEST_F_L0() 217 …uint32_t lengthEcmaStrBackU16NotComp = sizeof(arrayBackU16NotComp) / sizeof(arrayBackU16NotComp[0]… in HWTEST_F_L0() 247 uint32_t lengthEcmaStrU8 = sizeof(arrayU8) - 1; in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/stackmap/ |
| D | ark_stackmap_builder.cpp | 76 writer.WriteBuffer(reinterpret_cast<const uint8_t *>(&(reg)), sizeof(DwarfRegType)); in SaveArkStackMap() 77 writer.WriteBuffer(reinterpret_cast<const uint8_t *>(&(offset)), sizeof(OffsetType)); in SaveArkStackMap() 95 writer.WriteBuffer(reinterpret_cast<const uint8_t *>(&(deopt.Id)), sizeof(deopt.Id)); in SaveArkDeopt() 96 … writer.WriteBuffer(reinterpret_cast<const uint8_t *>(&(deopt.kind)), sizeof(deopt.kind)); in SaveArkDeopt() 100 writer.WriteBuffer(reinterpret_cast<const uint8_t *>(&(v)), sizeof(v)); in SaveArkDeopt() 103 writer.WriteBuffer(reinterpret_cast<const uint8_t *>(&(v)), sizeof(v)); in SaveArkDeopt() 106 writer.WriteBuffer(reinterpret_cast<const uint8_t *>(&(v.first)), sizeof(v.first)); in SaveArkDeopt() 107 … writer.WriteBuffer(reinterpret_cast<const uint8_t *>(&(v.second)), sizeof(v.second)); in SaveArkDeopt() 124 … binBufparser.ParseBuffer(reinterpret_cast<uint8_t *>(®), sizeof(DwarfRegType), ptr + offset); in ParseArkStackMap() 125 offset += sizeof(DwarfRegType); in ParseArkStackMap() [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | module_data_accessor-inl.h | 31 … 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 …]
|
| D | literal_data_accessor-inl.h | 35 …static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(literal_data_sp_.SubSpan(index * ID_SIZE))))… in GetLiteralValsNum() 56 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals() 60 value = bit_cast<double>(helpers::Read<sizeof(uint64_t)>(&sp)); in EnumerateLiteralVals() 64 value = static_cast<bool>(helpers::Read<sizeof(uint8_t)>(&sp)); in EnumerateLiteralVals() 68 value = static_cast<float>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals() 76 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals() 80 value = static_cast<uint16_t>(helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateLiteralVals() 86 value = static_cast<uint8_t>(helpers::Read<sizeof(uint8_t)>(&sp)); in EnumerateLiteralVals()
|
| /arkcompiler/runtime_core/dprof/libdprof/dprof/ipc/ |
| D | ipc_unix_socket.cpp | 30 static_assert(sizeof(SOCKET_NAME) <= sizeof(static_cast<sockaddr_un *>(nullptr)->sun_path), "Socket… 37 …if (PANDA_FAILURE_RETRY(::setsockopt(sock.Get(), SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt))) == … in CreateUnixServerSocket() 44 if (memset_s(&serverAddr, sizeof(serverAddr), 0, sizeof(serverAddr)) != EOK) { in CreateUnixServerSocket() 49 … if (memcpy_s(serverAddr.sun_path, sizeof(SOCKET_NAME), SOCKET_NAME, sizeof(SOCKET_NAME)) != EOK) { in CreateUnixServerSocket() 53 …_RETRY(::bind(sock.Get(), reinterpret_cast<struct sockaddr *>(&serverAddr), sizeof(serverAddr))) == in CreateUnixServerSocket() 77 if (memset_s(&serverAddr, sizeof(serverAddr), 0, sizeof(serverAddr)) != EOK) { in CreateUnixClientSocket() 82 … if (memcpy_s(serverAddr.sun_path, sizeof(SOCKET_NAME), SOCKET_NAME, sizeof(SOCKET_NAME)) != EOK) { in CreateUnixClientSocket() 87 …::connect(sock.Get(), reinterpret_cast<struct sockaddr *>(&serverAddr), sizeof(serverAddr))) == -1… in CreateUnixClientSocket()
|
| /arkcompiler/runtime_core/runtime/arch/ |
| D | helpers.h | 88 return reinterpret_cast<uint8_t *>(RoundUp(reinterpret_cast<uintptr_t>(ptr), sizeof(T))); 94 return reinterpret_cast<const uint8_t *>(RoundUp(reinterpret_cast<uintptr_t>(ptr), sizeof(T))); 98 typename std::enable_if<sizeof(T) < sizeof(uint32_t), uint8_t *>::type WriteToMem(T v, uint8_t *mem) 106 ASSERT(reinterpret_cast<std::uintptr_t>(mem) % sizeof(std::uintptr_t) == 0); 116 typename std::enable_if<(sizeof(T) >= sizeof(uint32_t)), uint8_t *>::type WriteToMem(T v, uint8_t *… 118 ASSERT(reinterpret_cast<std::uintptr_t>(mem) % sizeof(std::uintptr_t) == 0); 131 constexpr size_t NUM_BYTES = std::max(sizeof(T), ExtArchTraits<A>::FPR_SIZE); 144 constexpr size_t NUM_BYTES = std::max(sizeof(T), PTR_SIZE); 190 constexpr size_t READ_BYTES = std::max(sizeof(T), ExtArchTraits<A>::FPR_SIZE); 207 constexpr size_t READ_BYTES = std::max(sizeof(T), PTR_SIZE); [all …]
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | encoders_test.cpp | 81 memcpy_s(&tmp_value, sizeof(T), data, sizeof(T)); in TestPcRelativeLoad() 87 memcpy_s(data, sizeof(T), &good_value, sizeof(T)); in TestPcRelativeLoad() 107 memcpy_s(&tmp_value, sizeof(T), data, sizeof(T)); in TestPcRelativeLoad() 124 memcpy_s(data, sizeof(T), &bad_value, sizeof(T)); in TestPcRelativeLoad() 166 if constexpr (sizeof(T) == sizeof(uint64_t)) { in GetBadValue() 175 if constexpr (sizeof(T) == sizeof(uint64_t)) { in GetGoodValue() 202 for (size_t i = 0; i < buf_size / sizeof(uint32_t); i++) { in TEST_F() 209 for (size_t i = 0; i < buf_size / sizeof(uint32_t); i++) { in TEST_F()
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | base_mem_stats_test.cpp | 62 size_t size1 = sizeof(buff1); 63 size_t size2 = sizeof(buff2); 66 tmp = ca.AllocateCode(sizeof(buff2), static_cast<void *>(&buff2[0])); 74 ASSERT_EQ(sizeof(buff1) + sizeof(buff2), stats.GetAllocated(SpaceType::SPACE_TYPE_CODE)); 75 ASSERT_EQ(sizeof(buff2), stats.GetFreed(SpaceType::SPACE_TYPE_CODE)); 76 ASSERT_EQ(sizeof(buff1), stats.GetFootprint(SpaceType::SPACE_TYPE_CODE));
|
| D | alloc_tracker_test.cpp | 44 in.read(reinterpret_cast<char *>(&len), sizeof(len)); in SkipString() 59 out.read(reinterpret_cast<char *>(&hdr), sizeof(hdr)); in TEST() 74 out.read(reinterpret_cast<char *>(&hdr), sizeof(hdr)); in TEST() 83 out.read(reinterpret_cast<char *>(&info), sizeof(info)); in TEST() 102 out.read(reinterpret_cast<char *>(&hdr), sizeof(hdr)); in TEST() 112 out.read(reinterpret_cast<char *>(&alloc), sizeof(alloc)); in TEST() 113 out.read(reinterpret_cast<char *>(&free), sizeof(free)); in TEST() 151 out.read(reinterpret_cast<char *>(&hdr), sizeof(hdr)); in TEST()
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | bytecode_instruction_tests.cpp | 263 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST() 271 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST() 280 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST() 287 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST() 295 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST() 303 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST() 312 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST() 319 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST() 327 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST() 335 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/accessor/ |
| D | module_data_accessor.cpp | 30 auto value = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&moduleSp)); in ModuleDataAccessor() 53 … auto localNameOffset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateImportEntry() 54 … auto importNameOffset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateImportEntry() 55 … auto moduleRequestIdx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateImportEntry() 78 … auto localNameOffset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateImportEntry() 79 … auto moduleRequestIdx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateImportEntry() 106 … auto localNameOffset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLocalExportEntry() 107 … auto exportNameOffset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLocalExportEntry() 140 … auto exportNameOffset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateIndirectExportEntry() 141 … auto importNameOffset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateIndirectExportEntry() [all …]
|
| /arkcompiler/runtime_core/libpandabase/ |
| D | globals.h | 24 static constexpr unsigned BITS_PER_UINT16 = sizeof(uint16_t) * BITS_PER_BYTE; 25 static constexpr unsigned BITS_PER_UINT32 = sizeof(uint32_t) * BITS_PER_BYTE; 26 static constexpr unsigned BITS_PER_UINT64 = sizeof(uint64_t) * BITS_PER_BYTE; 27 static constexpr unsigned BITS_PER_INTPTR = sizeof(intptr_t) * BITS_PER_BYTE;
|
| /arkcompiler/runtime_core/compiler/aot/aot_builder/ |
| D | elf_builder.h | 237 return symbols_.size() * sizeof(ElfSym); in GetDataSize() 398 uint32_t cie_length {*cie_addr_32 + static_cast<uint32_t>(sizeof(uint32_t))}; in HackAddressesForJit() 400 uint8_t *fde_initial_pc_addr_8 {cie_addr_8 + cie_length + 2U * sizeof(uint32_t)}; in HackAddressesForJit() 486 …ection(*this, ".hash", SHT_HASH, SHF_ALLOC, &dynsym_section_, 0, sizeof(ElfWord), sizeof(ElfWord)); 496 …tion(*this, ".dynsym", SHT_DYNSYM, SHF_ALLOC, &dynstr_section_, 1, sizeof(ElfOff), sizeof(ElfSym)); 498 …aot_section_ = DataSection(*this, ".aot", SHT_PROGBITS, SHF_ALLOC, nullptr, 0, sizeof(ElfWord), 0); 503 …n(*this, ".dynamic", SHT_DYNAMIC, SHF_ALLOC, &dynstr_section_, 0, PAGE_SIZE_VALUE, sizeof(ElfDyn)); 570 {DT_SYMENT, {sizeof(ElfSym)}}, in ConstructDynamicSection() 575 dynamic_section_.AppendData(&dyns, sizeof(dyns)); in ConstructDynamicSection() 581 2U * sizeof(ElfDyn) + offsetof(ElfDyn, d_un.d_ptr)); in ConstructDynamicSection() [all …]
|
| D | aot_builder.cpp | 49 CopyToSpan(stream, data, sizeof(prefix), curr_pos); in FillData() 50 curr_pos += sizeof(prefix); in FillData() 53 curr_pos += code_offset - sizeof(prefix); in FillData() 97 …(entity_pair_headers_.size() - class_hash_tables_size_.back()) * sizeof(panda_file::EntityPairHead… in EndFile() 131 aot_header_.files_offset = sizeof(aot_header_); in FillHeader() 134 aot_header_.files_offset + aot_header_.files_count * sizeof(compiler::PandaFileHeader); in FillHeader() 135 …size_t class_hash_tables_size = entity_pair_headers_.size() * sizeof(panda_file::EntityPairHeader); in FillHeader() 137 …aot_header_.methods_offset = aot_header_.classes_offset + class_headers_.size() * sizeof(compiler:… in FillHeader() 138 …aot_header_.bitmap_offset = aot_header_.methods_offset + methods_.size() * sizeof(compiler::Method… in FillHeader() 176 aot_section->AppendData(&aot_header_, sizeof(aot_header_)); in WriteImpl() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | aot_file_manager.cpp | 52 file.write(reinterpret_cast<char *>(&secInfoSize), sizeof(secInfoSize)); in SaveSectionsInfo() 60 file.write(reinterpret_cast<char *>(&secName), sizeof(secName)); in SaveSectionsInfo() 61 file.write(reinterpret_cast<char *>(&curSecSize), sizeof(curSecSize)); in SaveSectionsInfo() 66 file.write(reinterpret_cast<char *>(&size), sizeof(size)); in SaveSectionsInfo() 71 file.write(reinterpret_cast<char *>(&index), sizeof(index)); in SaveSectionsInfo() 72 file.write(reinterpret_cast<char *>(&cnt), sizeof(cnt)); in SaveSectionsInfo() 87 parser.ParseBuffer(&size, sizeof(size)); in LoadStackMapSection() 94 parser.ParseBuffer(&index, sizeof(index)); in LoadStackMapSection() 95 parser.ParseBuffer(&cnt, sizeof(cnt)); in LoadStackMapSection() 104 parser.ParseBuffer(&secInfoSize, sizeof(secInfoSize)); in LoadSectionsInfo() [all …]
|