summaryrefslogtreecommitdiff
path: root/runtime/stack.h
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2022-04-22 13:49:24 +0000
committer Mythri Alle <mythria@google.com> 2022-04-22 13:49:24 +0000
commit79f078d87e410ed6d7b78a3afe8f7008db3601dd (patch)
treec7ebac1e626dd11e72767af1174b68f8fea9dfa9 /runtime/stack.h
parent640267052653a8c177b6f325675e7217b83d7d3c (diff)
Revert "Update how deoptimization from runtime methods is supported"
This reverts commit 640267052653a8c177b6f325675e7217b83d7d3c. Reason for revert: Broke golem benchmarks Change-Id: I2d3f19508cfa22520c551e5f872272e6e8cf553e
Diffstat (limited to 'runtime/stack.h')
-rw-r--r--runtime/stack.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/stack.h b/runtime/stack.h
index bfda57b136..1b00b54acb 100644
--- a/runtime/stack.h
+++ b/runtime/stack.h
@@ -58,6 +58,11 @@ enum VRegKind {
};
std::ostream& operator<<(std::ostream& os, VRegKind rhs);
+// Size in bytes of the should_deoptimize flag on stack.
+// We just need 4 bytes for our purpose regardless of the architecture. Frame size
+// calculation will automatically do alignment for the final frame size.
+static constexpr size_t kShouldDeoptimizeFlagSize = 4;
+
/*
* Our current stack layout.
* The Dalvik registers come first, followed by the
@@ -301,11 +306,6 @@ class StackVisitor {
return *GetShouldDeoptimizeFlagAddr();
}
- bool IsShouldDeoptimizeFlagForDebugSet() const REQUIRES_SHARED(Locks::mutator_lock_) {
- uint8_t should_deopt_flag = GetShouldDeoptimizeFlag();
- return (should_deopt_flag & static_cast<uint8_t>(DeoptimizeFlagValue::kDebug)) != 0;
- }
-
private:
// Private constructor known in the case that num_frames_ has already been computed.
StackVisitor(Thread* thread,