Home
last modified time | relevance | path

Searched refs:MemoryRegion (Results 1 – 25 of 26) sorted by relevance

12

/art/libartbase/base/
Dmemory_region.h37 class MemoryRegion final : public ValueObject {
40 constexpr bool operator()(const MemoryRegion& lhs, const MemoryRegion& rhs) const { in operator()
45 MemoryRegion() : pointer_(nullptr), size_(0) {} in MemoryRegion() function
46 MemoryRegion(void* pointer_in, uintptr_t size_in) : pointer_(pointer_in), size_(size_in) {} in MemoryRegion() function
53 return OFFSETOF_MEMBER(MemoryRegion, pointer_); in pointer_offset()
112 void CopyFrom(size_t offset, const MemoryRegion& from) const;
117 CopyFrom(offset, MemoryRegion(vector.data(), vector.size())); in CopyFromVector()
122 ALWAYS_INLINE MemoryRegion Subregion(uintptr_t offset, uintptr_t size_in) const { in Subregion()
125 return MemoryRegion(reinterpret_cast<void*>(begin() + offset), size_in); in Subregion()
129 ALWAYS_INLINE void Extend(const MemoryRegion& region, uintptr_t extra) { in Extend()
Dmemory_region_test.cc23 TEST(MemoryRegion, LoadUnaligned) { in TEST() argument
26 MemoryRegion region(&data, n); in TEST()
38 TEST(MemoryRegion, StoreUnaligned) { in TEST() argument
41 MemoryRegion region(&data, n); in TEST()
Dmemory_region.cc24 void MemoryRegion::CopyFrom(size_t offset, const MemoryRegion& from) const { in CopyFrom()
Dbit_memory_region_test.cc61 BitMemoryRegion bmr1(MemoryRegion(&data, sizeof(data)), bit_offset, 1); in TEST()
67 BitMemoryRegion bmr2(MemoryRegion(&data, sizeof(data))); in TEST()
85 BitMemoryRegion bmr1(MemoryRegion(&data, sizeof(data)), bit_offset, bit_length); in TEST()
91 BitMemoryRegion bmr2(MemoryRegion(&data, sizeof(data))); in TEST()
Dbit_table.h310 FNVHash<MemoryRegion> hasher;
311 uint32_t hash = hasher(MemoryRegion(values, sizeof(Entry) * count));
409 MemoryRegion operator[](size_t row) { return rows_[row]; }
410 const MemoryRegion operator[](size_t row) const { return rows_[row]; }
417 MemoryRegion region(const_cast<void*>(bitmap), BitsToBytesRoundUp(num_bits)); in Dedup()
420 FNVHash<MemoryRegion> hasher; in Dedup()
426 if (MemoryRegion::ContentEquals()(region, rows_[it->second])) { in Dedup()
435 rows_.push_back(MemoryRegion(copy, region.size())); in Dedup()
453 for (MemoryRegion row : rows_) { in Encode()
482 ScopedArenaDeque<MemoryRegion> rows_;
Dbit_table_test.cc171 FNVHash<MemoryRegion> hasher; in TEST()
177 EXPECT_EQ(hasher(MemoryRegion(&value0, sizeof(value0))), in TEST()
178 hasher(MemoryRegion(&value1, sizeof(value1)))); in TEST()
186 EXPECT_EQ(hasher(MemoryRegion(&value0, BitsToBytesRoundUp(MinimumBitsToStore(value0[0])))), in TEST()
187 hasher(MemoryRegion(&value1, BitsToBytesRoundUp(MinimumBitsToStore(value1[0]))))); in TEST()
Dbit_memory_region.h47 ALWAYS_INLINE explicit BitMemoryRegion(MemoryRegion region) in BitMemoryRegion()
50 ALWAYS_INLINE BitMemoryRegion(MemoryRegion region, size_t bit_offset, size_t bit_length) in BitMemoryRegion()
/art/compiler/utils/
Dassembler.cc54 void AssemblerBuffer::ProcessFixups(const MemoryRegion& region) { in ProcessFixups()
67 MemoryRegion from(reinterpret_cast<void*>(contents()), Size()); in ProcessFixups()
72 void AssemblerBuffer::CopyInstructions(const MemoryRegion& instructions) { in CopyInstructions()
73 MemoryRegion from(reinterpret_cast<void*>(contents()), Size()); in CopyInstructions()
Dassembler.h50 virtual void Process(const MemoryRegion& region, int position) = 0;
167 void CopyInstructions(const MemoryRegion& region);
273 void ProcessFixups(const MemoryRegion& region);
382 virtual void CopyInstructions(const MemoryRegion& region) { in CopyInstructions()
Djni_macro_assembler.h38 class MemoryRegion; variable
95 virtual void CopyInstructions(const MemoryRegion& region) = 0;
289 void CopyInstructions(const MemoryRegion& region) override { in CopyInstructions()
Djni_macro_assembler_test.h86 MemoryRegion code(&(*data)[0], data->size()); in DriverWrapper()
Dassembler_thumb_test.cc81 MemoryRegion code(&managed_code[0], managed_code.size()); in EmitAndCheck()
Dassembler_test.h1631 MemoryRegion code(&(*data)[0], data->size()); in DriverWrapper()
/art/compiler/trampolines/
Dtrampoline_compiler.cc81 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
118 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
150 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
171 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
192 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
/art/compiler/utils/arm64/
Dassembler_arm64.cc82 void Arm64Assembler::CopyInstructions(const MemoryRegion& region) { in CopyInstructions()
84 MemoryRegion from(vixl_masm_.GetBuffer()->GetStartAddress<void*>(), CodeSize()); in CopyInstructions()
Dassembler_arm64.h94 void CopyInstructions(const MemoryRegion& region) override;
/art/compiler/jni/
Djni_cfi_test.cc98 MemoryRegion code(&actual_asm[0], actual_asm.size()); in TestImplSized()
/art/compiler/utils/arm/
Dassembler_arm_vixl.cc55 void ArmVIXLAssembler::CopyInstructions(const MemoryRegion& region) { in CopyInstructions()
57 MemoryRegion from(vixl_masm_.GetBuffer()->GetStartAddress<void*>(), CodeSize()); in CopyInstructions()
Dassembler_arm_vixl.h221 void CopyInstructions(const MemoryRegion& region) override;
/art/compiler/jni/quick/
Djni_compiler.cc720 MemoryRegion code(&managed_code[0], managed_code.size()); in ArtJniCompileMethodInternal()
/art/libprofile/profile/
Dprofile_compilation_info.h792 BitMemoryRegion(MemoryRegion( in DexFileData()
/art/compiler/utils/riscv64/
Djni_macro_assembler_riscv64_test.cc53 MemoryRegion code(&data[0], data.size()); in DriverStr()
/art/compiler/optimizing/
Dcode_generator_arm64.cc5476 MemoryRegion code_region(code->data(), code->size()); in EmitThunkCode()
Dcode_generator_x86_64.cc8382 void Process(const MemoryRegion& region, int pos) override { in Process()
Dcode_generator_x86.cc9061 void Process(const MemoryRegion& region, int pos) override { in Process()

12