/art/runtime/jdwp/ |
D | jdwp_bits.h | 35 static inline void Append1BE(std::vector<uint8_t>& bytes, uint8_t value) { in Append1BE() 39 static inline void Append2BE(std::vector<uint8_t>& bytes, uint16_t value) { in Append2BE() 40 bytes.push_back(static_cast<uint8_t>(value >> 8)); in Append2BE() 41 bytes.push_back(static_cast<uint8_t>(value)); in Append2BE() 44 static inline void Append4BE(std::vector<uint8_t>& bytes, uint32_t value) { in Append4BE() 45 bytes.push_back(static_cast<uint8_t>(value >> 24)); in Append4BE() 46 bytes.push_back(static_cast<uint8_t>(value >> 16)); in Append4BE() 47 bytes.push_back(static_cast<uint8_t>(value >> 8)); in Append4BE() 48 bytes.push_back(static_cast<uint8_t>(value)); in Append4BE() 51 static inline void Append8BE(std::vector<uint8_t>& bytes, uint64_t value) { in Append8BE() [all …]
|
D | jdwp_priv.h | 39 static constexpr uint8_t kJDWPFlagReply = 0x80; 45 static constexpr uint8_t kJDWPClassTypeCmdSet = 3U; 46 static constexpr uint8_t kJDWPClassTypeInvokeMethodCmd = 3U; 47 static constexpr uint8_t kJDWPClassTypeNewInstanceCmd = 4U; 48 static constexpr uint8_t kJDWPInterfaceTypeCmdSet = 5U; 49 static constexpr uint8_t kJDWPInterfaceTypeInvokeMethodCmd = 1U; 50 static constexpr uint8_t kJDWPObjectReferenceCmdSet = 9U; 51 static constexpr uint8_t kJDWPObjectReferenceInvokeCmd = 6U; 54 static constexpr uint8_t kJDWPEventCmdSet = 64U; 55 static constexpr uint8_t kJDWPEventCompositeCmd = 100U; [all …]
|
/art/dex2oat/linker/x86_64/ |
D | relative_patcher_x86_64_test.cc | 29 static const uint8_t kCallRawCode[]; 30 static const ArrayRef<const uint8_t> kCallCode; 31 static const uint8_t kDexCacheLoadRawCode[]; 32 static const ArrayRef<const uint8_t> kDexCacheLoadCode; 33 static const uint8_t kStringReferenceRawCode[]; 34 static const ArrayRef<const uint8_t> kStringReferenceCode; 43 const uint8_t X86_64RelativePatcherTest::kCallRawCode[] = { 47 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kCallCode(kCallRawCode); 49 const uint8_t X86_64RelativePatcherTest::kDexCacheLoadRawCode[] = { 54 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kDexCacheLoadCode( [all …]
|
/art/dex2oat/linker/x86/ |
D | relative_patcher_x86_test.cc | 29 static const uint8_t kCallRawCode[]; 30 static const ArrayRef<const uint8_t> kCallCode; 39 const uint8_t X86RelativePatcherTest::kCallRawCode[] = { 43 const ArrayRef<const uint8_t> X86RelativePatcherTest::kCallCode(kCallRawCode); 52 static const uint8_t expected_code[] = { in TEST_F() 55 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 72 static const uint8_t method1_expected_code[] = { in TEST_F() 74 static_cast<uint8_t>(diff_after), in TEST_F() 75 static_cast<uint8_t>(diff_after >> 8), in TEST_F() 76 static_cast<uint8_t>(diff_after >> 16), in TEST_F() [all …]
|
D | relative_patcher_x86.cc | 25 void X86RelativePatcher::PatchPcRelativeReference(std::vector<uint8_t>* code, in PatchPcRelativeReference() 46 DCHECK_EQ((*code)[literal_offset + 0u], static_cast<uint8_t>(kDummy32BitOffset >> 0)); in PatchPcRelativeReference() 47 DCHECK_EQ((*code)[literal_offset + 1u], static_cast<uint8_t>(kDummy32BitOffset >> 8)); in PatchPcRelativeReference() 48 DCHECK_EQ((*code)[literal_offset + 2u], static_cast<uint8_t>(kDummy32BitOffset >> 16)); in PatchPcRelativeReference() 49 DCHECK_EQ((*code)[literal_offset + 3u], static_cast<uint8_t>(kDummy32BitOffset >> 24)); in PatchPcRelativeReference() 54 (*code)[literal_offset + 0u] = static_cast<uint8_t>(diff >> 0); in PatchPcRelativeReference() 55 (*code)[literal_offset + 1u] = static_cast<uint8_t>(diff >> 8); in PatchPcRelativeReference() 56 (*code)[literal_offset + 2u] = static_cast<uint8_t>(diff >> 16); in PatchPcRelativeReference() 57 (*code)[literal_offset + 3u] = static_cast<uint8_t>(diff >> 24); in PatchPcRelativeReference() 60 void X86RelativePatcher::PatchBakerReadBarrierBranch(std::vector<uint8_t>* code ATTRIBUTE_UNUSED, in PatchBakerReadBarrierBranch()
|
/art/runtime/gc/accounting/ |
D | card_table.h | 51 static constexpr uint8_t kCardClean = 0x0; 52 static constexpr uint8_t kCardDirty = 0x70; 53 static constexpr uint8_t kCardAged = kCardDirty - 1; 55 static CardTable* Create(const uint8_t* heap_begin, size_t heap_capacity); 74 uint8_t GetCard(const mirror::Object* obj) const { in GetCard() 81 uint8_t* card_start = CardFromAddr(start); in VisitClear() 82 uint8_t* card_end = CardFromAddr(end); in VisitClear() 83 for (uint8_t* it = card_start; it != card_end; ++it) { in VisitClear() 93 uint8_t* GetBiasedBegin() const { in GetBiasedBegin() 112 void ModifyCardsAtomic(uint8_t* scan_begin, [all …]
|
D | card_table_test.cc | 52 CardTableTest() : heap_begin_(reinterpret_cast<uint8_t*>(0x2000000)), heap_size_(2 * MB) { in CardTableTest() 57 uint8_t* HeapBegin() const { in HeapBegin() 60 uint8_t* HeapLimit() const { in HeapLimit() 64 uint8_t PseudoRandomCard(const uint8_t* addr) const { in PseudoRandomCard() 69 for (const uint8_t* addr = HeapBegin(); addr != HeapLimit(); addr += CardTable::kCardSize) { in FillRandom() 71 uint8_t* card = card_table_->CardFromAddr(addr); in FillRandom() 77 uint8_t* const heap_begin_; 83 for (const uint8_t* addr = HeapBegin(); addr < HeapLimit(); addr += kObjectAlignment) { in TEST_F() 90 uint8_t* card_addr = card_table_->CardFromAddr(addr); in TEST_F() 99 uint8_t operator()(uint8_t c) const { in operator ()() [all …]
|
D | card_table-inl.h | 33 static inline bool byte_cas(uint8_t old_value, uint8_t new_value, uint8_t* address) { in byte_cas() 35 Atomic<uint8_t>* byte_atomic = reinterpret_cast<Atomic<uint8_t>*>(address); in byte_cas() 56 uint8_t* const scan_begin, in Scan() 57 uint8_t* const scan_end, in Scan() 59 const uint8_t minimum_age) { in Scan() 60 DCHECK_GE(scan_begin, reinterpret_cast<uint8_t*>(bitmap->HeapBegin())); in Scan() 62 DCHECK_LE(scan_end, reinterpret_cast<uint8_t*>(bitmap->HeapLimit())); in Scan() 63 uint8_t* const card_begin = CardFromAddr(scan_begin); in Scan() 64 uint8_t* const card_end = CardFromAddr(AlignUp(scan_end, kCardSize)); in Scan() 65 uint8_t* card_cur = card_begin; in Scan() [all …]
|
D | card_table.cc | 36 constexpr uint8_t CardTable::kCardClean; 37 constexpr uint8_t CardTable::kCardDirty; 61 CardTable* CardTable::Create(const uint8_t* heap_begin, size_t heap_capacity) { in Create() 77 uint8_t* cardtable_begin = mem_map.Begin(); in Create() 83 uint8_t* biased_begin = reinterpret_cast<uint8_t*>(reinterpret_cast<uintptr_t>(cardtable_begin) - in Create() 95 CardTable::CardTable(MemMap&& mem_map, uint8_t* biased_begin, size_t offset) in CardTable() 108 void CardTable::ClearCardRange(uint8_t* start, uint8_t* end) { in ClearCardRange() 112 uint8_t* start_card = CardFromAddr(start); in ClearCardRange() 113 uint8_t* end_card = CardFromAddr(end); in ClearCardRange() 121 void CardTable::CheckAddrIsInCardTable(const uint8_t* addr) const { in CheckAddrIsInCardTable() [all …]
|
D | read_barrier_table.h | 51 uint8_t* entry_start = EntryFromAddr(space->Begin()); in ClearForSpace() 52 uint8_t* entry_end = EntryFromAddr(space->Limit()); in ClearForSpace() 55 void Clear(uint8_t* start_addr, uint8_t* end_addr) { in Clear() 60 uint8_t* entry_start = EntryFromAddr(start_addr); in Clear() 61 uint8_t* entry_end = EntryFromAddr(end_addr); in Clear() 66 uint8_t entry_value = *EntryFromAddr(heap_addr); in IsSet() 91 static constexpr uint8_t kSetEntryValue = 0x01; 93 uint8_t* EntryFromAddr(const void* heap_addr) const { in EntryFromAddr() 95 uint8_t* entry_addr = mem_map_.Begin() + reinterpret_cast<uintptr_t>(heap_addr) / kRegionSize; in EntryFromAddr() 110 bool IsValidEntry(const uint8_t* entry_addr) const { in IsValidEntry() [all …]
|
/art/compiler/utils/ |
D | dedupe_set_test.cc | 32 size_t operator()(const ArrayRef<const uint8_t>& array) const { in operator ()() 34 for (uint8_t c : array) { in operator ()() 45 const std::vector<uint8_t>* Copy(const ArrayRef<const uint8_t>& src) { in Copy() 46 return new std::vector<uint8_t>(src.begin(), src.end()); in Copy() 49 void Destroy(const std::vector<uint8_t>* key) { in Destroy() 57 DedupeSet<ArrayRef<const uint8_t>, in TEST() 58 std::vector<uint8_t>, in TEST() 62 const std::vector<uint8_t>* array1; in TEST() 64 uint8_t raw_test1[] = { 10u, 20u, 30u, 45u }; in TEST() 65 ArrayRef<const uint8_t> test1(raw_test1); in TEST() [all …]
|
/art/disassembler/ |
D | disassembler_x86.h | 32 size_t Dump(std::ostream& os, const uint8_t* begin) override; 33 void Dump(std::ostream& os, const uint8_t* begin, const uint8_t* end) override; 36 size_t DumpNops(std::ostream& os, const uint8_t* instr); 37 size_t DumpInstruction(std::ostream& os, const uint8_t* instr); 39 std::string DumpAddress(uint8_t mod, uint8_t rm, uint8_t rex64, uint8_t rex_w, bool no_ops, 40 bool byte_operand, bool byte_second_operand, uint8_t* prefix, bool load, 41 RegFile src_reg_file, RegFile dst_reg_file, const uint8_t** instr,
|
D | disassembler.h | 37 const uint8_t* const base_address_; 40 const uint8_t* const end_address_; 50 const uint8_t* base_address, in DisassemblerOptions() 51 const uint8_t* end_address, in DisassemblerOptions() 76 virtual size_t Dump(std::ostream& os, const uint8_t* begin) = 0; 78 virtual void Dump(std::ostream& os, const uint8_t* begin, const uint8_t* end) = 0; 87 std::string FormatInstructionPointer(const uint8_t* begin);
|
/art/runtime/ |
D | vdex_file.h | 103 reinterpret_cast<const uint8_t*>(this) + sizeof(VerifierDepsHeader)); in GetDexChecksumsArray() 111 static constexpr uint8_t kVdexInvalidMagic[] = { 'w', 'd', 'e', 'x' }; 114 static constexpr uint8_t kVdexMagic[] = { 'v', 'd', 'e', 'x' }; 118 static constexpr uint8_t kVerifierDepsVersion[] = { '0', '2', '1', '\0' }; 123 static constexpr uint8_t kDexSectionVersion[] = { '0', '0', '2', '\0' }; 127 static constexpr uint8_t kDexSectionVersionEmpty[] = { '0', '0', '0', '\0' }; 129 uint8_t magic_[4]; 130 uint8_t verifier_deps_version_[4]; 131 uint8_t dex_section_version_[4]; 183 static std::unique_ptr<VdexFile> OpenAtAddress(uint8_t* mmap_addr, [all …]
|
D | oat_file.h | 176 const uint8_t* GetVmapTable() const; 181 OatMethod(const uint8_t* base, const uint32_t code_offset) in OatMethod() 204 const uint8_t* begin_; 316 const uint8_t* Begin() const; 317 const uint8_t* End() const; 319 const uint8_t* DataBimgRelRoBegin() const { return data_bimg_rel_ro_begin_; } in DataBimgRelRoBegin() 320 const uint8_t* DataBimgRelRoEnd() const { return data_bimg_rel_ro_end_; } in DataBimgRelRoEnd() 322 const uint8_t* BssBegin() const { return bss_begin_; } in BssBegin() 323 const uint8_t* BssEnd() const { return bss_end_; } in BssEnd() 325 const uint8_t* VdexBegin() const { return vdex_begin_; } in VdexBegin() [all …]
|
/art/dex2oat/linker/mips64/ |
D | relative_patcher_mips64_test.cc | 29 static const uint8_t kUnpatchedPcRelativeRawCode[]; 30 static const uint8_t kUnpatchedPcRelativeCallRawCode[]; 35 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode; 48 const uint8_t Mips64RelativePatcherTest::kUnpatchedPcRelativeRawCode[] = { 57 const ArrayRef<const uint8_t> Mips64RelativePatcherTest::kUnpatchedPcRelativeCode( 71 const uint8_t expected_code[] = { in CheckPcRelativePatch() 72 static_cast<uint8_t>(diff >> 16), static_cast<uint8_t>(diff >> 24), 0x5E, 0xEE, in CheckPcRelativePatch() 73 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 0x52, 0x66, in CheckPcRelativePatch() 74 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 0x52, 0x9E, in CheckPcRelativePatch() 76 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 38 static const uint8_t kCallRawCode[]; 39 static const ArrayRef<const uint8_t> kCallCode; 40 static const uint8_t kNopRawCode[]; 41 static const ArrayRef<const uint8_t> kNopCode; 42 static const uint8_t kUnpatchedPcRelativeRawCode[]; 43 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode; 76 void InsertInsn(std::vector<uint8_t>* code, size_t pos, uint32_t insn) { in InsertInsn() 79 const uint8_t insn_code[] = { in InsertInsn() 80 static_cast<uint8_t>(insn), in InsertInsn() 81 static_cast<uint8_t>(insn >> 8), in InsertInsn() [all …]
|
/art/compiler/driver/ |
D | compiled_method_storage_test.cc | 30 const uint8_t raw_code1[] = { 1u, 2u, 3u }; in TEST() 31 const uint8_t raw_code2[] = { 4u, 3u, 2u, 1u }; in TEST() 32 ArrayRef<const uint8_t> code[] = { in TEST() 33 ArrayRef<const uint8_t>(raw_code1), in TEST() 34 ArrayRef<const uint8_t>(raw_code2), in TEST() 36 const uint8_t raw_vmap_table1[] = { 2, 4, 6 }; in TEST() 37 const uint8_t raw_vmap_table2[] = { 7, 5, 3, 1 }; in TEST() 38 ArrayRef<const uint8_t> vmap_table[] = { in TEST() 39 ArrayRef<const uint8_t>(raw_vmap_table1), in TEST() 40 ArrayRef<const uint8_t>(raw_vmap_table2), in TEST() [all …]
|
D | compiled_method_storage.h | 54 const LengthPrefixedArray<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code); 55 void ReleaseCode(const LengthPrefixedArray<uint8_t>* code); 57 const LengthPrefixedArray<uint8_t>* DeduplicateVMapTable(const ArrayRef<const uint8_t>& table); 58 void ReleaseVMapTable(const LengthPrefixedArray<uint8_t>* table); 60 const LengthPrefixedArray<uint8_t>* DeduplicateCFIInfo(const ArrayRef<const uint8_t>& cfi_info); 61 void ReleaseCFIInfo(const LengthPrefixedArray<uint8_t>* cfi_info); 70 ArrayRef<const uint8_t> GetThunkCode(const linker::LinkerPatch& linker_patch, 75 ArrayRef<const uint8_t> code, 118 ArrayDedupeSet<uint8_t> dedupe_code_; 119 ArrayDedupeSet<uint8_t> dedupe_vmap_table_; [all …]
|
D | compiled_method_storage.cc | 39 SwapAllocator<uint8_t> allocator(swap_space); in CopyArray() 48 SwapAllocator<uint8_t> allocator(swap_space); in ReleaseArray() 51 allocator.deallocate(const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(array)), size); in ReleaseArray() 130 ThunkMapValue(std::vector<uint8_t, SwapAllocator<uint8_t>>&& code, in ThunkMapValue() argument 134 ArrayRef<const uint8_t> GetCode() const { in GetCode() 135 return ArrayRef<const uint8_t>(code_); in GetCode() 143 std::vector<uint8_t, SwapAllocator<uint8_t>> code_; 150 dedupe_code_("dedupe code", LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage() 152 LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage() 153 dedupe_cfi_info_("dedupe cfi info", LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage() [all …]
|
/art/libartbase/base/ |
D | leb128.h | 33 static inline uint32_t DecodeUnsignedLeb128(const uint8_t** data) { in DecodeUnsignedLeb128() 34 const uint8_t* ptr = *data; in DecodeUnsignedLeb128() 58 static inline uint32_t DecodeUnsignedLeb128WithoutMovingCursor(const uint8_t* data) { in DecodeUnsignedLeb128WithoutMovingCursor() 62 static inline bool DecodeUnsignedLeb128Checked(const uint8_t** data, in DecodeUnsignedLeb128Checked() 65 const uint8_t* ptr = *data; in DecodeUnsignedLeb128Checked() 109 static inline int32_t DecodeUnsignedLeb128P1(const uint8_t** data) { in DecodeUnsignedLeb128P1() 116 static inline int32_t DecodeSignedLeb128(const uint8_t** data) { in DecodeSignedLeb128() 117 const uint8_t* ptr = *data; in DecodeSignedLeb128() 149 static inline bool DecodeSignedLeb128Checked(const uint8_t** data, in DecodeSignedLeb128Checked() 152 const uint8_t* ptr = *data; in DecodeSignedLeb128Checked() [all …]
|
/art/runtime/arch/x86/ |
D | fault_handler_x86.cc | 80 static uint32_t GetInstructionSize(const uint8_t* pc) { in GetInstructionSize() 94 pc = reinterpret_cast<uint8_t*>(buf); in GetInstructionSize() 111 const uint8_t* startpc = pc; in GetInstructionSize() 113 uint8_t opcode = *pc; in GetInstructionSize() 115 uint8_t modrm; in GetInstructionSize() 254 uint8_t mod = (modrm >> 6) & 3U /* 0b11 */; in GetInstructionSize() 295 reinterpret_cast<uint8_t*>(*out_sp) - GetStackOverflowReservedBytes(InstructionSet::kX86_64)); in GetMethodAndReturnPcAndSp() 297 reinterpret_cast<uint8_t*>(*out_sp) - GetStackOverflowReservedBytes(InstructionSet::kX86)); in GetMethodAndReturnPcAndSp() 306 uint8_t* pc = reinterpret_cast<uint8_t*>(uc->CTX_EIP); in GetMethodAndReturnPcAndSp() 329 uint8_t* pc = reinterpret_cast<uint8_t*>(uc->CTX_EIP); in Action() [all …]
|
/art/libdexfile/dex/ |
D | compact_dex_file.cc | 25 constexpr uint8_t CompactDexFile::kDexMagic[kDexMagicSize]; 26 constexpr uint8_t CompactDexFile::kDexMagicVersion[]; 28 void CompactDexFile::WriteMagic(uint8_t* magic) { in WriteMagic() 32 void CompactDexFile::WriteCurrentVersion(uint8_t* magic) { in WriteCurrentVersion() 36 bool CompactDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid() 40 bool CompactDexFile::IsVersionValid(const uint8_t* magic) { in IsVersionValid() 41 const uint8_t* version = &magic[sizeof(kDexMagic)]; in IsVersionValid() 65 uint32_t CompactDexFile::CalculateChecksum(const uint8_t* base_begin, in CalculateChecksum() 67 const uint8_t* data_begin, in CalculateChecksum() 74 uint32_t checksum = ChecksumMemoryRange(reinterpret_cast<const uint8_t*>(&temp_header), in CalculateChecksum() [all …]
|
/art/compiler/jni/quick/ |
D | jni_compiler.h | 34 std::vector<uint8_t>&& code, in JniCompiledMethod() 38 ArrayRef<const uint8_t> cfi) in JniCompiledMethod() 50 ArrayRef<const uint8_t> GetCode() const { return ArrayRef<const uint8_t>(code_); } in GetCode() 54 ArrayRef<const uint8_t> GetCfi() const { return ArrayRef<const uint8_t>(cfi_); } in GetCfi() 58 std::vector<uint8_t> code_; 62 std::vector<uint8_t> cfi_;
|
/art/dex2oat/linker/mips/ |
D | relative_patcher_mips_test.cc | 29 static const uint8_t kUnpatchedPcRelativeRawCode[]; 34 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode; 47 const uint8_t MipsRelativePatcherTest::kUnpatchedPcRelativeRawCode[] = { 58 const ArrayRef<const uint8_t> MipsRelativePatcherTest::kUnpatchedPcRelativeCode( 72 const uint8_t expected_code[] = { in CheckPcRelativePatch() 74 static_cast<uint8_t>(diff >> 16), static_cast<uint8_t>(diff >> 24), 0x12, 0x3C, in CheckPcRelativePatch() 76 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 0x52, 0x26, in CheckPcRelativePatch() 77 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 0x52, 0x8E, in CheckPcRelativePatch() 79 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()
|