/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, size_t size) 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-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.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.cc | 26 const ArrayRef<const uint8_t>& quick_code) in CompiledCode() 99 const ArrayRef<const uint8_t>& quick_code, in CompiledMethod() 100 const ArrayRef<const uint8_t>& vmap_table, in CompiledMethod() 101 const ArrayRef<const uint8_t>& cfi_info, in CompiledMethod() 102 const ArrayRef<const linker::LinkerPatch>& patches) in CompiledMethod() 112 const ArrayRef<const uint8_t>& quick_code, in SwapAllocCompiledMethod() 113 const ArrayRef<const uint8_t>& vmap_table, in SwapAllocCompiledMethod() 114 const ArrayRef<const uint8_t>& cfi_info, in SwapAllocCompiledMethod() 115 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() 206 thunk_provider_.SetThunkCode(patch, ArrayRef<const uint8_t>(thunk_code), debug_name); in AddCompiledMethod() [all …]
|
/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/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/runtime/gc/space/ |
D | image_space.h | 27 template <typename T> class ArrayRef; variable 149 ArrayRef<ImageSpace* const> boot_image_spaces, 228 static std::string GetBootClassPathChecksums(ArrayRef<ImageSpace* const> image_spaces, 229 ArrayRef<const DexFile* const> boot_class_path); 237 ArrayRef<const std::string> boot_class_path_locations, 238 ArrayRef<const std::string> boot_class_path, 248 ArrayRef<const std::unique_ptr<ImageSpace>> image_spaces, 249 ArrayRef<const std::string> boot_class_path_locations, 250 ArrayRef<const std::string> boot_class_path, 255 ArrayRef<const std::string> dex_locations,
|
/art/openjdkjvmti/ |
D | ti_class_definition.h | 86 art::ArrayRef<const unsigned char> new_data(new_dex_data, new_dex_len); in SetNewDexData() 90 dex_data_ = art::ArrayRef<const unsigned char>(dex_data_memory_); in SetNewDexData() 102 art::ArrayRef<const unsigned char> GetNewOriginalDexFile() const { in GetNewOriginalDexFile() 107 return art::ArrayRef<const unsigned char>(); in GetNewOriginalDexFile() 150 art::ArrayRef<const unsigned char> GetDexData() const { in GetDexData() 182 art::ArrayRef<const unsigned char> dex_data_; 190 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() 330 ArrayRef<const uint8_t> GetQuickenedInfoOf(const DexFile& dex_file, 373 const ArrayRef<const uint8_t>& quickening_info) const; [all …]
|
D | vdex_file.cc | 289 const ArrayRef<const uint8_t>& quickening_info) const { in GetQuickenInfoOffsetTable() 297 const ArrayRef<const uint8_t>& quickening_info) const { in GetQuickenInfoOffsetTable() 301 static ArrayRef<const uint8_t> GetQuickeningInfoAt(const ArrayRef<const uint8_t>& quickening_info, in GetQuickeningInfoAt() 304 ArrayRef<const uint8_t> remaining = quickening_info.SubArray(quickening_offset - 1); in GetQuickeningInfoAt() 318 ArrayRef<const uint8_t> quickening_info = GetQuickeningInfo(); in UnquickenDexFile() 335 ArrayRef<const uint8_t> quicken_data = GetQuickeningInfoAt(quickening_info, offset); in UnquickenDexFile() 347 ArrayRef<const uint8_t> VdexFile::GetQuickenedInfoOf(const DexFile& dex_file, in GetQuickenedInfoOf() 349 ArrayRef<const uint8_t> quickening_info = GetQuickeningInfo(); in GetQuickenedInfoOf() 351 return ArrayRef<const uint8_t>(); in GetQuickenedInfoOf() 357 return ArrayRef<const uint8_t>(); in GetQuickenedInfoOf() [all …]
|
/art/compiler/debug/ |
D | elf_debug_writer.h | 60 ArrayRef<const JITCodeEntry*> jit_entries, 61 ArrayRef<const void*> removed_symbols, 68 const ArrayRef<mirror::Class*>& types)
|
/art/dex2oat/linker/ |
D | relative_patcher_test.h | 103 const ArrayRef<const uint8_t>& code, 104 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) { 110 /* vmap_table */ ArrayRef<const uint8_t>(), 111 /* cfi_info */ ArrayRef<const uint8_t>(), 167 ArrayRef<const uint8_t> code = compiled_method->GetQuickCode(); in Link() 170 code = ArrayRef<const uint8_t>(patched_code_); in Link() 216 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { in CheckLinkedMethod() 233 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size()); in CheckLinkedMethod() 242 void DumpDiff(const ArrayRef<const uint8_t>& expected_code, in DumpDiff() 243 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 | optimizing_cfi_test.cc | 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() 134 ArrayRef<const uint8_t> GetMemory() const override { return ArrayRef<const uint8_t>(memory_); } in GetMemory()
|
D | linear_order.h | 26 void LinearizeGraphInternal(const HGraph* graph, ArrayRef<HBasicBlock*> linear_order); 46 LinearizeGraphInternal(graph, ArrayRef<HBasicBlock*>(*linear_order)); in LinearizeGraph()
|
/art/runtime/jit/ |
D | debugger_interface.h | 42 ArrayRef<const uint8_t> GetJITCodeEntrySymFile(const JITCodeEntry*); 60 void RemoveNativeDebugInfoForJit(ArrayRef<const void*> removed_code_ptrs)
|