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

Unified Diff: third_party/WebKit/Source/platform/heap/PageMemory.cpp

Issue 2614883006: Change PartitionAlloc to Chromium naming style. (Closed)
Patch Set: Rebase and fix some names. Created 3 years, 11 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
Index: third_party/WebKit/Source/platform/heap/PageMemory.cpp
diff --git a/third_party/WebKit/Source/platform/heap/PageMemory.cpp b/third_party/WebKit/Source/platform/heap/PageMemory.cpp
index d99f9bbd949a3efc8cbe225900994f8ba971f659..967c764c89762aca8e4bd97c018c80f0d3c07304 100644
--- a/third_party/WebKit/Source/platform/heap/PageMemory.cpp
+++ b/third_party/WebKit/Source/platform/heap/PageMemory.cpp
@@ -12,18 +12,18 @@
namespace blink {
void MemoryRegion::release() {
- WTF::freePages(m_base, m_size);
+ WTF::FreePages(m_base, m_size);
}
bool MemoryRegion::commit() {
- WTF::recommitSystemPages(m_base, m_size);
- return WTF::setSystemPagesAccessible(m_base, m_size);
+ WTF::RecommitSystemPages(m_base, m_size);
+ return WTF::SetSystemPagesAccessible(m_base, m_size);
}
void MemoryRegion::decommit() {
ASAN_UNPOISON_MEMORY_REGION(m_base, m_size);
- WTF::decommitSystemPages(m_base, m_size);
- WTF::setSystemPagesInaccessible(m_base, m_size);
+ WTF::DecommitSystemPages(m_base, m_size);
+ WTF::SetSystemPagesInaccessible(m_base, m_size);
}
PageMemoryRegion::PageMemoryRegion(Address base,
@@ -65,7 +65,7 @@ PageMemoryRegion* PageMemoryRegion::allocate(size_t size,
size = (size + WTF::kPageAllocationGranularityOffsetMask) &
WTF::kPageAllocationGranularityBaseMask;
Address base = static_cast<Address>(
- WTF::allocPages(nullptr, size, blinkPageSize, WTF::PageInaccessible));
+ WTF::AllocPages(nullptr, size, blinkPageSize, WTF::PageInaccessible));
if (!base)
blinkGCOutOfMemory();
return new PageMemoryRegion(base, size, numPages, regionTree);
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapPage.cpp ('k') | third_party/WebKit/Source/platform/text/BidiCharacterRun.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698