/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 | 28 static const uint8_t kCallRawCode[]; 29 static const ArrayRef<const uint8_t> kCallCode; 30 static const uint8_t kDexCacheLoadRawCode[]; 31 static const ArrayRef<const uint8_t> kDexCacheLoadCode; 32 static const uint8_t kStringReferenceRawCode[]; 33 static const ArrayRef<const uint8_t> kStringReferenceCode; 42 const uint8_t X86_64RelativePatcherTest::kCallRawCode[] = { 46 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kCallCode(kCallRawCode); 48 const uint8_t X86_64RelativePatcherTest::kDexCacheLoadRawCode[] = { 53 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kDexCacheLoadCode( [all …]
|
/art/compiler/linker/x86/ |
D | relative_patcher_x86_test.cc | 28 static const uint8_t kCallRawCode[]; 29 static const ArrayRef<const uint8_t> kCallCode; 38 const uint8_t X86RelativePatcherTest::kCallRawCode[] = { 42 const ArrayRef<const uint8_t> X86RelativePatcherTest::kCallCode(kCallRawCode); 51 static const uint8_t expected_code[] = { in TEST_F() 54 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 71 static const uint8_t method1_expected_code[] = { in TEST_F() 73 static_cast<uint8_t>(diff_after), in TEST_F() 74 static_cast<uint8_t>(diff_after >> 8), in TEST_F() 75 static_cast<uint8_t>(diff_after >> 16), in TEST_F() [all …]
|
D | relative_patcher_x86.cc | 24 void X86RelativePatcher::PatchPcRelativeReference(std::vector<uint8_t>* code, in PatchPcRelativeReference() 45 DCHECK_EQ((*code)[literal_offset + 0u], static_cast<uint8_t>(kDummy32BitOffset >> 0)); in PatchPcRelativeReference() 46 DCHECK_EQ((*code)[literal_offset + 1u], static_cast<uint8_t>(kDummy32BitOffset >> 8)); in PatchPcRelativeReference() 47 DCHECK_EQ((*code)[literal_offset + 2u], static_cast<uint8_t>(kDummy32BitOffset >> 16)); in PatchPcRelativeReference() 48 DCHECK_EQ((*code)[literal_offset + 3u], static_cast<uint8_t>(kDummy32BitOffset >> 24)); in PatchPcRelativeReference() 53 (*code)[literal_offset + 0u] = static_cast<uint8_t>(diff >> 0); in PatchPcRelativeReference() 54 (*code)[literal_offset + 1u] = static_cast<uint8_t>(diff >> 8); in PatchPcRelativeReference() 55 (*code)[literal_offset + 2u] = static_cast<uint8_t>(diff >> 16); in PatchPcRelativeReference() 56 (*code)[literal_offset + 3u] = static_cast<uint8_t>(diff >> 24); in PatchPcRelativeReference()
|
/art/runtime/gc/accounting/ |
D | card_table.h | 52 static constexpr uint8_t kCardClean = 0x0; 53 static constexpr uint8_t kCardDirty = 0x70; 55 static CardTable* Create(const uint8_t* heap_begin, size_t heap_capacity); 69 uint8_t GetCard(const mirror::Object* obj) const { in GetCard() 76 uint8_t* card_start = CardFromAddr(start); in VisitClear() 77 uint8_t* card_end = CardFromAddr(end); in VisitClear() 78 for (uint8_t* it = card_start; it != card_end; ++it) { in VisitClear() 88 uint8_t* GetBiasedBegin() const { in GetBiasedBegin() 101 void ModifyCardsAtomic(uint8_t* scan_begin, uint8_t* scan_end, const Visitor& visitor, 107 size_t Scan(SpaceBitmap<kObjectAlignment>* bitmap, uint8_t* scan_begin, uint8_t* scan_end, [all …]
|
D | card_table-inl.h | 31 static inline bool byte_cas(uint8_t old_value, uint8_t new_value, uint8_t* address) { in byte_cas() 33 Atomic<uint8_t>* byte_atomic = reinterpret_cast<Atomic<uint8_t>*>(address); in byte_cas() 53 inline size_t CardTable::Scan(ContinuousSpaceBitmap* bitmap, uint8_t* scan_begin, uint8_t* scan_end, in Scan() 54 const Visitor& visitor, const uint8_t minimum_age) const { in Scan() 55 DCHECK_GE(scan_begin, reinterpret_cast<uint8_t*>(bitmap->HeapBegin())); in Scan() 57 DCHECK_LE(scan_end, reinterpret_cast<uint8_t*>(bitmap->HeapLimit())); in Scan() 58 uint8_t* card_cur = CardFromAddr(scan_begin); in Scan() 59 uint8_t* card_end = CardFromAddr(AlignUp(scan_end, kCardSize)); in Scan() 77 uint8_t* aligned_end = card_end - in Scan() 92 … uintptr_t start = reinterpret_cast<uintptr_t>(AddrFromCard(reinterpret_cast<uint8_t*>(word_cur))); 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 | 35 constexpr uint8_t CardTable::kCardClean; 36 constexpr uint8_t CardTable::kCardDirty; 60 CardTable* CardTable::Create(const uint8_t* heap_begin, size_t heap_capacity) { in Create() 74 uint8_t* cardtable_begin = mem_map->Begin(); in Create() 80 uint8_t* biased_begin = reinterpret_cast<uint8_t*>(reinterpret_cast<uintptr_t>(cardtable_begin) - in Create() 92 CardTable::CardTable(MemMap* mem_map, uint8_t* biased_begin, size_t offset) in CardTable() 102 uint8_t* card_start = CardFromAddr(space->Begin()); in ClearSpaceCards() 103 uint8_t* card_end = CardFromAddr(space->End()); // Make sure to round up. in ClearSpaceCards() 112 void CardTable::ClearCardRange(uint8_t* start, uint8_t* end) { in ClearCardRange() 120 uint8_t* start_card = CardFromAddr(start); in ClearCardRange() [all …]
|
D | read_barrier_table.h | 47 uint8_t* entry_start = EntryFromAddr(space->Begin()); in ClearForSpace() 48 uint8_t* entry_end = EntryFromAddr(space->Limit()); in ClearForSpace() 51 void Clear(uint8_t* start_addr, uint8_t* end_addr) { in Clear() 56 uint8_t* entry_start = EntryFromAddr(start_addr); in Clear() 57 uint8_t* entry_end = EntryFromAddr(end_addr); in Clear() 62 uint8_t entry_value = *EntryFromAddr(heap_addr); in IsSet() 87 static constexpr uint8_t kSetEntryValue = 0x01; 89 uint8_t* EntryFromAddr(const void* heap_addr) const { in EntryFromAddr() 91 uint8_t* entry_addr = mem_map_->Begin() + reinterpret_cast<uintptr_t>(heap_addr) / kRegionSize; in EntryFromAddr() 106 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 DumpInstruction(std::ostream& os, const uint8_t* instr); 38 std::string DumpAddress(uint8_t mod, uint8_t rm, uint8_t rex64, uint8_t rex_w, bool no_ops, 39 bool byte_operand, bool byte_second_operand, uint8_t* prefix, bool load, 40 RegFile src_reg_file, RegFile dst_reg_file, const uint8_t** instr,
|
D | disassembler.h | 35 const uint8_t* const base_address_; 38 const uint8_t* const end_address_; 45 const uint8_t* base_address, in DisassemblerOptions() 46 const uint8_t* end_address, in DisassemblerOptions() 69 virtual size_t Dump(std::ostream& os, const uint8_t* begin) = 0; 71 virtual void Dump(std::ostream& os, const uint8_t* begin, const uint8_t* end) = 0; 83 std::string FormatInstructionPointer(const uint8_t* begin);
|
D | disassembler_arm.h | 31 size_t Dump(std::ostream& os, const uint8_t* begin) OVERRIDE; 32 void Dump(std::ostream& os, const uint8_t* begin, const uint8_t* end) OVERRIDE; 35 void DumpArm(std::ostream& os, const uint8_t* instr); 38 size_t DumpThumb16(std::ostream& os, const uint8_t* instr); 39 size_t DumpThumb32(std::ostream& os, const uint8_t* instr_ptr); 41 void DumpBranchTarget(std::ostream& os, const uint8_t* instr_ptr, int32_t imm32);
|
/art/compiler/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 29 static const uint8_t kCallRawCode[]; 30 static const ArrayRef<const uint8_t> kCallCode; 31 static const uint8_t kNopRawCode[]; 32 static const ArrayRef<const uint8_t> kNopCode; 33 static const uint8_t kUnpatchedPcRelativeRawCode[]; 34 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode; 45 bool Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap() 47 const ArrayRef<const uint8_t>& method3_code, in Create2MethodsWithGap() 64 std::vector<uint8_t> method2_raw_code(method2_size); in Create2MethodsWithGap() 65 ArrayRef<const uint8_t> method2_code(method2_raw_code); in Create2MethodsWithGap() [all …]
|
/art/runtime/ |
D | leb128.h | 31 static inline uint32_t DecodeUnsignedLeb128(const uint8_t** data) { in DecodeUnsignedLeb128() 32 const uint8_t* ptr = *data; in DecodeUnsignedLeb128() 60 static inline int32_t DecodeUnsignedLeb128P1(const uint8_t** data) { in DecodeUnsignedLeb128P1() 67 static inline int32_t DecodeSignedLeb128(const uint8_t** data) { in DecodeSignedLeb128() 68 const uint8_t* ptr = *data; in DecodeSignedLeb128() 118 static inline uint8_t* EncodeUnsignedLeb128(uint8_t* dest, uint32_t value) { in EncodeUnsignedLeb128() 119 uint8_t out = value & 0x7f; in EncodeUnsignedLeb128() 132 static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type"); in EncodeUnsignedLeb128() 133 uint8_t out = value & 0x7f; in EncodeUnsignedLeb128() 145 static inline void UpdateUnsignedLeb128(uint8_t* dest, uint32_t value) { in UpdateUnsignedLeb128() [all …]
|
D | oat_file.h | 67 uint8_t* requested_base, 68 uint8_t* oat_file_begin, 129 const uint8_t* GetVmapTable() const; 134 OatMethod(const uint8_t* base, const uint32_t code_offset) in OatMethod() 157 const uint8_t* begin_; 237 const uint8_t* Begin() const; 238 const uint8_t* End() const; 240 const uint8_t* BssBegin() const; 241 const uint8_t* BssEnd() const; 277 const uint8_t* begin_; [all …]
|
D | elf_file_impl.h | 56 uint8_t* requested_base = nullptr); 68 uint8_t* Begin() const { in Begin() 72 uint8_t* End() const { in End() 93 const uint8_t* FindDynamicSymbolAddress(const std::string& symbol_name) const; 132 static void ApplyOatPatches(const uint8_t* patches, const uint8_t* patches_end, Elf_Addr delta, 133 uint8_t* to_patch, const uint8_t* to_patch_end); 138 ElfFileImpl(File* file, bool writable, bool program_header_only, uint8_t* requested_base); 144 uint8_t* GetProgramHeadersStart() const; 145 uint8_t* GetSectionHeadersStart() const; 161 bool ValidPointer(const uint8_t* start) const; [all …]
|
D | dex_instruction.h | 24 typedef uint8_t uint4_t; 76 const uint8_t data[]; 257 uint8_t VRegA_10x() const { in VRegA_10x() 263 uint8_t VRegA_11x() const { in VRegA_11x() 270 uint8_t VRegA_21c() const { in VRegA_21c() 273 uint8_t VRegA_21h() const { in VRegA_21h() 276 uint8_t VRegA_21s() const { in VRegA_21s() 279 uint8_t VRegA_21t() const { in VRegA_21t() 282 uint8_t VRegA_22b() const { in VRegA_22b() 294 uint8_t VRegA_22x() const { in VRegA_22x() [all …]
|
D | leb128_test.cc | 27 uint8_t leb128_data[5]; 46 uint8_t leb128_data[5]; 100 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST() 101 const uint8_t* encoded_data_ptr = &builder.GetData()[0]; in TEST() 116 uint8_t encoded_data[5]; in TEST() 117 uint8_t* end = EncodeUnsignedLeb128(encoded_data, uleb128_tests[i].decoded); in TEST() 120 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST() 138 const uint8_t* encoded_data_ptr = &builder.GetData()[0]; in TEST() 140 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST() 155 uint8_t encoded_data[5 * arraysize(uleb128_tests)]; in TEST() [all …]
|
/art/compiler/driver/ |
D | compiled_method_storage.h | 52 const LengthPrefixedArray<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code); 53 void ReleaseCode(const LengthPrefixedArray<uint8_t>* code); 59 const LengthPrefixedArray<uint8_t>* DeduplicateVMapTable(const ArrayRef<const uint8_t>& table); 60 void ReleaseVMapTable(const LengthPrefixedArray<uint8_t>* table); 62 const LengthPrefixedArray<uint8_t>* DeduplicateCFIInfo(const ArrayRef<const uint8_t>& cfi_info); 63 void ReleaseCFIInfo(const LengthPrefixedArray<uint8_t>* cfi_info); 98 ArrayDedupeSet<uint8_t> dedupe_code_; 100 ArrayDedupeSet<uint8_t> dedupe_vmap_table_; 101 ArrayDedupeSet<uint8_t> dedupe_cfi_info_;
|
D | compiled_method_storage_test.cc | 53 const uint8_t raw_code1[] = { 1u, 2u, 3u }; in TEST() 54 const uint8_t raw_code2[] = { 4u, 3u, 2u, 1u }; in TEST() 55 ArrayRef<const uint8_t> code[] = { in TEST() 56 ArrayRef<const uint8_t>(raw_code1), in TEST() 57 ArrayRef<const uint8_t>(raw_code2), in TEST() 65 const uint8_t raw_vmap_table1[] = { 2, 4, 6 }; in TEST() 66 const uint8_t raw_vmap_table2[] = { 7, 5, 3, 1 }; in TEST() 67 ArrayRef<const uint8_t> vmap_table[] = { in TEST() 68 ArrayRef<const uint8_t>(raw_vmap_table1), in TEST() 69 ArrayRef<const uint8_t>(raw_vmap_table2), in TEST() [all …]
|
D | compiled_method_storage.cc | 36 SwapAllocator<uint8_t> allocator(swap_space); in CopyArray() 45 SwapAllocator<uint8_t> allocator(swap_space); in ReleaseArray() 48 allocator.deallocate(const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(array)), size); in ReleaseArray() 81 const uint8_t* data = reinterpret_cast<const uint8_t*>(array.data()); in operator ()() 110 const uint8_t *tail = reinterpret_cast<const uint8_t*>(data + nblocks * 4); in operator ()() 174 dedupe_code_("dedupe code", LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage() 178 LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage() 179 dedupe_cfi_info_("dedupe cfi info", LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage() 201 const LengthPrefixedArray<uint8_t>* CompiledMethodStorage::DeduplicateCode( in DeduplicateCode() 202 const ArrayRef<const uint8_t>& code) { in DeduplicateCode() [all …]
|
/art/runtime/arch/x86/ |
D | fault_handler_x86.cc | 93 static uint32_t GetInstructionSize(const uint8_t* pc) { in GetInstructionSize() 100 const uint8_t* startpc = pc; in GetInstructionSize() 102 uint8_t opcode = *pc++; in GetInstructionSize() 103 uint8_t modrm; in GetInstructionSize() 213 uint8_t mod = (modrm >> 6) & 3U /* 0b11 */; in GetInstructionSize() 266 reinterpret_cast<uint8_t*>(*out_sp) - GetStackOverflowReservedBytes(kX86_64)); in GetMethodAndReturnPcAndSp() 268 reinterpret_cast<uint8_t*>(*out_sp) - GetStackOverflowReservedBytes(kX86)); in GetMethodAndReturnPcAndSp() 277 uint8_t* pc = reinterpret_cast<uint8_t*>(uc->CTX_EIP); in GetMethodAndReturnPcAndSp() 297 uint8_t* pc = reinterpret_cast<uint8_t*>(uc->CTX_EIP); in Action() 298 uint8_t* sp = reinterpret_cast<uint8_t*>(uc->CTX_ESP); in Action() [all …]
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 33 DummyOatFile(uint8_t* begin, uint8_t* end) : OatFile("Location", /*is_executable*/ false) { in DummyOatFile() 71 reinterpret_cast<uint8_t*>(kPageSize), in ReserveBitmaps() 79 DummyImageSpace* CreateImageSpace(uint8_t* image_begin, in CreateImageSpace() 81 uint8_t* oat_begin, in CreateImageSpace() 140 static uint8_t* GetContinuousMemoryRegion(size_t size) { in GetContinuousMemoryRegion() 164 DummySpace(uint8_t* begin, uint8_t* end) in DummySpace() 190 uint8_t* const base = reinterpret_cast<uint8_t*>(0x1000); in TEST_F() 200 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()), a.Begin()); in TEST_F() 201 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().End()), b.Limit()); in TEST_F() 212 uint8_t* memory = GetContinuousMemoryRegion(kImageSize + kImageOatSize + kOtherSpaceSize); in TEST_F() [all …]
|