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

Unified Diff: runtime/vm/object_graph.cc

Issue 2947673002: Consider Contexts to be user objects for purposes of Obervatory's dominator analysis. (Closed)
Patch Set: Created 3 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_graph.cc
diff --git a/runtime/vm/object_graph.cc b/runtime/vm/object_graph.cc
index cd9fdeef36e5b67626e3bdb59d89f3f2fd07f9b1..ae3678abf7b67dd4e21f3eb0af31c10f051fdb37 100644
--- a/runtime/vm/object_graph.cc
+++ b/runtime/vm/object_graph.cc
@@ -550,7 +550,8 @@ class WriteGraphVisitor : public ObjectGraph::Visitor {
REUSABLE_OBJECT_HANDLESCOPE(thread);
Object& obj = thread->ObjectHandle();
obj = raw_obj;
- if ((roots_ == ObjectGraph::kVM) || obj.IsField() || obj.IsInstance()) {
+ if ((roots_ == ObjectGraph::kVM) || obj.IsField() || obj.IsInstance() ||
+ obj.IsContext()) {
// Each object is a header + a zero-terminated list of its neighbors.
WriteHeader(raw_obj, raw_obj->Size(), obj.GetClassId(), stream_);
raw_obj->VisitPointers(&ptr_writer_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698