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

Unified Diff: runtime/vm/stack_frame.h

Issue 10827049: Allow creating DartFrameIterator using explicit last_fp value (instead of always expecting it from … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « no previous file | 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
===================================================================
--- runtime/vm/stack_frame.h (revision 9960)
+++ runtime/vm/stack_frame.h (working copy)
@@ -138,6 +138,7 @@
static const bool kDontValidateFrames = false;
explicit StackFrameIterator(bool validate);
+ StackFrameIterator(uword last_fp, bool validate);
// Checks if a next frame exists.
bool HasNextFrame() const { return frames_.fp_ != 0; }
@@ -204,7 +205,8 @@
class DartFrameIterator : public ValueObject {
public:
DartFrameIterator() : frames_(StackFrameIterator::kDontValidateFrames) { }
-
+ explicit DartFrameIterator(uword last_fp)
+ : frames_(last_fp, StackFrameIterator::kDontValidateFrames) {}
// Get next dart frame.
StackFrame* NextFrame() {
StackFrame* frame = frames_.NextFrame();
« no previous file with comments | « no previous file | runtime/vm/stack_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698