Home
last modified time | relevance | path

Searched refs:uint8_t (Results 1 – 25 of 454) sorted by relevance

12345678910>>...19

/art/dex2oat/linker/x86_64/
Drelative_patcher_x86_64_test.cc29 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/
Drelative_patcher_x86_test.cc29 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 …]
Drelative_patcher_x86.cc25 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::PatchEntrypointCall(std::vector<uint8_t>* code ATTRIBUTE_UNUSED, in PatchEntrypointCall()
[all …]
/art/runtime/gc/accounting/
Dcard_table.h51 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 …]
Dcard_table_test.cc52 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 …]
Dcard_table-inl.h33 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 …]
Dcard_table.cc36 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 …]
Dread_barrier_table.h51 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/
Ddedupe_set_test.cc32 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/libartbase/base/
Dendian_utils.h27 inline void AppendBytes(std::vector<uint8_t>& bytes, T data) { in AppendBytes()
33 inline void Append1BE(std::vector<uint8_t>& bytes, uint8_t value) { in Append1BE()
37 inline void Append2BE(std::vector<uint8_t>& bytes, uint16_t value) { in Append2BE()
41 inline void Append4BE(std::vector<uint8_t>& bytes, uint32_t value) { in Append4BE()
45 inline void Append8BE(std::vector<uint8_t>& bytes, uint64_t value) { in Append8BE()
49 inline void AppendUtf16BE(std::vector<uint8_t>& bytes, const uint16_t* chars, size_t char_count) { in AppendUtf16BE()
56 inline void AppendUtf16CompressedBE(std::vector<uint8_t>& bytes, in AppendUtf16CompressedBE()
57 const uint8_t* chars, in AppendUtf16CompressedBE()
66 inline void SetBytes(uint8_t* buf, T val) { in SetBytes()
70 inline void Set1(uint8_t* buf, uint8_t val) { in Set1()
[all …]
Dleb128.h33 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/disassembler/
Ddisassembler_x86.h32 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/runtime/
Dvdex_file.h103 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 …]
Doat_file.h206 const uint8_t* GetVmapTable() const;
211 OatMethod(const uint8_t* base, const uint32_t code_offset) in OatMethod()
234 const uint8_t* begin_;
346 const uint8_t* Begin() const;
347 const uint8_t* End() const;
349 const uint8_t* DataBimgRelRoBegin() const { return data_bimg_rel_ro_begin_; } in DataBimgRelRoBegin()
350 const uint8_t* DataBimgRelRoEnd() const { return data_bimg_rel_ro_end_; } in DataBimgRelRoEnd()
352 const uint8_t* BssBegin() const { return bss_begin_; } in BssBegin()
353 const uint8_t* BssEnd() const { return bss_end_; } in BssEnd()
355 const uint8_t* VdexBegin() const { return vdex_begin_; } in VdexBegin()
[all …]
/art/compiler/driver/
Dcompiled_method_storage_test.cc30 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 …]
Dcompiled_method_storage.h54 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 …]
Dcompiled_method_storage.cc39 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/dex2oat/linker/arm/
Drelative_patcher_thumb2_test.cc38 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/runtime/arch/x86/
Dfault_handler_x86.cc80 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()
297 reinterpret_cast<uint8_t*>(*out_sp) - GetStackOverflowReservedBytes(InstructionSet::kX86_64)); in GetMethodAndReturnPcAndSp()
299 reinterpret_cast<uint8_t*>(*out_sp) - GetStackOverflowReservedBytes(InstructionSet::kX86)); in GetMethodAndReturnPcAndSp()
310 uint8_t* pc = reinterpret_cast<uint8_t*>(uc->CTX_EIP); in GetMethodAndReturnPcAndSp()
333 uint8_t* pc = reinterpret_cast<uint8_t*>(uc->CTX_EIP); in Action()
[all …]
/art/libdexfile/dex/
Dcompact_dex_file.cc25 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 …]
Dstandard_dex_file.cc26 const uint8_t StandardDexFile::kDexMagic[] = { 'd', 'e', 'x', '\n' };
27 const uint8_t StandardDexFile::kDexMagicVersions[StandardDexFile::kNumDexVersions]
41 void StandardDexFile::WriteMagic(uint8_t* magic) { in WriteMagic()
45 void StandardDexFile::WriteCurrentVersion(uint8_t* magic) { in WriteCurrentVersion()
52 void StandardDexFile::WriteVersionBeforeDefaultMethods(uint8_t* magic) { in WriteVersionBeforeDefaultMethods()
56 bool StandardDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid()
60 bool StandardDexFile::IsVersionValid(const uint8_t* magic) { in IsVersionValid()
61 const uint8_t* version = &magic[sizeof(kDexMagic)]; in IsVersionValid()
Ddex_instruction.h25 typedef uint8_t uint4_t;
77 const uint8_t data[];
92 enum Format : uint8_t {
129 enum IndexType : uint8_t {
144 enum Flags : uint8_t {
212 uint8_t flags; // Set of Flags.
303 uint8_t VRegA_10x() const { in VRegA_10x()
309 uint8_t VRegA_11x() const { in VRegA_11x()
316 uint8_t VRegA_21c() const { in VRegA_21c()
319 uint8_t VRegA_21h() const { in VRegA_21h()
[all …]
/art/compiler/optimizing/
Doptimizing_cfi_test.cc96 const std::vector<uint8_t>& expected_asm, in Check()
97 const std::vector<uint8_t>& expected_cfi) { in Check()
99 ArrayRef<const uint8_t> actual_asm = code_allocator_.GetMemory(); in Check()
101 ArrayRef<const uint8_t> actual_cfi(*(opt_asm->cfi().data())); in Check()
106 EXPECT_EQ(ArrayRef<const uint8_t>(expected_asm), actual_asm); in Check()
107 EXPECT_EQ(ArrayRef<const uint8_t>(expected_cfi), actual_cfi); in Check()
113 const std::vector<uint8_t>& expected_asm, in TestImpl()
114 const std::vector<uint8_t>& expected_cfi) { in TestImpl()
129 uint8_t* Allocate(size_t size) override { in Allocate()
134 ArrayRef<const uint8_t> GetMemory() const override { return ArrayRef<const uint8_t>(memory_); } in GetMemory()
[all …]
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64_test.cc39 static const uint8_t kCallRawCode[];
40 static const ArrayRef<const uint8_t> kCallCode;
41 static const uint8_t kNopRawCode[];
42 static const ArrayRef<const uint8_t> kNopCode;
85 void InsertInsn(std::vector<uint8_t>* code, size_t pos, uint32_t insn) { in InsertInsn()
87 const uint8_t insn_code[] = { in InsertInsn()
88 static_cast<uint8_t>(insn), in InsertInsn()
89 static_cast<uint8_t>(insn >> 8), in InsertInsn()
90 static_cast<uint8_t>(insn >> 16), in InsertInsn()
91 static_cast<uint8_t>(insn >> 24), in InsertInsn()
[all …]
/art/compiler/jni/quick/
Djni_compiler.h34 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_;

12345678910>>...19