First pass of ImageWriter
Change-Id: I4f189587a2e3cc1c265200b8fa64321b299947eb
diff --git a/src/space.h b/src/space.h
index 3cfa505..7b72bba 100644
--- a/src/space.h
+++ b/src/space.h
@@ -5,6 +5,8 @@
#include "globals.h"
#include "macros.h"
+#include "mem_map.h"
+#include "scoped_ptr.h"
namespace art {
@@ -29,21 +31,21 @@
void Grow(size_t num_bytes);
- byte* GetBase() {
+ byte* GetBase() const {
return base_;
}
- byte* GetLimit() {
+ byte* GetLimit() const {
return limit_;
}
- size_t Size() {
+ size_t Size() const {
return limit_ - base_;
}
size_t AllocationSize(const Object* obj);
- bool IsCondemned() {
+ bool IsCondemned() const {
return true; // TODO
}
@@ -68,6 +70,8 @@
void* mspace_;
+ scoped_ptr<MemMap> mem_map_;
+
byte* base_;
byte* limit_;