/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/compiler/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/compiler/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 | 52 static constexpr uint8_t kCardClean = 0x0; 53 static constexpr uint8_t kCardDirty = 0x70; 54 static constexpr uint8_t kCardAged = kCardDirty - 1; 56 static CardTable* Create(const uint8_t* heap_begin, size_t heap_capacity); 70 uint8_t GetCard(const mirror::Object* obj) const { in GetCard() 77 uint8_t* card_start = CardFromAddr(start); in VisitClear() 78 uint8_t* card_end = CardFromAddr(end); in VisitClear() 79 for (uint8_t* it = card_start; it != card_end; ++it) { in VisitClear() 89 uint8_t* GetBiasedBegin() const { in GetBiasedBegin() 102 void ModifyCardsAtomic(uint8_t* scan_begin, [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_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.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() 75 uint8_t* cardtable_begin = mem_map->Begin(); in Create() 81 uint8_t* biased_begin = reinterpret_cast<uint8_t*>(reinterpret_cast<uintptr_t>(cardtable_begin) - in Create() 93 CardTable::CardTable(MemMap* mem_map, uint8_t* biased_begin, size_t offset) in CardTable() 106 void CardTable::ClearCardRange(uint8_t* start, uint8_t* end) { in ClearCardRange() 110 uint8_t* start_card = CardFromAddr(start); in ClearCardRange() 111 uint8_t* end_card = CardFromAddr(end); in ClearCardRange() 119 void CardTable::CheckAddrIsInCardTable(const uint8_t* addr) const { in CheckAddrIsInCardTable() [all …]
|
D | read_barrier_table.h | 49 uint8_t* entry_start = EntryFromAddr(space->Begin()); in ClearForSpace() 50 uint8_t* entry_end = EntryFromAddr(space->Limit()); in ClearForSpace() 53 void Clear(uint8_t* start_addr, uint8_t* end_addr) { in Clear() 58 uint8_t* entry_start = EntryFromAddr(start_addr); in Clear() 59 uint8_t* entry_end = EntryFromAddr(end_addr); in Clear() 64 uint8_t entry_value = *EntryFromAddr(heap_addr); in IsSet() 89 static constexpr uint8_t kSetEntryValue = 0x01; 91 uint8_t* EntryFromAddr(const void* heap_addr) const { in EntryFromAddr() 93 uint8_t* entry_addr = mem_map_->Begin() + reinterpret_cast<uintptr_t>(heap_addr) / kRegionSize; in EntryFromAddr() 108 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/compiler/driver/ |
D | compiled_method_storage.h | 53 const LengthPrefixedArray<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code); 54 void ReleaseCode(const LengthPrefixedArray<uint8_t>* code); 56 const LengthPrefixedArray<uint8_t>* DeduplicateMethodInfo( 57 const ArrayRef<const uint8_t>& method_info); 58 void ReleaseMethodInfo(const LengthPrefixedArray<uint8_t>* method_info); 60 const LengthPrefixedArray<uint8_t>* DeduplicateVMapTable(const ArrayRef<const uint8_t>& table); 61 void ReleaseVMapTable(const LengthPrefixedArray<uint8_t>* table); 63 const LengthPrefixedArray<uint8_t>* DeduplicateCFIInfo(const ArrayRef<const uint8_t>& cfi_info); 64 void ReleaseCFIInfo(const LengthPrefixedArray<uint8_t>* cfi_info); 99 ArrayDedupeSet<uint8_t> dedupe_code_; [all …]
|
D | compiled_method_storage_test.cc | 46 const uint8_t raw_code1[] = { 1u, 2u, 3u }; in TEST() 47 const uint8_t raw_code2[] = { 4u, 3u, 2u, 1u }; in TEST() 48 ArrayRef<const uint8_t> code[] = { in TEST() 49 ArrayRef<const uint8_t>(raw_code1), in TEST() 50 ArrayRef<const uint8_t>(raw_code2), in TEST() 52 const uint8_t raw_method_info_map1[] = { 1u, 2u, 3u, 4u, 5u, 6u }; in TEST() 53 const uint8_t raw_method_info_map2[] = { 8u, 7u, 6u, 5u, 4u, 3u, 2u, 1u }; in TEST() 54 ArrayRef<const uint8_t> method_info[] = { in TEST() 55 ArrayRef<const uint8_t>(raw_method_info_map1), in TEST() 56 ArrayRef<const uint8_t>(raw_method_info_map2), in TEST() [all …]
|
D | compiled_method_storage.cc | 38 SwapAllocator<uint8_t> allocator(swap_space); in CopyArray() 47 SwapAllocator<uint8_t> allocator(swap_space); in ReleaseArray() 50 allocator.deallocate(const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(array)), size); in ReleaseArray() 83 const uint8_t* data = reinterpret_cast<const uint8_t*>(array.data()); in operator ()() 112 const uint8_t *tail = reinterpret_cast<const uint8_t*>(data + nblocks * 4); in operator ()() 167 dedupe_code_("dedupe code", LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage() 169 LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage() 171 LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage() 172 dedupe_cfi_info_("dedupe cfi info", LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage() 194 const LengthPrefixedArray<uint8_t>* CompiledMethodStorage::DeduplicateCode( in DeduplicateCode() [all …]
|
/art/runtime/ |
D | vdex_file.h | 89 static constexpr uint8_t kVdexInvalidMagic[] = { 'w', 'd', 'e', 'x' }; 92 static constexpr uint8_t kVdexMagic[] = { 'v', 'd', 'e', 'x' }; 96 static constexpr uint8_t kVerifierDepsVersion[] = { '0', '1', '9', '\0' }; 101 static constexpr uint8_t kDexSectionVersion[] = { '0', '0', '2', '\0' }; 105 static constexpr uint8_t kDexSectionVersionEmpty[] = { '0', '0', '0', '\0' }; 107 uint8_t magic_[4]; 108 uint8_t verifier_deps_version_[4]; 109 uint8_t dex_section_version_[4]; 160 static std::unique_ptr<VdexFile> OpenAtAddress(uint8_t* mmap_addr, 171 static std::unique_ptr<VdexFile> OpenAtAddress(uint8_t* mmap_addr, [all …]
|
D | vdex_file.cc | 39 constexpr uint8_t VdexFile::VerifierDepsHeader::kVdexInvalidMagic[4]; 40 constexpr uint8_t VdexFile::VerifierDepsHeader::kVdexMagic[4]; 41 constexpr uint8_t VdexFile::VerifierDepsHeader::kVerifierDepsVersion[4]; 42 constexpr uint8_t VdexFile::VerifierDepsHeader::kDexSectionVersion[4]; 43 constexpr uint8_t VdexFile::VerifierDepsHeader::kDexSectionVersionEmpty[4]; 87 std::unique_ptr<VdexFile> VdexFile::OpenAtAddress(uint8_t* mmap_addr, in OpenAtAddress() 130 std::unique_ptr<VdexFile> VdexFile::OpenAtAddress(uint8_t* mmap_addr, in OpenAtAddress() 184 const uint8_t* VdexFile::GetNextDexFileData(const uint8_t* cursor) const { in GetNextDexFileData() 191 const uint8_t* data = cursor + reinterpret_cast<const DexFile::Header*>(cursor)->file_size_; in GetNextDexFileData() 204 for (const uint8_t* dex_file_start = GetNextDexFileData(nullptr); in OpenAllDexFiles() [all …]
|
D | oat_file.h | 90 uint8_t* requested_base, 91 uint8_t* oat_file_begin, 104 uint8_t* requested_base, 105 uint8_t* oat_file_begin, 172 const uint8_t* GetVmapTable() const; 177 OatMethod(const uint8_t* base, const uint32_t code_offset) in OatMethod() 200 const uint8_t* begin_; 308 const uint8_t* Begin() const; 309 const uint8_t* End() const; 311 const uint8_t* BssBegin() const; [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,
|
/art/compiler/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/compiler/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 34 static const uint8_t kCallRawCode[]; 35 static const ArrayRef<const uint8_t> kCallCode; 36 static const uint8_t kNopRawCode[]; 37 static const ArrayRef<const uint8_t> kNopCode; 38 static const uint8_t kUnpatchedPcRelativeRawCode[]; 39 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode; 72 void InsertInsn(std::vector<uint8_t>* code, size_t pos, uint32_t insn) { in InsertInsn() 75 const uint8_t insn_code[] = { in InsertInsn() 76 static_cast<uint8_t>(insn), in InsertInsn() 77 static_cast<uint8_t>(insn >> 8), in InsertInsn() [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 | 79 static uint32_t GetInstructionSize(const uint8_t* pc) { in GetInstructionSize() 93 pc = reinterpret_cast<uint8_t*>(buf); in GetInstructionSize() 110 const uint8_t* startpc = pc; in GetInstructionSize() 112 uint8_t opcode = *pc; in GetInstructionSize() 114 uint8_t modrm; in GetInstructionSize() 253 uint8_t mod = (modrm >> 6) & 3U /* 0b11 */; in GetInstructionSize() 294 reinterpret_cast<uint8_t*>(*out_sp) - GetStackOverflowReservedBytes(InstructionSet::kX86_64)); in GetMethodAndReturnPcAndSp() 296 reinterpret_cast<uint8_t*>(*out_sp) - GetStackOverflowReservedBytes(InstructionSet::kX86)); in GetMethodAndReturnPcAndSp() 305 uint8_t* pc = reinterpret_cast<uint8_t*>(uc->CTX_EIP); in GetMethodAndReturnPcAndSp() 328 uint8_t* pc = reinterpret_cast<uint8_t*>(uc->CTX_EIP); in Action() [all …]
|
/art/compiler/ |
D | compiled_method.h | 44 const ArrayRef<const uint8_t>& quick_code); 52 ArrayRef<const uint8_t> GetQuickCode() const; 102 const LengthPrefixedArray<uint8_t>* const quick_code_; 114 const ArrayRef<const uint8_t>& quick_code, 118 const ArrayRef<const uint8_t>& method_info, 119 const ArrayRef<const uint8_t>& vmap_table, 120 const ArrayRef<const uint8_t>& cfi_info, 128 const ArrayRef<const uint8_t>& quick_code, 132 const ArrayRef<const uint8_t>& method_info, 133 const ArrayRef<const uint8_t>& vmap_table, [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_;
|