Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: runtime/vm/virtual_memory.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/verifier.cc ('k') | runtime/vm/virtual_memory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « runtime/vm/verifier.cc ('k') | runtime/vm/virtual_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698