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

Unified Diff: runtime/vm/debugger.h

Issue 27226004: Allow access to context variables in optimized/inlined frames. (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 | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.h
===================================================================
--- runtime/vm/debugger.h (revision 28666)
+++ runtime/vm/debugger.h (working copy)
@@ -123,7 +123,8 @@
// on the call stack.
class ActivationFrame : public ZoneAllocated {
public:
- ActivationFrame(uword pc, uword fp, uword sp, const Code& code);
+ ActivationFrame(uword pc, uword fp, uword sp, const Code& code,
+ const Array& deopt_frame, intptr_t deopt_frame_offset);
uword pc() const { return pc_; }
uword fp() const { return fp_; }
@@ -144,10 +145,6 @@
intptr_t TokenPos();
intptr_t LineNumber();
void SetContext(const Context& ctx) { ctx_ = ctx.raw(); }
- void SetDeoptFrame(const Array& deopt_frame, intptr_t deopt_frame_offset) {
- deopt_frame_ = deopt_frame.raw();
- deopt_frame_offset_ = deopt_frame_offset;
- }
// Returns true if this frame is for a function that is visible
// to the user and can be debugged.
@@ -202,8 +199,8 @@
intptr_t context_level_;
// Some frames are deoptimized into a side array in order to inspect them.
- Array& deopt_frame_;
- intptr_t deopt_frame_offset_;
+ const Array& deopt_frame_;
+ const intptr_t deopt_frame_offset_;
bool vars_initialized_;
LocalVarDescriptors& var_descriptors_;
@@ -381,7 +378,8 @@
uword pc,
StackFrame* frame,
const Code& code,
- bool optimized,
+ const Array& deopt_frame,
+ intptr_t deopt_frame_offset,
ActivationFrame* callee_activation,
const Context& entry_ctx);
static RawArray* DeoptimizeToArray(Isolate* isolate,
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698