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

Unified Diff: vm/debugger.h

Issue 12225031: Minor cleanup of activation frame creation code. Get the code object while iterating the frames as … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 10 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 | vm/debugger.cc » ('j') | vm/debugger.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/debugger.h
===================================================================
--- vm/debugger.h (revision 18152)
+++ vm/debugger.h (working copy)
@@ -119,7 +119,8 @@
// on the call stack.
class ActivationFrame : public ZoneAllocated {
public:
- explicit ActivationFrame(uword pc, uword fp, uword sp, const Context& ctx);
+ ActivationFrame(uword pc, uword fp, uword sp,
+ const Code& code, const Context& ctx);
uword pc() const { return pc_; }
uword fp() const { return fp_; }
@@ -167,9 +168,8 @@
// The anchor of the context chain for this function.
const Context& ctx_;
-
- Function& function_;
- Code& code_;
+ const Code& code_;
+ const Function& function_;
intptr_t token_pos_;
intptr_t pc_desc_index_;
intptr_t line_number_;
« no previous file with comments | « no previous file | vm/debugger.cc » ('j') | vm/debugger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698