Home
last modified time | relevance | path

Searched refs:ArrayRef (Results 1 – 25 of 142) sorted by relevance

123456

/art/libartbase/base/
Darray_ref.h41 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 …]
Dtransform_array_ref.h33 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/
Dcompiled_method-inl.h28 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::GetMethodInfo() const { in GetMethodInfo()
45 inline ArrayRef<const uint8_t> CompiledMethod::GetVmapTable() const { in GetVmapTable()
49 inline ArrayRef<const uint8_t> CompiledMethod::GetCFIInfo() const { in GetCFIInfo()
53 inline ArrayRef<const linker::LinkerPatch> CompiledMethod::GetPatches() const { in GetPatches()
Dcompiled_method.h30 template <typename T> class ArrayRef; variable
44 const ArrayRef<const uint8_t>& quick_code);
52 ArrayRef<const uint8_t> GetQuickCode() const;
79 static ArrayRef<const T> GetArray(const LengthPrefixedArray<T>* array);
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,
121 const ArrayRef<const linker::LinkerPatch>& patches);
128 const ArrayRef<const uint8_t>& quick_code,
[all …]
Dcompiled_method.cc27 const ArrayRef<const uint8_t>& quick_code) in CompiledCode()
104 const ArrayRef<const uint8_t>& quick_code, in CompiledMethod()
108 const ArrayRef<const uint8_t>& method_info, in CompiledMethod()
109 const ArrayRef<const uint8_t>& vmap_table, in CompiledMethod()
110 const ArrayRef<const uint8_t>& cfi_info, in CompiledMethod()
111 const ArrayRef<const linker::LinkerPatch>& patches) in CompiledMethod()
125 const ArrayRef<const uint8_t>& quick_code, in SwapAllocCompiledMethod()
129 const ArrayRef<const uint8_t>& method_info, in SwapAllocCompiledMethod()
130 const ArrayRef<const uint8_t>& vmap_table, in SwapAllocCompiledMethod()
131 const ArrayRef<const uint8_t>& cfi_info, in SwapAllocCompiledMethod()
[all …]
/art/compiler/linker/x86_64/
Drelative_patcher_x86_64_test.cc30 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/
Dcompiled_method_storage_test.cc48 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()
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()
60 ArrayRef<const uint8_t> vmap_table[] = { in TEST()
61 ArrayRef<const uint8_t>(raw_vmap_table1), in TEST()
62 ArrayRef<const uint8_t>(raw_vmap_table2), in TEST()
66 ArrayRef<const uint8_t> cfi_info[] = { in TEST()
[all …]
Dcompiled_method_storage.h53 const LengthPrefixedArray<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code);
57 const ArrayRef<const uint8_t>& method_info);
60 const LengthPrefixedArray<uint8_t>* DeduplicateVMapTable(const ArrayRef<const uint8_t>& table);
63 const LengthPrefixedArray<uint8_t>* DeduplicateCFIInfo(const ArrayRef<const uint8_t>& cfi_info);
67 const ArrayRef<const linker::LinkerPatch>& linker_patches);
72 const LengthPrefixedArray<T>* AllocateOrDeduplicateArray(const ArrayRef<const T>& data,
86 using ArrayDedupeSet = DedupeSet<ArrayRef<const T>,
Dcompiled_method_storage.cc36 const LengthPrefixedArray<T>* CopyArray(SwapSpace* swap_space, const ArrayRef<const T>& array) { in CopyArray()
57 const ArrayRef<const T>& data, in AllocateOrDeduplicateArray()
82 size_t operator()(const ArrayRef<ContentType>& array) const { in operator ()()
152 const LengthPrefixedArray<T>* Copy(const ArrayRef<const T>& array) { in Copy()
195 const ArrayRef<const uint8_t>& code) { in DeduplicateCode()
204 const ArrayRef<const uint8_t>& src_map) { in DeduplicateMethodInfo()
213 const ArrayRef<const uint8_t>& table) { in DeduplicateVMapTable()
222 const ArrayRef<const uint8_t>& cfi_info) { in DeduplicateCFIInfo()
231 const ArrayRef<const linker::LinkerPatch>& linker_patches) { in DeduplicateLinkerPatches()
/art/compiler/linker/x86/
Drelative_patcher_x86_test.cc30 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/compiler/linker/arm/
Drelative_patcher_thumb2_test.cc35 static const ArrayRef<const uint8_t> kCallCode;
37 static const ArrayRef<const uint8_t> kNopCode;
39 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode;
139 bool Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap()
140 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap()
141 const ArrayRef<const uint8_t>& method3_code, in Create2MethodsWithGap()
142 const ArrayRef<const LinkerPatch>& method3_patches, in Create2MethodsWithGap()
159 ArrayRef<const uint8_t> method2_code(method2_raw_code); in Create2MethodsWithGap()
208 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
209 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { in CheckThunk()
[all …]
/art/compiler/linker/arm64/
Drelative_patcher_arm64_test.cc36 static const ArrayRef<const uint8_t> kCallCode;
38 static const ArrayRef<const uint8_t> kNopCode;
106 uint32_t Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap()
107 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap()
108 const ArrayRef<const uint8_t>& last_method_code, in Create2MethodsWithGap()
109 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap()
138 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code)); in Create2MethodsWithGap()
187 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
188 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { in CheckThunk()
192 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); in CheckThunk()
[all …]
/art/compiler/linker/mips64/
Drelative_patcher_mips64_test.cc35 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/compiler/linker/mips/
Drelative_patcher_mips32r6_test.cc33 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()
Drelative_patcher_mips_test.cc34 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/jni/quick/
Djni_compiler.h38 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/
Ddedupe_set_test.cc32 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/openjdkjvmti/
Dti_class_definition.h84 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/
Dvdex_file.cc248 const ArrayRef<const uint8_t>& quickening_info) const { in GetQuickenInfoOffsetTable()
256 const ArrayRef<const uint8_t>& quickening_info) const { in GetQuickenInfoOffsetTable()
260 static ArrayRef<const uint8_t> GetQuickeningInfoAt(const ArrayRef<const uint8_t>& quickening_info, in GetQuickeningInfoAt()
263 ArrayRef<const uint8_t> remaining = quickening_info.SubArray(quickening_offset - 1); in GetQuickeningInfoAt()
276 ArrayRef<const uint8_t> quickening_info = GetQuickeningInfo(); in UnquickenDexFile()
299 ArrayRef<const uint8_t> quicken_data = GetQuickeningInfoAt(quickening_info, offset); in UnquickenDexFile()
314 ArrayRef<const uint8_t> VdexFile::GetQuickenedInfoOf(const DexFile& dex_file, in GetQuickenedInfoOf()
316 ArrayRef<const uint8_t> quickening_info = GetQuickeningInfo(); in GetQuickenedInfoOf()
318 return ArrayRef<const uint8_t>(); in GetQuickenedInfoOf()
324 return ArrayRef<const uint8_t>(); in GetQuickenedInfoOf()
Dvdex_file.h246 ArrayRef<const uint8_t> GetVerifierDepsData() const { in GetVerifierDepsData()
247 return ArrayRef<const uint8_t>( in GetVerifierDepsData()
252 ArrayRef<const uint8_t> GetQuickeningInfo() const { in GetQuickeningInfo()
254 return ArrayRef<const uint8_t>( in GetQuickeningInfo()
258 return ArrayRef<const uint8_t>(); in GetQuickeningInfo()
296 ArrayRef<const uint8_t> GetQuickenedInfoOf(const DexFile& dex_file,
313 const ArrayRef<const uint8_t>& quickening_info) const;
317 const ArrayRef<const uint8_t>& quickening_info) const;
/art/compiler/linker/
Drelative_patcher_test.h79 const ArrayRef<const uint8_t>& code,
80 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) {
89 /* method_info */ ArrayRef<const uint8_t>(),
90 /* vmap_table */ ArrayRef<const uint8_t>(),
91 /* cfi_info */ ArrayRef<const uint8_t>(),
147 ArrayRef<const uint8_t> code = compiled_method->GetQuickCode(); in Link()
150 code = ArrayRef<const uint8_t>(patched_code_); in Link()
190 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { in CheckLinkedMethod()
207 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size()); in CheckLinkedMethod()
216 void DumpDiff(const ArrayRef<const uint8_t>& expected_code, in DumpDiff()
[all …]
/art/runtime/jit/
Ddebugger_interface.h31 void AddNativeDebugInfoForDex(Thread* current_thread, ArrayRef<const uint8_t> dexfile);
35 void RemoveNativeDebugInfoForDex(Thread* current_thread, ArrayRef<const uint8_t> dexfile);
/art/compiler/optimizing/
Dlinear_order.h26 void LinearizeGraphInternal(const HGraph* graph, ArrayRef<HBasicBlock*> linear_order);
46 LinearizeGraphInternal(graph, ArrayRef<HBasicBlock*>(*linear_order)); in LinearizeGraph()
Dregister_allocation_resolver.h44 void Resolve(ArrayRef<HInstruction* const> safepoints,
51 ArrayRef<LiveInterval* const> temp_intervals);
58 size_t CalculateMaximumSafepointSpillSize(ArrayRef<HInstruction* const> safepoints);
/art/compiler/debug/
Delf_debug_writer.h57 ArrayRef<const MethodDebugInfo> method_infos);
62 const ArrayRef<mirror::Class*>& types)

123456