Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index 9868346f1e297e8ec82300cc4caa3d9858616155..17406eae2fbd2c8fbaae71abea9d7da5310f2193 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -1522,7 +1522,7 @@ DART_EXPORT Dart_Handle Dart_CreateSnapshot( |
isolate->heap()->CollectAllGarbage(); |
#if defined(DEBUG) |
FunctionVisitor check_canonical(isolate); |
- isolate->heap()->VisitObjects(&check_canonical); |
+ isolate->heap()->IterateObjects(&check_canonical); |
#endif // #if defined(DEBUG). |
// Since this is only a snapshot the root library should not be set. |