Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: runtime/vm/stack_frame.h

Issue 2176413003: DBC: Fix reading locals out of a deopt frame. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/stack_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stack_frame.h
diff --git a/runtime/vm/stack_frame.h b/runtime/vm/stack_frame.h
index dac3e5fb714523dfb0f8bbaf14a9ddbfc7b3c1f1..268ca4a9998819930ed8b30b3cb92ef2bab75a7e 100644
--- a/runtime/vm/stack_frame.h
+++ b/runtime/vm/stack_frame.h
@@ -336,6 +336,7 @@ class InlinedFunctionsIterator : public ValueObject {
intptr_t index_;
intptr_t num_materializations_;
+ intptr_t dest_frame_size_;
Code& code_;
TypedData& deopt_info_;
Function& function_;
@@ -346,9 +347,11 @@ class InlinedFunctionsIterator : public ValueObject {
DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator);
};
+
#if !defined(TARGET_ARCH_DBC)
-DART_FORCE_INLINE static uword LocalVarAddress(uword fp, intptr_t index) {
- return fp + (index * kWordSize);
+DART_FORCE_INLINE static intptr_t LocalVarIndex(intptr_t fp_offset,
+ intptr_t var_index) {
+ return fp_offset + var_index;
}
@@ -367,6 +370,12 @@ DART_FORCE_INLINE static bool IsCalleeFrameOf(uword fp, uword other_fp) {
static const uword kInterruptStackLimit = ~static_cast<uword>(0);
#endif
+
+DART_FORCE_INLINE static uword LocalVarAddress(uword fp, intptr_t index) {
+ return fp + LocalVarIndex(0, index) * kWordSize;
+}
+
+
} // namespace dart
#endif // VM_STACK_FRAME_H_
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/stack_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698