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

Unified Diff: runtime/vm/virtual_memory_fuchsia.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months 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_android.cc ('k') | runtime/vm/virtual_memory_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/virtual_memory_fuchsia.cc
diff --git a/runtime/vm/virtual_memory_fuchsia.cc b/runtime/vm/virtual_memory_fuchsia.cc
index db6504f242015338191789a584f482dc88cc6e1b..6688c543122fedafe79ecdf6ad8e15e0f09dc601 100644
--- a/runtime/vm/virtual_memory_fuchsia.cc
+++ b/runtime/vm/virtual_memory_fuchsia.cc
@@ -90,7 +90,6 @@ void VmarList::AddVmar(mx_handle_t vmar, uword addr, intptr_t size) {
vmar_array_.InsertAt(idx, new_mapping);
}
-
intptr_t VmarList::LookupVmarIndexLocked(uword addr) {
// Binary search for the vmar containing addr.
intptr_t imin = 0;
@@ -109,7 +108,6 @@ intptr_t VmarList::LookupVmarIndexLocked(uword addr) {
return -1;
}
-
mx_handle_t VmarList::LookupVmar(uword addr) {
MutexLocker ml(vmar_array_lock_);
LOG_INFO("LookupVmar(%lx)\n", addr);
@@ -122,7 +120,6 @@ mx_handle_t VmarList::LookupVmar(uword addr) {
return vmar_array_[idx].vmar;
}
-
void VmarList::RemoveVmar(uword addr) {
MutexLocker ml(vmar_array_lock_);
LOG_INFO("RemoveVmar(%lx)\n", addr);
@@ -143,15 +140,12 @@ void VmarList::RemoveVmar(uword addr) {
vmar_array_.RemoveLast();
}
-
uword VirtualMemory::page_size_ = 0;
-
void VirtualMemory::InitOnce() {
page_size_ = getpagesize();
}
-
VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
ASSERT(Utils::IsAligned(size, page_size_));
mx_handle_t vmar = MX_HANDLE_INVALID;
@@ -171,7 +165,6 @@ VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
return new VirtualMemory(region, vmar);
}
-
VirtualMemory::~VirtualMemory() {
if (vm_owns_region()) {
mx_handle_t vmar = static_cast<mx_handle_t>(handle());
@@ -187,7 +180,6 @@ VirtualMemory::~VirtualMemory() {
}
}
-
bool VirtualMemory::FreeSubSegment(int32_t handle,
void* address,
intptr_t size) {
@@ -201,7 +193,6 @@ bool VirtualMemory::FreeSubSegment(int32_t handle,
return true;
}
-
bool VirtualMemory::Commit(uword addr,
intptr_t size,
bool executable,
@@ -245,7 +236,6 @@ bool VirtualMemory::Commit(uword addr,
return true;
}
-
bool VirtualMemory::Protect(void* address, intptr_t size, Protection mode) {
ASSERT(Thread::Current()->IsMutatorThread() ||
Isolate::Current()->mutator_thread()->IsAtSafepoint());
« no previous file with comments | « runtime/vm/virtual_memory_android.cc ('k') | runtime/vm/virtual_memory_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698