Home
last modified time | relevance | path

Searched refs:OatQuickMethodHeader (Results 1 – 25 of 38) sorted by relevance

12

/art/runtime/
Doat_file-inl.h27 inline const OatQuickMethodHeader* OatFile::OatMethod::GetOatQuickMethodHeader() const { in GetOatQuickMethodHeader()
33 return reinterpret_cast<const OatQuickMethodHeader*>(code) - 1; in GetOatQuickMethodHeader()
37 const OatQuickMethodHeader* method_header = GetOatQuickMethodHeader(); in GetOatQuickMethodHeaderOffset()
45 const OatQuickMethodHeader* method_header = GetOatQuickMethodHeader(); in GetQuickCodeSizeOffset()
57 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].GetFrameInfo().FrameSizeInBytes(); in GetFrameSizeInBytes()
65 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].GetFrameInfo().CoreSpillMask(); in GetCoreSpillMask()
73 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].GetFrameInfo().FpSpillMask(); in GetFpSpillMask()
82 const OatQuickMethodHeader* method_header = GetOatQuickMethodHeader(); in GetVmapTableOffsetOffset()
94 uint32_t offset = reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].GetVmapTableOffset(); in GetVmapTable()
106 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].GetCodeSize(); in GetQuickCodeSize()
Doat_quick_method_header.h31 class PACKED(4) OatQuickMethodHeader {
33 OatQuickMethodHeader() = default;
34 OatQuickMethodHeader(uint32_t vmap_table_offset, in OatQuickMethodHeader() function
40 static OatQuickMethodHeader* FromCodePointer(const void* code_ptr) { in FromCodePointer()
42 uintptr_t header = code - OFFSETOF_MEMBER(OatQuickMethodHeader, code_); in FromCodePointer()
46 return reinterpret_cast<OatQuickMethodHeader*>(header); in FromCodePointer()
49 static OatQuickMethodHeader* FromEntryPoint(const void* entry_point) { in FromEntryPoint()
53 OatQuickMethodHeader(const OatQuickMethodHeader&) = default;
54 OatQuickMethodHeader& operator=(const OatQuickMethodHeader&) = default;
Dcha_test.cc31 #define METHOD_HEADER1 (reinterpret_cast<OatQuickMethodHeader*>(128u))
32 #define METHOD_HEADER2 (reinterpret_cast<OatQuickMethodHeader*>(136u))
33 #define METHOD_HEADER3 (reinterpret_cast<OatQuickMethodHeader*>(144u))
61 std::unordered_set<OatQuickMethodHeader*> headers; in TEST_F()
Dcha.h88 typedef std::pair<ArtMethod*, OatQuickMethodHeader*> MethodAndMethodHeaderPair;
97 OatQuickMethodHeader* dependent_header) REQUIRES(Locks::cha_lock_);
110 const std::unordered_set<OatQuickMethodHeader*>& method_headers)
Dquick_exception_handler.h34 class OatQuickMethodHeader; variable
93 void SetHandlerMethodHeader(const OatQuickMethodHeader* handler_method_header) { in SetHandlerMethodHeader()
154 const OatQuickMethodHeader* handler_method_header_;
Doat_quick_method_header.cc27 uint32_t OatQuickMethodHeader::ToDexPc(ArtMethod* method, in ToDexPc()
53 uintptr_t OatQuickMethodHeader::ToNativeQuickPc(ArtMethod* method, in ToNativeQuickPc()
Dcha.cc37 OatQuickMethodHeader* dependent_header) { in AddDependency()
59 const std::unordered_set<OatQuickMethodHeader*>& method_headers) { in RemoveDependentsWithMethodHeaders()
189 const std::unordered_set<OatQuickMethodHeader*>& method_headers) in CHAStackVisitor()
209 const OatQuickMethodHeader* method_header = GetCurrentOatQuickMethodHeader(); in VisitFrame()
244 const std::unordered_set<OatQuickMethodHeader*>& method_headers_;
251 explicit CHACheckpoint(const std::unordered_set<OatQuickMethodHeader*>& method_headers) in CHACheckpoint()
275 const std::unordered_set<OatQuickMethodHeader*>& method_headers_;
636 std::unordered_set<OatQuickMethodHeader*> dependent_method_headers; in InvalidateSingleImplementationMethods()
644 std::vector<std::pair<ArtMethod*, OatQuickMethodHeader*>> headers; in InvalidateSingleImplementationMethods()
670 OatQuickMethodHeader* method_header = dependent.second; in InvalidateSingleImplementationMethods()
Dstack.h37 class OatQuickMethodHeader; variable
285 const OatQuickMethodHeader* GetCurrentOatQuickMethodHeader() const { in GetCurrentOatQuickMethodHeader()
338 const OatQuickMethodHeader* cur_oat_quick_method_header_;
Dart_method.cc573 const OatQuickMethodHeader* ArtMethod::GetOatQuickMethodHeader(uintptr_t pc) { in GetOatQuickMethodHeader()
598 OatQuickMethodHeader* method_header = in GetOatQuickMethodHeader()
599 OatQuickMethodHeader::FromEntryPoint(existing_entry_point); in GetOatQuickMethodHeader()
610 OatQuickMethodHeader* method_header = code_cache->LookupMethodHeader(pc, this); in GetOatQuickMethodHeader()
640 return OatQuickMethodHeader::FromEntryPoint(existing_entry_point); in GetOatQuickMethodHeader()
648 OatQuickMethodHeader* method_header = OatQuickMethodHeader::FromEntryPoint(oat_entry_point); in GetOatQuickMethodHeader()
Dstack.cc83 const OatQuickMethodHeader* method_header = GetCurrentOatQuickMethodHeader(); in GetMethod()
208 const OatQuickMethodHeader* method_header = GetCurrentOatQuickMethodHeader(); in GetVRegFromOptimizedCode()
609 uint32_t code_size = OatQuickMethodHeader::FromEntryPoint(code)->GetCodeSize(); in AssertPcIsWithinQuickCode()
790 OatQuickMethodHeader::FromEntryPoint(existing_entry_point); in WalkStack()
794 cur_oat_quick_method_header_ = OatQuickMethodHeader::FromEntryPoint(code); in WalkStack()
800 cur_oat_quick_method_header_ = OatQuickMethodHeader::FromCodePointer(code); in WalkStack()
Doat_file.h51 class OatQuickMethodHeader; variable
169 const OatQuickMethodHeader* GetOatQuickMethodHeader() const;
Dquick_exception_handler.cc368 const OatQuickMethodHeader* GetSingleFrameDeoptQuickMethodHeader() const { in GetSingleFrameDeoptQuickMethodHeader()
470 const OatQuickMethodHeader* method_header = GetCurrentOatQuickMethodHeader(); in HandleOptimizingDeoptimization()
556 const OatQuickMethodHeader* single_frame_deopt_quick_method_header_;
Dstack_map.h35 class OatQuickMethodHeader; variable
310 explicit CodeInfo(const OatQuickMethodHeader* header, DecodeFlags flags = AllTables);
Dfault_handler.cc329 const OatQuickMethodHeader* method_header = method_obj->GetOatQuickMethodHeader(return_pc); in IsInGeneratedCode()
/art/runtime/jit/
Djit_code_cache.cc556 entry_point = OatQuickMethodHeader::FromCodePointer(code_ptr)->GetEntryPoint(); in GetZygoteSavedEntryPoint()
661 return reinterpret_cast<uintptr_t>(code) - RoundUp(sizeof(OatQuickMethodHeader), alignment); in FromCodeToAllocation()
712 OatQuickMethodHeader* method_header = OatQuickMethodHeader::FromCodePointer(code_ptr); in GetRootTable()
803 if (OatQuickMethodHeader::FromCodePointer(code_ptr)->IsOptimized()) { in FreeCodeAndData()
816 const std::unordered_set<OatQuickMethodHeader*>& method_headers) { in FreeAllMethodHeaders()
829 for (const OatQuickMethodHeader* method_header : method_headers) { in FreeAllMethodHeaders()
840 std::unordered_set<OatQuickMethodHeader*> method_headers; in RemoveMethodsIn()
851 method_headers.insert(OatQuickMethodHeader::FromCodePointer(it->second.GetCode())); in RemoveMethodsIn()
860 method_headers.insert(OatQuickMethodHeader::FromCodePointer(it->first)); in RemoveMethodsIn()
994 OatQuickMethodHeader* method_header = nullptr; in CommitCodeInternal()
[all …]
Djit_code_cache.h43 class OatQuickMethodHeader; variable
185 OatQuickMethodHeader* LookupMethodHeader(uintptr_t pc, ArtMethod* method)
189 OatQuickMethodHeader* LookupOsrMethodHeader(ArtMethod* method)
230 void InvalidateCompiledCodeFor(ArtMethod* method, const OatQuickMethodHeader* code)
331 void FreeAllMethodHeaders(const std::unordered_set<OatQuickMethodHeader*>& method_headers)
/art/test/566-polymorphic-inlining/
Dpolymorphic_inline.cc36 OatQuickMethodHeader* header = nullptr; in do_checks()
41 header = OatQuickMethodHeader::FromEntryPoint(pc); in do_checks()
/art/test/570-checker-osr/
Dosr.cc68 const OatQuickMethodHeader* header = in Java_Main_isInOsrCode()
90 const OatQuickMethodHeader* header = in Java_Main_isInInterpreter()
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64_test.cc117 kTrampolineSize + CodeAlignmentSize(kTrampolineSize) + sizeof(OatQuickMethodHeader); in Create2MethodsWithGap()
124 const uint32_t gap_end = last_method_offset - sizeof(OatQuickMethodHeader); in Create2MethodsWithGap()
140 chunk_size - CodeAlignmentSize(chunk_start) - sizeof(OatQuickMethodHeader); in Create2MethodsWithGap()
163 CHECK_EQ(last_result.second, header_offset + sizeof(OatQuickMethodHeader)); in Create2MethodsWithGap()
430 kTrampolineSize + CodeAlignmentSize(kTrampolineSize) + sizeof(OatQuickMethodHeader); in TestAdrpInsn2Ldr()
480 kTrampolineSize + CodeAlignmentSize(kTrampolineSize) + sizeof(OatQuickMethodHeader); in TestAdrpInsn2Add()
735 if (sizeof(OatQuickMethodHeader) < kArm64Alignment) { in TEST_F()
747 method_after_thunk_offset - sizeof(OatQuickMethodHeader); in TEST_F()
1127 1 * MB - RoundUp(raw_code1.size() + sizeof(OatQuickMethodHeader), kArm64Alignment); in TEST_F()
1142 1 * MB - RoundUp(thunk_size + sizeof(OatQuickMethodHeader), kArm64Alignment) in TEST_F()
[all …]
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2_test.cc150 kTrampolineSize + CodeAlignmentSize(kTrampolineSize) + sizeof(OatQuickMethodHeader); in Create2MethodsWithGap()
157 const uint32_t gap_end = last_method_offset - sizeof(OatQuickMethodHeader); in Create2MethodsWithGap()
173 chunk_size - CodeAlignmentSize(chunk_start) - sizeof(OatQuickMethodHeader); in Create2MethodsWithGap()
197 header_offset + sizeof(OatQuickMethodHeader) + 1 /* thumb mode */); in Create2MethodsWithGap()
564 if (sizeof(OatQuickMethodHeader) < kArmAlignment) { in TEST_F()
576 method_after_thunk_offset - sizeof(OatQuickMethodHeader); in TEST_F()
920 RoundUp(raw_code1.size() + sizeof(OatQuickMethodHeader), kArmAlignment); in TEST_F()
941 - RoundUp(thunk_size + sizeof(OatQuickMethodHeader), kArmAlignment) in TEST_F()
942 - RoundUp(kNopCode.size() + sizeof(OatQuickMethodHeader), kArmAlignment) in TEST_F()
943 - sizeof(OatQuickMethodHeader); in TEST_F()
[all …]
/art/dex2oat/linker/
Drelative_patcher_test.h118 uint32_t unaligned_code_offset = header_offset_to_align + sizeof(OatQuickMethodHeader); in CodeAlignmentSize()
135 offset += sizeof(OatQuickMethodHeader); in Link()
156 uint8_t dummy_header[sizeof(OatQuickMethodHeader)]; in Link()
166 out_->WriteFully(dummy_header, sizeof(OatQuickMethodHeader)); in Link()
167 offset += sizeof(OatQuickMethodHeader); in Link()
/art/test/004-ReferenceMap/
Dstack_walk_refmap_jni.cc26 const OatQuickMethodHeader* method_header = GetCurrentOatQuickMethodHeader(); \
/art/compiler/
Dexception_test.cc87 const size_t header_size = sizeof(OatQuickMethodHeader); in SetUp()
96 OatQuickMethodHeader method_header(code_ptr - fake_header_code_and_maps_.data(), code_size); in SetUp()
97 static_assert(std::is_trivially_copyable<OatQuickMethodHeader>::value, "Cannot use memcpy"); in SetUp()
Dcommon_compiler_test.cc58 : sizeof(OatQuickMethodHeader) + vmap_table.size(); in MakeExecutable()
59 OatQuickMethodHeader method_header(vmap_table_offset, code_size); in MakeExecutable()
67 static_assert(std::is_trivially_copyable<OatQuickMethodHeader>::value, "Cannot use memcpy"); in MakeExecutable()
/art/runtime/entrypoints/
Dentrypoint_utils.h46 class OatQuickMethodHeader; variable

12