summaryrefslogtreecommitdiff
path: root/runtime/stack.cc
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2021-11-01 11:48:06 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2021-11-01 14:31:37 +0000
commit72be14ed06b76cd0e83392145cec9025ff43d174 (patch)
treeaa186f70ea70011d428ab91a1f4a3fb0c2e39de5 /runtime/stack.cc
parent667584d95926af5f0f6e392ab2dc575cc2906c51 (diff)
Revert "Add support for calling entry / exit hooks directly from JIT code"
This reverts commit 2d4feeb67912d64b9e980e6687794826a5c22f9d. Reason for revert: This breaks no-image tests. Example failure: https://android-build.googleplex.com/builds/submitted/7871904/art-no-image/latest/view/logs/build_error.log Change-Id: I0f97c672c2d48f125931171ee1041a7c1cf20127
Diffstat (limited to 'runtime/stack.cc')
-rw-r--r--runtime/stack.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc
index eb0fe5692d..233106eb0a 100644
--- a/runtime/stack.cc
+++ b/runtime/stack.cc
@@ -800,21 +800,6 @@ QuickMethodFrameInfo StackVisitor::GetCurrentQuickFrameInfo() const {
return RuntimeCalleeSaveFrame::GetMethodFrameInfo(CalleeSaveType::kSaveRefsAndArgs);
}
-uint8_t* StackVisitor::GetShouldDeoptimizeFlagAddr() const REQUIRES_SHARED(Locks::mutator_lock_) {
- DCHECK(GetCurrentOatQuickMethodHeader()->HasShouldDeoptimizeFlag());
- QuickMethodFrameInfo frame_info = GetCurrentQuickFrameInfo();
- size_t frame_size = frame_info.FrameSizeInBytes();
- uint8_t* sp = reinterpret_cast<uint8_t*>(GetCurrentQuickFrame());
- size_t core_spill_size =
- POPCOUNT(frame_info.CoreSpillMask()) * GetBytesPerGprSpillLocation(kRuntimeISA);
- size_t fpu_spill_size =
- POPCOUNT(frame_info.FpSpillMask()) * GetBytesPerFprSpillLocation(kRuntimeISA);
- size_t offset = frame_size - core_spill_size - fpu_spill_size - kShouldDeoptimizeFlagSize;
- uint8_t* should_deoptimize_addr = sp + offset;
- DCHECK_EQ(*should_deoptimize_addr & ~static_cast<uint8_t>(DeoptimizeFlagValue::kAll), 0);
- return should_deoptimize_addr;
-}
-
template <StackVisitor::CountTransitions kCount>
void StackVisitor::WalkStack(bool include_transitions) {
if (check_suspended_) {