Home
last modified time | relevance | path

Searched refs:CalleeSaveType (Results 1 – 25 of 28) sorted by relevance

12

/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints_test.cc42 static ArtMethod* CreateCalleeSaveMethod(InstructionSet isa, CalleeSaveType type) in CreateCalleeSaveMethod()
57 static void CheckPCOffset(InstructionSet isa, CalleeSaveType type, size_t pc_offset) in CheckPCOffset()
76 CalleeSaveType::kSaveRefsAndArgs, in TEST_F()
77 RuntimeCalleeSaveFrame::GetReturnPcOffset(CalleeSaveType::kSaveRefsAndArgs)); in TEST_F()
80 CalleeSaveType::kSaveRefsOnly, in TEST_F()
81 RuntimeCalleeSaveFrame::GetReturnPcOffset(CalleeSaveType::kSaveRefsOnly)); in TEST_F()
84 CalleeSaveType::kSaveAllCalleeSaves, in TEST_F()
85 RuntimeCalleeSaveFrame::GetReturnPcOffset(CalleeSaveType::kSaveAllCalleeSaves)); in TEST_F()
88 CalleeSaveType::kSaveEverything, in TEST_F()
89 RuntimeCalleeSaveFrame::GetReturnPcOffset(CalleeSaveType::kSaveEverything)); in TEST_F()
[all …]
Dquick_dexcache_entrypoints.cc158 self, CalleeSaveType::kSaveEverythingForClinit); in artResolveTypeFromCode()
176 CalleeSaveType::kSaveEverything); in artResolveTypeAndVerifyAccessFromCode()
192 GetCalleeSaveMethodCallerAndOuterMethod(self, CalleeSaveType::kSaveEverything); in artResolveMethodHandleFromCode()
202 CalleeSaveType::kSaveEverything); in artResolveMethodTypeFromCode()
212 CalleeSaveType::kSaveEverything); in artResolveStringFromCode()
Dquick_trampoline_entrypoints.cc69 RuntimeCalleeSaveFrame::GetFrameSize(CalleeSaveType::kSaveRefsAndArgs);
72 RuntimeCalleeSaveFrame::GetGpr1Offset(CalleeSaveType::kSaveRefsAndArgs);
75 RuntimeCalleeSaveFrame::GetFpr1Offset(CalleeSaveType::kSaveRefsAndArgs);
78 RuntimeCalleeSaveFrame::GetReturnPcOffset(CalleeSaveType::kSaveRefsAndArgs);
241 return GetCalleeSaveMethodCaller(sp, CalleeSaveType::kSaveRefsAndArgs); in GetCallingMethod()
254 RuntimeCalleeSaveFrame::GetFrameSize(CalleeSaveType::kSaveRefsAndArgs); in GetCallingDexPc()
1099 RuntimeCalleeSaveFrame::GetReturnPcOffset(CalleeSaveType::kSaveEverything); in artInstrumentationMethodExitFromCode()
1148 constexpr CalleeSaveType type = CalleeSaveType::kSaveRefsAndArgs; in DumpB74410240DebugData()
2272 DCHECK_EQ(*sp, Runtime::Current()->GetCalleeSaveMethod(CalleeSaveType::kSaveRefsAndArgs)); in artInvokeCommon()
2503 DCHECK_EQ(*sp, Runtime::Current()->GetCalleeSaveMethod(CalleeSaveType::kSaveRefsAndArgs)); in artInvokePolymorphic()
[all …]
Dquick_field_entrypoints.cc56 ArtMethod* outer = GetCalleeSaveOuterMethod(self, CalleeSaveType::kSaveRefsOnly); in GetReferrer()
61 return GetCalleeSaveMethodCallerAndOuterMethod(self, CalleeSaveType::kSaveRefsOnly).caller; in GetReferrer()
/art/runtime/base/
Dcallee_save_type.h26 enum class CalleeSaveType : uint32_t { enum
35 std::ostream& operator<<(std::ostream& os, CalleeSaveType rhs);
37 static inline constexpr CalleeSaveType GetCanonicalCalleeSaveType(CalleeSaveType type) { in GetCanonicalCalleeSaveType()
38 if (type == CalleeSaveType::kSaveEverythingForClinit || in GetCanonicalCalleeSaveType()
39 type == CalleeSaveType::kSaveEverythingForSuspendCheck) { in GetCanonicalCalleeSaveType()
40 return CalleeSaveType::kSaveEverything; in GetCanonicalCalleeSaveType()
/art/runtime/
Druntime-inl.h52 if (method == GetCalleeSaveMethodUnchecked(CalleeSaveType::kSaveRefsAndArgs)) { in GetRuntimeMethodFrameInfo()
53 return RuntimeCalleeSaveFrame::GetMethodFrameInfo(CalleeSaveType::kSaveRefsAndArgs); in GetRuntimeMethodFrameInfo()
54 } else if (method == GetCalleeSaveMethodUnchecked(CalleeSaveType::kSaveAllCalleeSaves)) { in GetRuntimeMethodFrameInfo()
55 return RuntimeCalleeSaveFrame::GetMethodFrameInfo(CalleeSaveType::kSaveAllCalleeSaves); in GetRuntimeMethodFrameInfo()
56 } else if (method == GetCalleeSaveMethodUnchecked(CalleeSaveType::kSaveRefsOnly)) { in GetRuntimeMethodFrameInfo()
57 return RuntimeCalleeSaveFrame::GetMethodFrameInfo(CalleeSaveType::kSaveRefsOnly); in GetRuntimeMethodFrameInfo()
59 DCHECK(method == GetCalleeSaveMethodUnchecked(CalleeSaveType::kSaveEverything) || in GetRuntimeMethodFrameInfo()
60 method == GetCalleeSaveMethodUnchecked(CalleeSaveType::kSaveEverythingForClinit) || in GetRuntimeMethodFrameInfo()
61 method == GetCalleeSaveMethodUnchecked(CalleeSaveType::kSaveEverythingForSuspendCheck)); in GetRuntimeMethodFrameInfo()
62 return RuntimeCalleeSaveFrame::GetMethodFrameInfo(CalleeSaveType::kSaveEverything); in GetRuntimeMethodFrameInfo()
[all …]
Dnterp_helpers.cc90 RuntimeCalleeSaveFrame::GetCoreSpills(CalleeSaveType::kSaveAllCalleeSaves); in NterpGetFrameEntrySize()
92 RuntimeCalleeSaveFrame::GetFpSpills(CalleeSaveType::kSaveAllCalleeSaves); in NterpGetFrameEntrySize()
119 RuntimeCalleeSaveFrame::GetCoreSpills(CalleeSaveType::kSaveAllCalleeSaves); in NterpFrameInfo()
121 RuntimeCalleeSaveFrame::GetFpSpills(CalleeSaveType::kSaveAllCalleeSaves); in NterpFrameInfo()
Druntime.h87 enum class CalleeSaveType: uint32_t;
447 bool HasCalleeSaveMethod(CalleeSaveType type) const { in HasCalleeSaveMethod()
451 ArtMethod* GetCalleeSaveMethod(CalleeSaveType type)
454 ArtMethod* GetCalleeSaveMethodUnchecked(CalleeSaveType type)
460 static constexpr size_t GetCalleeSaveMethodOffset(CalleeSaveType type) { in GetCalleeSaveMethodOffset()
471 void SetCalleeSaveMethod(ArtMethod* method, CalleeSaveType type);
Dart_method.cc852 } else if (this == runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveAllCalleeSaves)) { in GetRuntimeMethodName()
854 } else if (this == runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveRefsOnly)) { in GetRuntimeMethodName()
856 } else if (this == runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveRefsAndArgs)) { in GetRuntimeMethodName()
858 } else if (this == runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveEverything)) { in GetRuntimeMethodName()
860 } else if (this == runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveEverythingForClinit)) { in GetRuntimeMethodName()
862 } else if (this == runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveEverythingForSuspendCheck)) { in GetRuntimeMethodName()
Dstack.cc792 return RuntimeCalleeSaveFrame::GetMethodFrameInfo(CalleeSaveType::kSaveRefsAndArgs); in GetCurrentQuickFrameInfo()
806 return RuntimeCalleeSaveFrame::GetMethodFrameInfo(CalleeSaveType::kSaveRefsAndArgs); in GetCurrentQuickFrameInfo()
826 return RuntimeCalleeSaveFrame::GetMethodFrameInfo(CalleeSaveType::kSaveRefsAndArgs); in GetCurrentQuickFrameInfo()
937 Runtime::Current()->GetCalleeSaveMethod(CalleeSaveType::kSaveAllCalleeSaves)) { in WalkStack()
941 Runtime::Current()->GetCalleeSaveMethod(CalleeSaveType::kSaveRefsAndArgs); in WalkStack()
Dart_method-inl.h137 for (uint32_t i = 0; i < static_cast<uint32_t>(CalleeSaveType::kLastCalleeSaveType); i++) { in IsCalleeSaveMethod()
138 if (this == runtime->GetCalleeSaveMethod(CalleeSaveType(i))) { in IsCalleeSaveMethod()
Dinstrumentation.cc499 CHECK(m == Runtime::Current()->GetCalleeSaveMethod(CalleeSaveType::kSaveRefsAndArgs)); in InstrumentationRestoreStack()
1426 CalleeSaveType::kSaveEverythingForClinit)) { in GetDeoptimizationMethodType()
1430 CalleeSaveType::kSaveEverythingForSuspendCheck)) { in GetDeoptimizationMethodType()
1530 CalleeSaveType::kSaveEverythingForClinit)) { in PopInstrumentationStackFrame()
Druntime.cc301 static_cast<uint32_t>(CalleeSaveType::kLastCalleeSaveType), "Unexpected size"); in Runtime()
1622 CalleeSaveType type = CalleeSaveType(i); in Init()
2393 void Runtime::SetCalleeSaveMethod(ArtMethod* method, CalleeSaveType type) { in SetCalleeSaveMethod()
/art/runtime/arch/x86/
Dcallee_save_frame_x86.h51 static constexpr uint32_t GetCoreSpills(CalleeSaveType type) { in GetCoreSpills()
54 (type == CalleeSaveType::kSaveRefsAndArgs ? kX86CalleeSaveArgSpills : 0) | in GetCoreSpills()
55 (type == CalleeSaveType::kSaveEverything ? kX86CalleeSaveEverythingSpills : 0); in GetCoreSpills()
58 static constexpr uint32_t GetFpSpills(CalleeSaveType type) { in GetFpSpills()
60 return (type == CalleeSaveType::kSaveRefsAndArgs ? kX86CalleeSaveFpArgSpills : 0) | in GetFpSpills()
61 (type == CalleeSaveType::kSaveEverything ? kX86CalleeSaveFpEverythingSpills : 0); in GetFpSpills()
64 static constexpr uint32_t GetFrameSize(CalleeSaveType type) { in GetFrameSize()
71 static constexpr QuickMethodFrameInfo GetMethodFrameInfo(CalleeSaveType type) { in GetMethodFrameInfo()
76 static constexpr size_t GetFpr1Offset(CalleeSaveType type) { in GetFpr1Offset()
83 static constexpr size_t GetGpr1Offset(CalleeSaveType type) { in GetGpr1Offset()
[all …]
/art/runtime/arch/arm/
Dcallee_save_frame_arm.h61 static constexpr uint32_t GetCoreSpills(CalleeSaveType type) { in GetCoreSpills()
64 (type == CalleeSaveType::kSaveRefsAndArgs ? kArmCalleeSaveArgSpills : 0) | in GetCoreSpills()
65 (type == CalleeSaveType::kSaveAllCalleeSaves ? kArmCalleeSaveAllSpills : 0) | in GetCoreSpills()
66 (type == CalleeSaveType::kSaveEverything ? kArmCalleeSaveEverythingSpills : 0); in GetCoreSpills()
69 static constexpr uint32_t GetFpSpills(CalleeSaveType type) { in GetFpSpills()
72 (type == CalleeSaveType::kSaveRefsAndArgs ? kArmCalleeSaveFpArgSpills : 0) | in GetFpSpills()
73 (type == CalleeSaveType::kSaveAllCalleeSaves ? kArmCalleeSaveFpAllSpills : 0) | in GetFpSpills()
74 (type == CalleeSaveType::kSaveEverything ? kArmCalleeSaveFpEverythingSpills : 0); in GetFpSpills()
77 static constexpr uint32_t GetFrameSize(CalleeSaveType type) { in GetFrameSize()
84 static constexpr QuickMethodFrameInfo GetMethodFrameInfo(CalleeSaveType type) { in GetMethodFrameInfo()
[all …]
/art/runtime/arch/x86_64/
Dcallee_save_frame_x86_64.h61 static constexpr uint32_t GetCoreSpills(CalleeSaveType type) { in GetCoreSpills()
64 (type == CalleeSaveType::kSaveRefsAndArgs ? kX86_64CalleeSaveArgSpills : 0) | in GetCoreSpills()
65 (type == CalleeSaveType::kSaveEverything ? kX86_64CalleeSaveEverythingSpills : 0); in GetCoreSpills()
68 static constexpr uint32_t GetFpSpills(CalleeSaveType type) { in GetFpSpills()
71 (type == CalleeSaveType::kSaveRefsAndArgs ? kX86_64CalleeSaveFpArgSpills : 0) | in GetFpSpills()
72 (type == CalleeSaveType::kSaveEverything ? kX86_64CalleeSaveFpEverythingSpills : 0); in GetFpSpills()
75 static constexpr uint32_t GetFrameSize(CalleeSaveType type) { in GetFrameSize()
82 static constexpr QuickMethodFrameInfo GetMethodFrameInfo(CalleeSaveType type) { in GetMethodFrameInfo()
87 static constexpr size_t GetFpr1Offset(CalleeSaveType type) { in GetFpr1Offset()
94 static constexpr size_t GetGpr1Offset(CalleeSaveType type) { in GetGpr1Offset()
[all …]
/art/tools/cpp-define-generator/
Druntime.def22 art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveAllCalleeSaves))
24 art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForClinit))
26 … art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForSuspendCheck))
28 art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverything))
30 art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsAndArgs))
32 art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly))
/art/runtime/arch/arm64/
Dcallee_save_frame_arm64.h84 static constexpr uint32_t GetCoreSpills(CalleeSaveType type) { in GetCoreSpills()
87 (type == CalleeSaveType::kSaveRefsAndArgs ? kArm64CalleeSaveArgSpills : 0) | in GetCoreSpills()
88 (type == CalleeSaveType::kSaveAllCalleeSaves ? kArm64CalleeSaveAllSpills : 0) | in GetCoreSpills()
89 (type == CalleeSaveType::kSaveEverything ? kArm64CalleeSaveEverythingSpills : 0); in GetCoreSpills()
92 static constexpr uint32_t GetFpSpills(CalleeSaveType type) { in GetFpSpills()
95 (type == CalleeSaveType::kSaveRefsAndArgs ? kArm64CalleeSaveFpArgSpills : 0) | in GetFpSpills()
96 (type == CalleeSaveType::kSaveAllCalleeSaves ? kArm64CalleeSaveFpAllSpills : 0) | in GetFpSpills()
97 (type == CalleeSaveType::kSaveEverything ? kArm64CalleeSaveFpEverythingSpills : 0); in GetFpSpills()
100 static constexpr uint32_t GetFrameSize(CalleeSaveType type) { in GetFrameSize()
107 static constexpr QuickMethodFrameInfo GetMethodFrameInfo(CalleeSaveType type) { in GetMethodFrameInfo()
[all …]
/art/runtime/entrypoints/
Dentrypoint_utils.h198 CalleeSaveType type,
207 CallerAndOuterMethod GetCalleeSaveMethodCallerAndOuterMethod(Thread* self, CalleeSaveType type)
210 ArtMethod* GetCalleeSaveOuterMethod(Thread* self, CalleeSaveType type)
Dentrypoint_utils.cc186 ArtMethod** sp, CalleeSaveType type) REQUIRES_SHARED(Locks::mutator_lock_) { in DoGetCalleeSaveMethodOuterCallerAndPc()
237 ArtMethod* GetCalleeSaveMethodCaller(ArtMethod** sp, CalleeSaveType type, bool do_caller_check) in GetCalleeSaveMethodCaller()
247 CallerAndOuterMethod GetCalleeSaveMethodCallerAndOuterMethod(Thread* self, CalleeSaveType type) { in GetCalleeSaveMethodCallerAndOuterMethod()
259 ArtMethod* GetCalleeSaveOuterMethod(Thread* self, CalleeSaveType type) { in GetCalleeSaveOuterMethod()
/art/runtime/arch/
Darch_test.cc129 EXPECT_EQ(arch::Arch##CalleeSaveFrame::GetFrameSize(CalleeSaveType::k##type), \
131 EXPECT_EQ(arch::Arch##CalleeSaveFrame::GetReturnPcOffset(CalleeSaveType::k##type), \
/art/compiler/
Dcommon_compiler_test.cc124 for (uint32_t i = 0; i < static_cast<uint32_t>(CalleeSaveType::kLastCalleeSaveType); ++i) { in SetUp()
125 CalleeSaveType type = CalleeSaveType(i); in SetUp()
Dexception_test.cc176 r->SetCalleeSaveMethod(save_method, CalleeSaveType::kSaveAllCalleeSaves); in TEST_F()
/art/runtime/entrypoints/jni/
Djni_entrypoints.cc87 DCHECK(*sp == Runtime::Current()->GetCalleeSaveMethod(CalleeSaveType::kSaveRefsAndArgs)); in artFindNativeMethodRunnable()
/art/dex2oat/linker/
Dimage_writer.cc2418 runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveAllCalleeSaves); in CalculateNewObjectOffsets()
2420 runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveRefsOnly); in CalculateNewObjectOffsets()
2422 runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveRefsAndArgs); in CalculateNewObjectOffsets()
2424 runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveEverything); in CalculateNewObjectOffsets()
2426 runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveEverythingForClinit); in CalculateNewObjectOffsets()
2428 runtime->GetCalleeSaveMethod(CalleeSaveType::kSaveEverythingForSuspendCheck); in CalculateNewObjectOffsets()
3440 for (size_t i = 0; i < static_cast<size_t>(CalleeSaveType::kLastCalleeSaveType); ++i) { in CopyAndFixupMethod()
3441 auto idx = static_cast<CalleeSaveType>(i); in CopyAndFixupMethod()

12