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

Unified Diff: runtime/vm/stack_frame.cc

Issue 26255004: Allow the debugger to inspect local variables from optimized and (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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/stack_frame.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stack_frame.cc
===================================================================
--- runtime/vm/stack_frame.cc (revision 28466)
+++ runtime/vm/stack_frame.cc (working copy)
@@ -396,4 +396,22 @@
SetDone();
}
+
+// Finds the potential offset for the current function's FP if the
+// current frame were to be deoptimized.
+intptr_t InlinedFunctionsIterator::GetDeoptFpOffset() const {
+ ASSERT(deopt_instructions_.length() != 0);
+ for (intptr_t index = index_;
+ index < deopt_instructions_.length();
+ index++) {
+ DeoptInstr* deopt_instr = deopt_instructions_[index];
+ if (deopt_instr->kind() == DeoptInstr::kCallerFp) {
+ return index;
+ }
+ }
+ UNREACHABLE();
+ return 0;
+}
+
+
} // namespace dart
« no previous file with comments | « runtime/vm/stack_frame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698