Mark non-image spaces and use write barrier for image spaces.

Don't mark string and class roots that are in the image, alloc space
references will be caught by the write barrier.

Change-Id: Idcf9e4ede3b83556d4f8a01276273726dc6eea46
diff --git a/src/heap_bitmap.h b/src/heap_bitmap.h
index 4b20ee4..f1db795 100644
--- a/src/heap_bitmap.h
+++ b/src/heap_bitmap.h
@@ -82,9 +82,11 @@
 
   bool HasAddress(const void* addr) const;
 
+  void VisitRange(uintptr_t base, uintptr_t max, Callback* visitor, void* arg) const;
+
   void Walk(Callback* callback, void* arg);
 
-  void ScanWalk(uintptr_t base, ScanCallback* thunk, void* arg);
+  void ScanWalk(uintptr_t base, uintptr_t max, ScanCallback* thunk, void* arg);
 
   static void SweepWalk(const HeapBitmap& live,
                         const HeapBitmap& mark,