Home
last modified time | relevance | path

Searched refs:MemoryRegion (Results 1 – 25 of 35) 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.h308 FNVHash<MemoryRegion> hasher;
309 uint32_t hash = hasher(MemoryRegion(values, sizeof(Entry) * count));
410 MemoryRegion operator[](size_t row) { return rows_[row]; }
411 const MemoryRegion operator[](size_t row) const { return rows_[row]; }
418 MemoryRegion region(const_cast<void*>(bitmap), BitsToBytesRoundUp(num_bits)); in Dedup()
421 FNVHash<MemoryRegion> hasher; in Dedup()
427 if (MemoryRegion::ContentEquals()(region, rows_[it->second])) { in Dedup()
436 rows_.push_back(MemoryRegion(copy, region.size())); in Dedup()
452 for (MemoryRegion row : rows_) { in Encode()
481 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.h46 ALWAYS_INLINE explicit BitMemoryRegion(MemoryRegion region) in BitMemoryRegion()
49 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()
63 void AssemblerBuffer::FinalizeInstructions(const MemoryRegion& instructions) { in FinalizeInstructions()
65 MemoryRegion from(reinterpret_cast<void*>(contents()), Size()); in FinalizeInstructions()
Dassembler.h51 virtual void Process(const MemoryRegion& region, int position) = 0;
169 void FinalizeInstructions(const MemoryRegion& region);
273 void ProcessFixups(const MemoryRegion& region);
378 virtual void FinalizeInstructions(const MemoryRegion& region) { in FinalizeInstructions()
Djni_macro_assembler.h38 class MemoryRegion; variable
61 virtual void FinalizeInstructions(const MemoryRegion& region) = 0;
270 void FinalizeInstructions(const MemoryRegion& region) override { in FinalizeInstructions()
Djni_macro_assembler_test.h137 MemoryRegion code(&(*data)[0], data->size()); in DriverWrapper()
Dassembler_thumb_test.cc185 MemoryRegion code(&managed_code[0], managed_code.size()); in EmitAndCheck()
Dassembler_test.h1602 MemoryRegion code(&(*data)[0], data->size()); in DriverWrapper()
/art/compiler/trampolines/
Dtrampoline_compiler.cc88 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
130 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
162 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
194 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
215 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
236 MemoryRegion code(entry_stub->data(), entry_stub->size()); in CreateTrampoline()
/art/compiler/utils/arm64/
Dassembler_arm64.cc78 void Arm64Assembler::FinalizeInstructions(const MemoryRegion& region) { in FinalizeInstructions()
80 MemoryRegion from(vixl_masm_.GetBuffer()->GetStartAddress<void*>(), CodeSize()); in FinalizeInstructions()
Dassembler_arm64.h84 void FinalizeInstructions(const MemoryRegion& region) override;
/art/compiler/jni/
Djni_cfi_test.cc92 MemoryRegion code(&actual_asm[0], actual_asm.size()); in TestImplSized()
/art/compiler/utils/arm/
Dassembler_arm_vixl.cc55 void ArmVIXLAssembler::FinalizeInstructions(const MemoryRegion& region) { in FinalizeInstructions()
57 MemoryRegion from(vixl_masm_.GetBuffer()->GetStartAddress<void*>(), CodeSize()); in FinalizeInstructions()
Dassembler_arm_vixl.h171 void FinalizeInstructions(const MemoryRegion& region) override;
/art/compiler/optimizing/
Demit_swap_mips_test.cc104 MemoryRegion code(&(*data)[0], data->size()); in DriverWrapper()
Dcode_generator.cc449 MemoryRegion code(buffer, code_size); in Finalize()
/art/libprofile/profile/
Dprofile_compilation_info.h513 BitMemoryRegion(MemoryRegion( in DexFileData()
/art/compiler/jni/quick/
Djni_compiler.cc650 MemoryRegion code(&managed_code[0], managed_code.size()); in ArtJniCompileMethodInternal()
/art/compiler/utils/mips/
Dassembler_mips32r5_test.cc54 MemoryRegion code(data.data(), data.size()); in DriverStr()
/art/compiler/utils/mips64/
Dassembler_mips64.h1440 void FinalizeInstructions(const MemoryRegion& region) override;

12