Index: runtime/vm/virtual_memory.h |
diff --git a/runtime/vm/virtual_memory.h b/runtime/vm/virtual_memory.h |
index 44f34910e891741487816ce99bf05c66b6c6c45b..2970979cb57daf1882835ea8d88f367ee37675c9 100644 |
--- a/runtime/vm/virtual_memory.h |
+++ b/runtime/vm/virtual_memory.h |
@@ -69,6 +69,8 @@ class VirtualMemory { |
// Commit a reserved memory area, so that the memory can be accessed. |
bool Commit(uword addr, intptr_t size, bool is_executable); |
+ bool embedder_allocated() const { return embedder_allocated_; } |
+ |
static VirtualMemory* ForInstructionsSnapshot(void* pointer, uword size); |
private: |
@@ -92,6 +94,9 @@ class VirtualMemory { |
static uword page_size_; |
+ // True for a region provided by the embedder. |
+ bool embedder_allocated_; |
+ |
DISALLOW_IMPLICIT_CONSTRUCTORS(VirtualMemory); |
}; |