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

Unified Diff: runtime/vm/stack_frame.h

Issue 12079071: Fix a crash bug when creating a stack trace from an optimized frame. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: correct optimization threshold Created 7 years, 11 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
===================================================================
--- runtime/vm/stack_frame.h (revision 17826)
+++ runtime/vm/stack_frame.h (working copy)
@@ -229,17 +229,21 @@
// Iterator for iterating over all inlined dart functions in an optimized
// dart frame (the iteration includes the function that is inlining the
// other functions).
-class InlinedFunctionsInDartFrameIterator : public ValueObject {
+class InlinedFunctionsIterator : public ValueObject {
public:
- explicit InlinedFunctionsInDartFrameIterator(StackFrame* frame);
- RawFunction* GetNextFunction(uword* pc);
+ explicit InlinedFunctionsIterator(StackFrame* frame);
+ RawFunction* GetNextFunctionAndCode(uword* pc, Code* code);
private:
intptr_t index_;
+ Code& code_;
+ DeoptInfo& deopt_info_;
+ Function& function_;
+ uword pc_;
GrowableArray<DeoptInstr*> deopt_instructions_;
Array& object_table_;
- DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsInDartFrameIterator);
+ DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator);
};
} // namespace dart
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/stack_frame.cc » ('j') | runtime/vm/stack_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698