Extend compiler/optimizing/stack_map_test.cc.

Change-Id: I6f8c3186683210a5162cbf4f15361a4c494495c9
diff --git a/runtime/stack_map.h b/runtime/stack_map.h
index fd22361..93f89ef 100644
--- a/runtime/stack_map.h
+++ b/runtime/stack_map.h
@@ -130,13 +130,14 @@
     return sizeof(LocationKind) + sizeof(int32_t);
   }
 
- private:
+  size_t Size() const {
+    return region_.size();
+  }
+
   static constexpr int kFixedSize = 0;
 
+ private:
   MemoryRegion region_;
-
-  friend class CodeInfo;
-  friend class StackMapStream;
 };
 
 /**