Index: runtime/vm/object_graph.cc |
diff --git a/runtime/vm/object_graph.cc b/runtime/vm/object_graph.cc |
index 283143b74e9f3dc7653084381358fac9a0f2042c..25fc397e9912280d3afc5da139da4c4777614c0b 100644 |
--- a/runtime/vm/object_graph.cc |
+++ b/runtime/vm/object_graph.cc |
@@ -37,8 +37,8 @@ class ObjectGraph::Stack : public ObjectPointerVisitor { |
if ((*current)->IsHeapObject() && !(*current)->IsMarked()) { |
if (!include_vm_objects_) { |
intptr_t cid = (*current)->GetClassId(); |
- if ((cid < kInstanceCid) && (cid != kContextCid) && |
- (cid != kFieldCid)) { |
+ if (((cid < kInstanceCid) || (cid == kTypeArgumentsCid)) && |
+ (cid != kContextCid) && (cid != kFieldCid)) { |
continue; |
} |
} |
@@ -535,7 +535,8 @@ class WritePointerVisitor : public ObjectPointerVisitor { |
// we'll need to encode which fields were omitted here. |
continue; |
} |
- if (only_instances_ && (object->GetClassId() < kInstanceCid)) { |
+ if (only_instances_ && ((object->GetClassId() < kInstanceCid) || |
+ (object->GetClassId() == kTypeArgumentsCid))) { |
continue; |
} |
WritePtr(object, stream_); |