Index: runtime/vm/virtual_memory.h |
diff --git a/runtime/vm/virtual_memory.h b/runtime/vm/virtual_memory.h |
index 8eefd30342d8a37348ba9cd2d860979d26336897..a26b8ce74a878db05e83d7ddf2d37d2715bf2b37 100644 |
--- a/runtime/vm/virtual_memory.h |
+++ b/runtime/vm/virtual_memory.h |
@@ -32,9 +32,7 @@ class VirtualMemory { |
static void InitOnce(); |
- bool Contains(uword addr) const { |
- return region_.Contains(addr); |
- } |
+ bool Contains(uword addr) const { return region_.Contains(addr); } |
// Commits the virtual memory area, which is guaranteed to be zeroed. Returns |
// true on success and false on failure (e.g., out-of-memory). |
@@ -44,15 +42,11 @@ class VirtualMemory { |
// Changes the protection of the virtual memory area. |
static bool Protect(void* address, intptr_t size, Protection mode); |
- bool Protect(Protection mode) { |
- return Protect(address(), size(), mode); |
- } |
+ bool Protect(Protection mode) { return Protect(address(), size(), mode); } |
// Reserves a virtual memory segment with size. If a segment of the requested |
// size cannot be allocated NULL is returned. |
- static VirtualMemory* Reserve(intptr_t size) { |
- return ReserveInternal(size); |
- } |
+ static VirtualMemory* Reserve(intptr_t size) { return ReserveInternal(size); } |
static intptr_t PageSize() { |
ASSERT(page_size_ != 0); |
@@ -83,11 +77,11 @@ class VirtualMemory { |
// This constructor is only used internally when reserving new virtual spaces. |
// It does not reserve any virtual address space on its own. |
- explicit VirtualMemory(const MemoryRegion& region, int32_t handle = 0) : |
- region_(region.pointer(), region.size()), |
- reserved_size_(region.size()), |
- handle_(handle), |
- embedder_allocated_(false) { } |
+ explicit VirtualMemory(const MemoryRegion& region, int32_t handle = 0) |
+ : region_(region.pointer(), region.size()), |
+ reserved_size_(region.size()), |
+ handle_(handle), |
+ embedder_allocated_(false) {} |
MemoryRegion region_; |