Drive the root verification by a root visitor.

The change separates out the traversal of the roots from the
verification of references.  As of this change, the logic benhind
traversing is wholly owned by the visitor.

Change-Id: Idc07755436f5cd18ba010ec24d12b6e22000c56e
diff --git a/vm/alloc/Visit.h b/vm/alloc/Visit.h
index a954c61..488c721 100644
--- a/vm/alloc/Visit.h
+++ b/vm/alloc/Visit.h
@@ -26,9 +26,13 @@
 typedef void Visitor(void *addr, void *arg);
 
 /*
- * Visits an object and applies the callback specified by the visitor
- * to each reference-containing location.
+ * Visits references in an object.
  */
 void dvmVisitObject(Visitor *visitor, Object *obj, void *arg);
 
+/*
+ * Visits references in the root set.
+ */
+void dvmVisitRoots(Visitor *visitor, void *arg);
+
 #endif /* _DALVIK_ALLOC_VISIT */