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

Unified Diff: runtime/vm/virtual_memory_android.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.cc ('k') | runtime/vm/virtual_memory_fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/virtual_memory_android.cc
diff --git a/runtime/vm/virtual_memory_android.cc b/runtime/vm/virtual_memory_android.cc
index 16aa8348d264d60acadd6577b117ed48c89cfad7..7406d22d438288b728efce07bb5482b76e61daff 100644
--- a/runtime/vm/virtual_memory_android.cc
+++ b/runtime/vm/virtual_memory_android.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) {
// TODO(4408): use ashmem instead of anonymous memory.
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.cc ('k') | runtime/vm/virtual_memory_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698