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

Unified Diff: runtime/vm/object.h

Issue 240213004: Fixes a problem with the recovery of contexts in the debugger at closure calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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/vm/debugger.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 5ba48aa5d6e4d773bd883723589c4b1295b94ec4..5b919c5959064fe868420e5854f8edcf55811c24 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3286,6 +3286,9 @@ class Code : public Object {
StorePointer(&raw_ptr()->exception_handlers_, handlers.raw());
}
+ // TODO(turnidge): Consider dropping this function and making
+ // everybody use owner(). Currently this function is misused - even
+ // while generating the snapshot.
RawFunction* function() const {
return reinterpret_cast<RawFunction*>(raw_ptr()->owner_);
}
@@ -3457,6 +3460,8 @@ class Context : public Object {
}
inline void SetAt(intptr_t context_index, const Instance& value) const;
+ void Dump(int indent = 0) const;
+
static const intptr_t kBytesPerElement = kWordSize;
static const intptr_t kMaxElements = kSmiMax / kBytesPerElement;
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698