Home
last modified time | relevance | path

Searched refs:MapRange (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/runtime_core/libpandabase/os/
Dmem.h107 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/
Dcode_allocator.cpp54 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()
Dcode_allocator.h47 [[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/
Dcode_allocator_test.cpp68 os::mem::MapRange<std::byte> map_range = ca.AllocateCodeUnprotected(8U);
/arkcompiler/runtime_core/compiler/tests/
Dasm_printer_test.cpp114 os::mem::MapRange<std::byte> mem_range(static_cast<std::byte *>(ptr), size); in ResetCodeAllocator()
/arkcompiler/runtime_core/compiler/tests/amd64/
Dencoder64_test.cpp156 os::mem::MapRange<std::byte> mem_range(static_cast<std::byte *>(ptr), size); in ResetCodeAllocator()
/arkcompiler/runtime_core/compiler/tests/aarch32/
Dencoder32_test.cpp150 os::mem::MapRange<std::byte> mem_range(static_cast<std::byte *>(ptr), size); in ResetCodeAllocator()
/arkcompiler/runtime_core/compiler/tests/aarch64/
Dencoder64_test.cpp164 os::mem::MapRange<std::byte> mem_range(static_cast<std::byte *>(ptr), size); in ResetCodeAllocator()