/art/compiler/utils/ |
D | array_ref.h | 41 class ArrayRef { 60 constexpr ArrayRef() in ArrayRef() function 65 constexpr ArrayRef(T (&array)[size]) in ArrayRef() function 70 constexpr ArrayRef(U (&array)[size], 76 constexpr ArrayRef(T* array_in, size_t size_in) in ArrayRef() function 81 explicit ArrayRef(std::vector<T, Alloc>& v) in ArrayRef() function 86 ArrayRef(const std::vector<U, Alloc>& v, 92 ArrayRef(const ArrayRef&) = default; 96 ArrayRef& operator=(const ArrayRef& other) { 103 typename std::enable_if<std::is_same<T, const U>::value, ArrayRef>::type& [all …]
|
/art/compiler/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 29 static const ArrayRef<const uint8_t> kCallCode; 31 static const ArrayRef<const uint8_t> kNopCode; 41 bool Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap() 42 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap() 43 const ArrayRef<const uint8_t>& method3_code, in Create2MethodsWithGap() 44 const ArrayRef<const LinkerPatch>& method3_patches, in Create2MethodsWithGap() 61 ArrayRef<const uint8_t> method2_code(method2_raw_code); in Create2MethodsWithGap() 62 AddCompiledMethod(MethodRef(2u), method2_code, ArrayRef<const LinkerPatch>()); in Create2MethodsWithGap() 96 ArrayRef<const uint8_t> expected_code(patcher->thunk_code_); in CheckThunk() 102 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk() [all …]
|
D | relative_patcher_thumb2.cc | 101 uint32_t Thumb2RelativePatcher::GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset) { in GetInsn32() 114 return GetInsn32(ArrayRef<const uint8_t>(*code), offset); in GetInsn32()
|
D | relative_patcher_thumb2.h | 38 static uint32_t GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset);
|
D | relative_patcher_arm_base.cc | 58 if (UNLIKELY(!WriteRelCallThunk(out, ArrayRef<const uint8_t>(thunk_code_)))) { in WriteThunks()
|
/art/compiler/linker/x86_64/ |
D | relative_patcher_x86_64_test.cc | 29 static const ArrayRef<const uint8_t> kCallCode; 31 static const ArrayRef<const uint8_t> kDexCacheLoadCode; 44 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kCallCode(kCallRawCode); 51 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kDexCacheLoadCode( 58 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 64 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 71 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F() 75 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F() 86 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F() 93 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F() [all …]
|
/art/compiler/linker/x86/ |
D | relative_patcher_x86_test.cc | 29 static const ArrayRef<const uint8_t> kCallCode; 42 const ArrayRef<const uint8_t> X86RelativePatcherTest::kCallCode(kCallRawCode); 48 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 54 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 61 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F() 65 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F() 76 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F() 83 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F() 90 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 101 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() [all …]
|
/art/compiler/ |
D | compiled_method.cc | 23 const ArrayRef<const uint8_t>& quick_code, bool owns_code_array) in CompiledCode() 29 void CompiledCode::SetCode(const ArrayRef<const uint8_t>* quick_code) { in SetCode() 126 const ArrayRef<const uint8_t>& quick_code, in CompiledMethod() 131 const ArrayRef<const uint8_t>& mapping_table, in CompiledMethod() 132 const ArrayRef<const uint8_t>& vmap_table, in CompiledMethod() 133 const ArrayRef<const uint8_t>& native_gc_map, in CompiledMethod() 134 const ArrayRef<const uint8_t>& cfi_info, in CompiledMethod() 135 const ArrayRef<const LinkerPatch>& patches) in CompiledMethod() 160 driver->DeduplicateSrcMappingTable(ArrayRef<SrcMapElem>()) : in CompiledMethod() 161 driver->DeduplicateSrcMappingTable(ArrayRef<SrcMapElem>(*src_mapping_table)); in CompiledMethod() [all …]
|
D | compiled_method.h | 38 const ArrayRef<const uint8_t>& quick_code, bool owns_code_array); 50 void SetCode(const ArrayRef<const uint8_t>* quick_code); 314 const ArrayRef<const uint8_t>& quick_code, 319 const ArrayRef<const uint8_t>& mapping_table, 320 const ArrayRef<const uint8_t>& vmap_table, 321 const ArrayRef<const uint8_t>& native_gc_map, 322 const ArrayRef<const uint8_t>& cfi_info, 323 const ArrayRef<const LinkerPatch>& patches); 330 const ArrayRef<const uint8_t>& quick_code, 335 const ArrayRef<const uint8_t>& mapping_table, [all …]
|
/art/compiler/linker/arm64/ |
D | relative_patcher_arm64_test.cc | 30 static const ArrayRef<const uint8_t> kCallCode; 32 static const ArrayRef<const uint8_t> kNopCode; 54 uint32_t Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap() 55 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap() 56 const ArrayRef<const uint8_t>& last_method_code, in Create2MethodsWithGap() 57 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap() 81 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code), in Create2MethodsWithGap() 82 ArrayRef<const LinkerPatch>()); in Create2MethodsWithGap() 87 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code), in Create2MethodsWithGap() 88 ArrayRef<const LinkerPatch>()); in Create2MethodsWithGap() [all …]
|
D | relative_patcher_arm64.cc | 76 ArrayRef<const uint8_t> code(*compiled_method->GetQuickCode()); in ReserveSpace() 123 if (!WriteMiscThunk(out, ArrayRef<const uint8_t>(current_method_thunks_))) { in WriteThunks() 169 DCHECK(NeedsErratum843419Thunk(ArrayRef<const uint8_t>(*code), in PatchDexCacheReference() 257 bool Arm64RelativePatcher::NeedsErratum843419Thunk(ArrayRef<const uint8_t> code, in NeedsErratum843419Thunk() 308 uint32_t Arm64RelativePatcher::GetInsn(ArrayRef<const uint8_t> code, uint32_t offset) { in GetInsn() 321 return GetInsn(ArrayRef<const uint8_t>(*code), offset); in GetInsn()
|
D | relative_patcher_arm64.h | 44 static bool NeedsErratum843419Thunk(ArrayRef<const uint8_t> code, uint32_t literal_offset, 47 static uint32_t GetInsn(ArrayRef<const uint8_t> code, uint32_t offset);
|
/art/compiler/linker/ |
D | relative_patcher_test.h | 71 const ArrayRef<const uint8_t>& code, in AddCompiledMethod() 72 const ArrayRef<const LinkerPatch>& patches) { in AddCompiledMethod() 76 0u, 0u, 0u, nullptr, ArrayRef<const uint8_t>(), ArrayRef<const uint8_t>(), in AddCompiledMethod() 77 ArrayRef<const uint8_t>(), ArrayRef<const uint8_t>(), in AddCompiledMethod() 127 ArrayRef<const uint8_t> code(*compiled_method->GetQuickCode()); in Link() 130 code = ArrayRef<const uint8_t>(patched_code_); in Link() 155 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { in CheckLinkedMethod() 173 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size()); in CheckLinkedMethod() 182 void DumpDiff(const ArrayRef<const uint8_t>& expected_code, in DumpDiff() 183 const ArrayRef<const uint8_t>& linked_code) { in DumpDiff()
|
D | relative_patcher.h | 112 bool WriteRelCallThunk(OutputStream* out, const ArrayRef<const uint8_t>& thunk); 113 bool WriteMiscThunk(OutputStream* out, const ArrayRef<const uint8_t>& thunk);
|
D | relative_patcher.cc | 96 bool RelativePatcher::WriteRelCallThunk(OutputStream* out, const ArrayRef<const uint8_t>& thunk) { in WriteRelCallThunk() 104 bool RelativePatcher::WriteMiscThunk(OutputStream* out, const ArrayRef<const uint8_t>& thunk) { in WriteMiscThunk()
|
/art/compiler/dex/quick/mips/ |
D | target_mips.cc | 128 static constexpr ArrayRef<const RegStorage> empty_pool; 129 static constexpr ArrayRef<const RegStorage> core_regs_32(core_regs_arr_32); 130 static constexpr ArrayRef<const RegStorage> sp_regs_32(sp_regs_arr_32); 131 static constexpr ArrayRef<const RegStorage> dp_fr0_regs_32(dp_fr0_regs_arr_32); 132 static constexpr ArrayRef<const RegStorage> dp_fr1_regs_32(dp_fr1_regs_arr_32); 133 static constexpr ArrayRef<const RegStorage> reserved_regs_32(reserved_regs_arr_32); 134 static constexpr ArrayRef<const RegStorage> core_temps_32(core_temps_arr_32); 135 static constexpr ArrayRef<const RegStorage> sp_fr0_temps_32(sp_fr0_temps_arr_32); 136 static constexpr ArrayRef<const RegStorage> sp_fr1_temps_32(sp_fr1_temps_arr_32); 137 static constexpr ArrayRef<const RegStorage> dp_fr0_temps_32(dp_fr0_temps_arr_32); [all …]
|
/art/compiler/optimizing/ |
D | optimizing_compiler.cc | 373 static ArrayRef<const uint8_t> AlignVectorSize(std::vector<uint8_t>& vector) { in AlignVectorSize() 379 return ArrayRef<const uint8_t>(vector); in AlignVectorSize() 425 ArrayRef<const uint8_t>(allocator.GetMemory()), in CompileOptimized() 433 ArrayRef<const uint8_t>(), // mapping_table. in CompileOptimized() 434 ArrayRef<const uint8_t>(stack_map), in CompileOptimized() 435 ArrayRef<const uint8_t>(), // native_gc_map. in CompileOptimized() 436 ArrayRef<const uint8_t>(*codegen->GetAssembler()->cfi().data()), in CompileOptimized() 437 ArrayRef<const LinkerPatch>()); in CompileOptimized() 462 ArrayRef<const uint8_t>(allocator.GetMemory()), in CompileBaseline() 473 ArrayRef<const uint8_t>(*codegen->GetAssembler()->cfi().data()), in CompileBaseline() [all …]
|
/art/compiler/driver/ |
D | compiler_driver.h | 456 SwapVector<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code); 457 SwapSrcMap* DeduplicateSrcMappingTable(const ArrayRef<SrcMapElem>& src_map); 458 SwapVector<uint8_t>* DeduplicateMappingTable(const ArrayRef<const uint8_t>& code); 459 SwapVector<uint8_t>* DeduplicateVMapTable(const ArrayRef<const uint8_t>& code); 460 SwapVector<uint8_t>* DeduplicateGCMap(const ArrayRef<const uint8_t>& code); 461 SwapVector<uint8_t>* DeduplicateCFIInfo(const ArrayRef<const uint8_t>& cfi_info); 694 size_t operator()(const ArrayRef<ContentType>& array) const { in operator() 765 DedupeSet<ArrayRef<const uint8_t>, 767 DedupeSet<ArrayRef<SrcMapElem>, 769 DedupeSet<ArrayRef<const uint8_t>, [all …]
|
/art/compiler/dex/quick/arm64/ |
D | target_arm64.cc | 76 static constexpr ArrayRef<const RegStorage> core_regs(core_regs_arr); 77 static constexpr ArrayRef<const RegStorage> core64_regs(core64_regs_arr); 78 static constexpr ArrayRef<const RegStorage> sp_regs(sp_regs_arr); 79 static constexpr ArrayRef<const RegStorage> dp_regs(dp_regs_arr); 80 static constexpr ArrayRef<const RegStorage> reserved_regs(reserved_regs_arr); 81 static constexpr ArrayRef<const RegStorage> reserved64_regs(reserved64_regs_arr); 82 static constexpr ArrayRef<const RegStorage> core_temps(core_temps_arr); 83 static constexpr ArrayRef<const RegStorage> core64_temps(core64_temps_arr); 84 static constexpr ArrayRef<const RegStorage> sp_temps(sp_temps_arr); 85 static constexpr ArrayRef<const RegStorage> dp_temps(dp_temps_arr);
|
/art/compiler/dex/quick/x86/ |
D | target_x86.cc | 123 static constexpr ArrayRef<const RegStorage> empty_pool; 124 static constexpr ArrayRef<const RegStorage> core_regs_32(core_regs_arr_32); 125 static constexpr ArrayRef<const RegStorage> core_regs_64(core_regs_arr_64); 126 static constexpr ArrayRef<const RegStorage> core_regs_64q(core_regs_arr_64q); 127 static constexpr ArrayRef<const RegStorage> sp_regs_32(sp_regs_arr_32); 128 static constexpr ArrayRef<const RegStorage> sp_regs_64(sp_regs_arr_64); 129 static constexpr ArrayRef<const RegStorage> dp_regs_32(dp_regs_arr_32); 130 static constexpr ArrayRef<const RegStorage> dp_regs_64(dp_regs_arr_64); 131 static constexpr ArrayRef<const RegStorage> xp_regs_32(xp_regs_arr_32); 132 static constexpr ArrayRef<const RegStorage> xp_regs_64(xp_regs_arr_64); [all …]
|
/art/compiler/jni/quick/ |
D | jni_compiler.cc | 485 ArrayRef<const uint8_t>(managed_code), in ArtJniCompileMethodInternal() 490 ArrayRef<const uint8_t>(), // mapping_table. in ArtJniCompileMethodInternal() 491 ArrayRef<const uint8_t>(), // vmap_table. in ArtJniCompileMethodInternal() 492 ArrayRef<const uint8_t>(), // native_gc_map. in ArtJniCompileMethodInternal() 493 ArrayRef<const uint8_t>(*jni_asm->cfi().data()), in ArtJniCompileMethodInternal() 494 ArrayRef<const LinkerPatch>()); in ArtJniCompileMethodInternal()
|
/art/compiler/dex/quick/arm/ |
D | target_arm.cc | 63 static constexpr ArrayRef<const RegStorage> empty_pool; 64 static constexpr ArrayRef<const RegStorage> core_regs(core_regs_arr); 65 static constexpr ArrayRef<const RegStorage> sp_regs(sp_regs_arr); 66 static constexpr ArrayRef<const RegStorage> dp_regs(dp_regs_arr); 67 static constexpr ArrayRef<const RegStorage> reserved_regs(reserved_regs_arr); 68 static constexpr ArrayRef<const RegStorage> core_temps(core_temps_arr); 69 static constexpr ArrayRef<const RegStorage> sp_temps(sp_temps_arr); 70 static constexpr ArrayRef<const RegStorage> dp_temps(dp_temps_arr);
|
/art/compiler/dex/quick/ |
D | ralloc_util.cc | 63 const ArrayRef<const RegStorage>& core_regs, in RegisterPool() 64 const ArrayRef<const RegStorage>& core64_regs, in RegisterPool() 65 const ArrayRef<const RegStorage>& sp_regs, in RegisterPool() 66 const ArrayRef<const RegStorage>& dp_regs, in RegisterPool() 67 const ArrayRef<const RegStorage>& reserved_regs, in RegisterPool() 68 const ArrayRef<const RegStorage>& reserved64_regs, in RegisterPool() 69 const ArrayRef<const RegStorage>& core_temps, in RegisterPool() 70 const ArrayRef<const RegStorage>& core64_temps, in RegisterPool() 71 const ArrayRef<const RegStorage>& sp_temps, in RegisterPool() 72 const ArrayRef<const RegStorage>& dp_temps) : in RegisterPool()
|
D | mir_to_lir.h | 423 const ArrayRef<const RegStorage>& core_regs, 424 const ArrayRef<const RegStorage>& core64_regs, 425 const ArrayRef<const RegStorage>& sp_regs, 426 const ArrayRef<const RegStorage>& dp_regs, 427 const ArrayRef<const RegStorage>& reserved_regs, 428 const ArrayRef<const RegStorage>& reserved64_regs, 429 const ArrayRef<const RegStorage>& core_temps, 430 const ArrayRef<const RegStorage>& core64_temps, 431 const ArrayRef<const RegStorage>& sp_temps, 432 const ArrayRef<const RegStorage>& dp_temps);
|
D | codegen_util.cc | 1162 ArrayRef<const uint8_t>(code_buffer_), in GetCompiledMethod() 1165 ArrayRef<const uint8_t>(encoded_mapping_table_), in GetCompiledMethod() 1166 ArrayRef<const uint8_t>(vmap_encoder.GetData()), in GetCompiledMethod() 1167 ArrayRef<const uint8_t>(native_gc_map_), in GetCompiledMethod() 1168 ArrayRef<const uint8_t>(*cfi_.Patch(code_buffer_.size())), in GetCompiledMethod() 1169 ArrayRef<const LinkerPatch>(patches_)); in GetCompiledMethod()
|