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

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
Index: runtime/vm/stack_frame.h
diff --git a/runtime/vm/stack_frame.h b/runtime/vm/stack_frame.h
index dac3e5fb714523dfb0f8bbaf14a9ddbfc7b3c1f1..741c3d39710fd6f97815a0ff2c10fddd65a0b418 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_;
@@ -352,6 +353,12 @@ DART_FORCE_INLINE static uword LocalVarAddress(uword fp, intptr_t index) {
}
+DART_FORCE_INLINE static intptr_t LocalVarIndex(intptr_t fp_offset,
+ intptr_t var_index) {
+ return fp_offset + var_index;
+}
+
+
DART_FORCE_INLINE static uword ParamAddress(uword fp, intptr_t reverse_index) {
return fp + (kParamEndSlotFromFp * kWordSize) + (reverse_index * kWordSize);
}
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/stack_frame.cc » ('j') | runtime/vm/stack_frame_dbc.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698