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

Unified Diff: runtime/vm/virtual_memory_macos.cc

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/virtual_memory_linux.cc ('k') | runtime/vm/virtual_memory_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/virtual_memory_macos.cc
diff --git a/runtime/vm/virtual_memory_macos.cc b/runtime/vm/virtual_memory_macos.cc
index 484ad7876616fda5d25850acc08d68711fe162d0..6f42b558e9a42c5bf3e2629b76ff80e215c42583 100644
--- a/runtime/vm/virtual_memory_macos.cc
+++ b/runtime/vm/virtual_memory_macos.cc
@@ -8,7 +8,7 @@
#include "vm/virtual_memory.h"
#include <sys/mman.h> // NOLINT
-#include <unistd.h> // NOLINT
+#include <unistd.h> // NOLINT
#include "platform/assert.h"
#include "platform/utils.h"
@@ -33,8 +33,7 @@ void VirtualMemory::InitOnce() {
VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
ASSERT((size & (PageSize() - 1)) == 0);
void* address = mmap(NULL, size, PROT_NONE,
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
- -1, 0);
+ MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, -1, 0);
if (address == MAP_FAILED) {
return NULL;
}
@@ -72,8 +71,7 @@ bool VirtualMemory::Commit(uword addr, intptr_t size, bool executable) {
ASSERT(Contains(addr + size) || (addr + size == end()));
int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0);
void* address = mmap(reinterpret_cast<void*>(addr), size, prot,
- MAP_PRIVATE | MAP_ANON | MAP_FIXED,
- -1, 0);
+ MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0);
if (address == MAP_FAILED) {
return false;
}
@@ -106,8 +104,7 @@ bool VirtualMemory::Protect(void* address, intptr_t size, Protection mode) {
break;
}
return (mprotect(reinterpret_cast<void*>(page_address),
- end_address - page_address,
- prot) == 0);
+ end_address - page_address, prot) == 0);
}
} // namespace dart
« no previous file with comments | « runtime/vm/virtual_memory_linux.cc ('k') | runtime/vm/virtual_memory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698