/art/libartbase/base/ |
D | array_ref.h | 41 class ArrayRef { 57 constexpr ArrayRef() in ArrayRef() function 62 explicit constexpr ArrayRef(T (&array)[size]) in ArrayRef() function 69 explicit constexpr ArrayRef(U (&array)[size]) in ArrayRef() function 73 constexpr ArrayRef(T* array_in, size_t size_in) in ArrayRef() function 80 explicit ArrayRef(Vector& v) in ArrayRef() function 89 explicit ArrayRef(const Vector& v) in ArrayRef() function 93 ArrayRef(const ArrayRef&) = default; 97 ArrayRef& operator=(const ArrayRef& other) { 104 typename std::enable_if<std::is_same<T, const U>::value, ArrayRef>::type& [all …]
|
D | transform_array_ref.h | 33 using Iter = TransformIterator<typename ArrayRef<BaseType>::iterator, Function>; 38 TransformIterator<typename ArrayRef<BaseType>::const_iterator, Function>; 62 using difference_type = typename ArrayRef<BaseType>::difference_type; 63 using size_type = typename ArrayRef<BaseType>::size_type; 70 TransformArrayRef(const ArrayRef<OtherBT>& base, Function fn) in TransformArrayRef() 131 ArrayRef<BaseType> base() { in base() 134 ArrayRef<const BaseType> base() const { in base() 135 return ArrayRef<const BaseType>(data_.base_); in base() 142 Data(ArrayRef<BaseType> base, Function fn) : Function(fn), base_(base) { } in Data() 144 ArrayRef<BaseType> base_; [all …]
|
/art/compiler/ |
D | compiled_method.h | 30 template <typename T> class ArrayRef; variable 43 const ArrayRef<const uint8_t>& quick_code); 51 ArrayRef<const uint8_t> GetQuickCode() const; 78 static ArrayRef<const T> GetArray(const LengthPrefixedArray<T>* array); 113 const ArrayRef<const uint8_t>& quick_code, 114 const ArrayRef<const uint8_t>& vmap_table, 115 const ArrayRef<const uint8_t>& cfi_info, 116 const ArrayRef<const linker::LinkerPatch>& patches); 123 const ArrayRef<const uint8_t>& quick_code, 124 const ArrayRef<const uint8_t>& vmap_table, [all …]
|
D | compiled_method-inl.h | 28 inline ArrayRef<const uint8_t> CompiledCode::GetQuickCode() const { in GetQuickCode() 33 inline ArrayRef<const T> CompiledCode::GetArray(const LengthPrefixedArray<T>* array) { in GetArray() 35 return ArrayRef<const T>(); in GetArray() 38 return ArrayRef<const T>(&array->At(0), array->size()); in GetArray() 41 inline ArrayRef<const uint8_t> CompiledMethod::GetVmapTable() const { in GetVmapTable() 45 inline ArrayRef<const uint8_t> CompiledMethod::GetCFIInfo() const { in GetCFIInfo() 49 inline ArrayRef<const linker::LinkerPatch> CompiledMethod::GetPatches() const { in GetPatches()
|
D | compiled_method.cc | 26 const ArrayRef<const uint8_t>& quick_code) in CompiledCode() 103 const ArrayRef<const uint8_t>& quick_code, in CompiledMethod() 104 const ArrayRef<const uint8_t>& vmap_table, in CompiledMethod() 105 const ArrayRef<const uint8_t>& cfi_info, in CompiledMethod() 106 const ArrayRef<const linker::LinkerPatch>& patches) in CompiledMethod() 116 const ArrayRef<const uint8_t>& quick_code, in SwapAllocCompiledMethod() 117 const ArrayRef<const uint8_t>& vmap_table, in SwapAllocCompiledMethod() 118 const ArrayRef<const uint8_t>& cfi_info, in SwapAllocCompiledMethod() 119 const ArrayRef<const linker::LinkerPatch>& patches) { in SwapAllocCompiledMethod()
|
/art/dex2oat/linker/x86_64/ |
D | relative_patcher_x86_64_test.cc | 30 static const ArrayRef<const uint8_t> kCallCode; 32 static const ArrayRef<const uint8_t> kDexCacheLoadCode; 34 static const ArrayRef<const uint8_t> kStringReferenceCode; 47 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kCallCode(kCallRawCode); 54 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kDexCacheLoadCode( 62 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kStringReferenceCode( 69 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 75 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 82 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F() 86 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F() [all …]
|
/art/compiler/driver/ |
D | compiled_method_storage_test.cc | 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() 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() 44 ArrayRef<const uint8_t> cfi_info[] = { in TEST() 45 ArrayRef<const uint8_t>(raw_cfi_info1), in TEST() 46 ArrayRef<const uint8_t>(raw_cfi_info2), in TEST() 56 ArrayRef<const linker::LinkerPatch> patches[] = { in TEST() [all …]
|
D | compiled_method_storage.h | 54 const LengthPrefixedArray<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code); 57 const LengthPrefixedArray<uint8_t>* DeduplicateVMapTable(const ArrayRef<const uint8_t>& table); 60 const LengthPrefixedArray<uint8_t>* DeduplicateCFIInfo(const ArrayRef<const uint8_t>& cfi_info); 64 const ArrayRef<const linker::LinkerPatch>& linker_patches); 70 ArrayRef<const uint8_t> GetThunkCode(const linker::LinkerPatch& linker_patch, 75 ArrayRef<const uint8_t> code, 91 const LengthPrefixedArray<T>* AllocateOrDeduplicateArray(const ArrayRef<const T>& data, 105 using ArrayDedupeSet = DedupeSet<ArrayRef<const T>,
|
D | compiled_method_storage.cc | 37 const LengthPrefixedArray<T>* CopyArray(SwapSpace* swap_space, const ArrayRef<const T>& array) { in CopyArray() 58 const ArrayRef<const T>& data, in AllocateOrDeduplicateArray() 83 size_t operator()(const ArrayRef<ContentType>& array) const { in operator ()() 95 const LengthPrefixedArray<T>* Copy(const ArrayRef<const T>& array) { in Copy() 134 ArrayRef<const uint8_t> GetCode() const { in GetCode() 135 return ArrayRef<const uint8_t>(code_); in GetCode() 178 const ArrayRef<const uint8_t>& code) { in DeduplicateCode() 187 const ArrayRef<const uint8_t>& table) { in DeduplicateVMapTable() 196 const ArrayRef<const uint8_t>& cfi_info) { in DeduplicateCFIInfo() 205 const ArrayRef<const linker::LinkerPatch>& linker_patches) { in DeduplicateLinkerPatches() [all …]
|
/art/dex2oat/linker/x86/ |
D | relative_patcher_x86_test.cc | 30 static const ArrayRef<const uint8_t> kCallCode; 43 const ArrayRef<const uint8_t> X86RelativePatcherTest::kCallCode(kCallRawCode); 49 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 55 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 62 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F() 66 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F() 79 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F() 88 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F() 95 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 108 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() [all …]
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 39 static const ArrayRef<const uint8_t> kCallCode; 41 static const ArrayRef<const uint8_t> kNopCode; 43 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode; 143 uint32_t Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap() 144 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap() 145 const ArrayRef<const uint8_t>& last_method_code, in Create2MethodsWithGap() 146 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap() 175 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code)); in Create2MethodsWithGap() 222 const ArrayRef<const uint8_t>& code, in AddCompiledMethod() 223 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) { in AddCompiledMethod() [all …]
|
/art/dex2oat/linker/arm64/ |
D | relative_patcher_arm64_test.cc | 40 static const ArrayRef<const uint8_t> kCallCode; 42 static const ArrayRef<const uint8_t> kNopCode; 110 uint32_t Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap() 111 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap() 112 const ArrayRef<const uint8_t>& last_method_code, in Create2MethodsWithGap() 113 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap() 142 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code)); in Create2MethodsWithGap() 195 const ArrayRef<const uint8_t>& code, in AddCompiledMethod() 196 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) { in AddCompiledMethod() 205 thunk_provider_.SetThunkCode(patch, ArrayRef<const uint8_t>(thunk_code), debug_name); in AddCompiledMethod() [all …]
|
/art/dex2oat/linker/mips64/ |
D | relative_patcher_mips64_test.cc | 35 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode; 43 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset); 57 const ArrayRef<const uint8_t> Mips64RelativePatcherTest::kUnpatchedPcRelativeCode( 60 void Mips64RelativePatcherTest::CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, in CheckPcRelativePatch() 62 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); in CheckPcRelativePatch() 76 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch() 89 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), bss_begin_ + string_entry_offset); in TestStringBssEntry()
|
/art/dex2oat/linker/mips/ |
D | relative_patcher_mips32r6_test.cc | 33 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode; 41 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset); 55 const ArrayRef<const uint8_t> Mips32r6RelativePatcherTest::kUnpatchedPcRelativeCode( 58 void Mips32r6RelativePatcherTest::CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, in CheckPcRelativePatch() 60 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); in CheckPcRelativePatch() 74 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch() 87 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), bss_begin_ + string_entry_offset); in TestStringBssEntry() 98 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), string_offset); in TestStringReference()
|
D | relative_patcher_mips_test.cc | 34 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode; 42 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset); 58 const ArrayRef<const uint8_t> MipsRelativePatcherTest::kUnpatchedPcRelativeCode( 61 void MipsRelativePatcherTest::CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, in CheckPcRelativePatch() 63 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); in CheckPcRelativePatch() 79 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch() 92 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), bss_begin_ + string_entry_offset); in TestStringBssEntry() 103 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), string_offset); in TestStringReference()
|
/art/compiler/utils/ |
D | dedupe_set_test.cc | 32 size_t operator()(const ArrayRef<const uint8_t>& array) const { in operator ()() 45 const std::vector<uint8_t>* Copy(const ArrayRef<const uint8_t>& src) { in Copy() 57 DedupeSet<ArrayRef<const uint8_t>, in TEST() 65 ArrayRef<const uint8_t> test1(raw_test1); in TEST() 74 ArrayRef<const uint8_t> test2(raw_test2); in TEST() 83 ArrayRef<const uint8_t> test3(raw_test3); in TEST()
|
/art/compiler/jni/quick/ |
D | jni_compiler.h | 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()
|
/art/openjdkjvmti/ |
D | ti_class_definition.h | 84 art::ArrayRef<const unsigned char> new_data(new_dex_data, new_dex_len); in SetNewDexData() 88 dex_data_ = art::ArrayRef<const unsigned char>(dex_data_memory_); in SetNewDexData() 93 art::ArrayRef<const unsigned char> GetNewOriginalDexFile() const { in GetNewOriginalDexFile() 98 return art::ArrayRef<const unsigned char>(); in GetNewOriginalDexFile() 141 art::ArrayRef<const unsigned char> GetDexData() const { in GetDexData() 173 art::ArrayRef<const unsigned char> dex_data_; 181 art::ArrayRef<const unsigned char> current_dex_file_;
|
/art/runtime/ |
D | vdex_file.h | 269 ArrayRef<const uint8_t> GetVerifierDepsData() const { in GetVerifierDepsData() 270 return ArrayRef<const uint8_t>( in GetVerifierDepsData() 275 ArrayRef<const uint8_t> GetQuickeningInfo() const { in GetQuickeningInfo() 276 return ArrayRef<const uint8_t>( in GetQuickeningInfo() 282 ArrayRef<const uint8_t> GetBootClassPathChecksumData() const { in GetBootClassPathChecksumData() 283 return ArrayRef<const uint8_t>( in GetBootClassPathChecksumData() 288 ArrayRef<const uint8_t> GetClassLoaderContextData() const { in GetClassLoaderContextData() 289 return ArrayRef<const uint8_t>( in GetClassLoaderContextData() 328 ArrayRef<const uint8_t> GetQuickenedInfoOf(const DexFile& dex_file, 367 const ArrayRef<const uint8_t>& quickening_info) const; [all …]
|
D | vdex_file.cc | 258 const ArrayRef<const uint8_t>& quickening_info) const { in GetQuickenInfoOffsetTable() 266 const ArrayRef<const uint8_t>& quickening_info) const { in GetQuickenInfoOffsetTable() 270 static ArrayRef<const uint8_t> GetQuickeningInfoAt(const ArrayRef<const uint8_t>& quickening_info, in GetQuickeningInfoAt() 273 ArrayRef<const uint8_t> remaining = quickening_info.SubArray(quickening_offset - 1); in GetQuickeningInfoAt() 286 ArrayRef<const uint8_t> quickening_info = GetQuickeningInfo(); in UnquickenDexFile() 303 ArrayRef<const uint8_t> quicken_data = GetQuickeningInfoAt(quickening_info, offset); in UnquickenDexFile() 315 ArrayRef<const uint8_t> VdexFile::GetQuickenedInfoOf(const DexFile& dex_file, in GetQuickenedInfoOf() 317 ArrayRef<const uint8_t> quickening_info = GetQuickeningInfo(); in GetQuickenedInfoOf() 319 return ArrayRef<const uint8_t>(); in GetQuickenedInfoOf() 325 return ArrayRef<const uint8_t>(); in GetQuickenedInfoOf() [all …]
|
/art/dex2oat/linker/ |
D | relative_patcher_test.h | 104 const ArrayRef<const uint8_t>& code, 105 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) { 111 /* vmap_table */ ArrayRef<const uint8_t>(), 112 /* cfi_info */ ArrayRef<const uint8_t>(), 168 ArrayRef<const uint8_t> code = compiled_method->GetQuickCode(); in Link() 171 code = ArrayRef<const uint8_t>(patched_code_); in Link() 211 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { in CheckLinkedMethod() 228 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size()); in CheckLinkedMethod() 237 void DumpDiff(const ArrayRef<const uint8_t>& expected_code, in DumpDiff() 238 const ArrayRef<const uint8_t>& linked_code) { in DumpDiff() [all …]
|
/art/libelffile/elf/ |
D | xz_utils.h | 26 void XzCompress(ArrayRef<const uint8_t> src, std::vector<uint8_t>* dst, int level = 1 /* speed */); 27 void XzDecompress(ArrayRef<const uint8_t> src, std::vector<uint8_t>* dst);
|
D | elf_debug_reader.h | 62 explicit ElfDebugReader(ArrayRef<const uint8_t> file) : file_(file) { in ElfDebugReader() 88 : ElfDebugReader(ArrayRef<const uint8_t>(file)) { in ElfDebugReader() 93 ArrayRef<Elf_Shdr> GetSections() { return sections_; } in GetSections() 158 ArrayRef<const T> Read(size_t offset, size_t count) { in Read() 160 return ArrayRef<const T>(Read<T>(offset), count); in Read() 163 ArrayRef<const uint8_t> const file_; 165 ArrayRef<const Elf_Shdr> sections_;
|
/art/compiler/optimizing/ |
D | linear_order.h | 26 void LinearizeGraphInternal(const HGraph* graph, ArrayRef<HBasicBlock*> linear_order); 46 LinearizeGraphInternal(graph, ArrayRef<HBasicBlock*>(*linear_order)); in LinearizeGraph()
|
D | register_allocation_resolver.h | 44 void Resolve(ArrayRef<HInstruction* const> safepoints, 51 ArrayRef<LiveInterval* const> temp_intervals); 58 size_t CalculateMaximumSafepointSpillSize(ArrayRef<HInstruction* const> safepoints);
|