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

Unified Diff: runtime/vm/debugger.h

Issue 12179020: Fix for issues 6080 - pass in the Isolate's top context into the stub for invoking dart code from n… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « runtime/tests/vm/vm.status ('k') | 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 18232)
+++ runtime/vm/debugger.h (working copy)
@@ -119,8 +119,7 @@
// on the call stack.
class ActivationFrame : public ZoneAllocated {
public:
- ActivationFrame(uword pc, uword fp, uword sp,
- const Code& code, const Context& ctx);
+ ActivationFrame(uword pc, uword fp, uword sp, const Code& code);
uword pc() const { return pc_; }
uword fp() const { return fp_; }
@@ -140,6 +139,7 @@
RawLibrary* Library();
intptr_t TokenPos();
intptr_t LineNumber();
+ void SetContext(const Context& ctx) { ctx_ = ctx.raw(); }
// The context level of a frame is the context level at the
// PC/token index of the frame. It determines the depth of the context
@@ -157,7 +157,7 @@
Instance* value);
RawArray* GetLocalVariables();
- RawContext* CallerContext();
+ RawContext* GetSavedContext();
private:
intptr_t PcDescIndex();
@@ -173,7 +173,7 @@
uword sp_;
// The anchor of the context chain for this function.
- const Context& ctx_;
+ Context& ctx_;
const Code& code_;
const Function& function_;
intptr_t token_pos_;
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698