Index: runtime/vm/isolate.cc |
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc |
index e24788127f836c0e5b54734a31fb736c453ce582..0deebd55913afc2b53151113b9c9377fbf2437c0 100644 |
--- a/runtime/vm/isolate.cc |
+++ b/runtime/vm/isolate.cc |
@@ -470,6 +470,9 @@ void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor, |
// Visit objects in the class table. |
class_table()->VisitObjectPointers(visitor); |
+ // Visit objects in the megamorphic cache. |
+ megamorphic_cache_table()->VisitObjectPointers(visitor); |
+ |
// Visit objects in per isolate stubs. |
StubCode::VisitObjectPointers(visitor); |