Searched refs:MapRange (Results 1 – 8 of 8) sorted by relevance
/arkcompiler/runtime_core/libpandabase/os/ |
D | mem.h | 107 class MapRange { 109 MapRange(T *ptr, size_t size) : sp_(reinterpret_cast<std::byte *>(ptr), size) {} in MapRange() function 111 MapRange GetSubRange(size_t offset, size_t size) in GetSubRange() 113 return MapRange(sp_.SubSpan(offset, size)); in GetSubRange() 146 MapRange<T> Align() const in Align() 151 return MapRange<T>(sp); in Align() 164 virtual ~MapRange() = default; 166 DEFAULT_COPY_SEMANTIC(MapRange); 167 NO_MOVE_SEMANTIC(MapRange); 170 explicit MapRange(const Span<std::byte> &sp) : sp_(sp) {} in MapRange() function [all …]
|
/arkcompiler/runtime_core/libpandabase/mem/ |
D | code_allocator.cpp | 54 ProtectCode(os::mem::MapRange<std::byte>(static_cast<std::byte *>(code_ptr), size)); in AllocateCode() 60 os::mem::MapRange<std::byte> CodeAllocator::AllocateCodeUnprotected(size_t size) in AllocateCodeUnprotected() 65 return os::mem::MapRange<std::byte>(nullptr, 0); in AllocateCodeUnprotected() 69 return os::mem::MapRange<std::byte>(static_cast<std::byte *>(code_ptr), size); in AllocateCodeUnprotected() 73 void CodeAllocator::ProtectCode(os::mem::MapRange<std::byte> mem_range) in ProtectCode()
|
D | code_allocator.h | 47 [[nodiscard]] os::mem::MapRange<std::byte> AllocateCodeUnprotected(size_t size); 53 static void ProtectCode(os::mem::MapRange<std::byte> mem_range);
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | code_allocator_test.cpp | 68 os::mem::MapRange<std::byte> map_range = ca.AllocateCodeUnprotected(8U);
|
/arkcompiler/runtime_core/compiler/tests/ |
D | asm_printer_test.cpp | 114 os::mem::MapRange<std::byte> mem_range(static_cast<std::byte *>(ptr), size); in ResetCodeAllocator()
|
/arkcompiler/runtime_core/compiler/tests/amd64/ |
D | encoder64_test.cpp | 156 os::mem::MapRange<std::byte> mem_range(static_cast<std::byte *>(ptr), size); in ResetCodeAllocator()
|
/arkcompiler/runtime_core/compiler/tests/aarch32/ |
D | encoder32_test.cpp | 150 os::mem::MapRange<std::byte> mem_range(static_cast<std::byte *>(ptr), size); in ResetCodeAllocator()
|
/arkcompiler/runtime_core/compiler/tests/aarch64/ |
D | encoder64_test.cpp | 164 os::mem::MapRange<std::byte> mem_range(static_cast<std::byte *>(ptr), size); in ResetCodeAllocator()
|