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

Unified Diff: third_party/WebKit/Source/wtf/PartitionAllocator.cpp

Issue 1474213002: [PartitionAlloc] Annotate common Blink types for heap profiling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ctti
Patch Set: Remove redundancy from macro Created 5 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
Index: third_party/WebKit/Source/wtf/PartitionAllocator.cpp
diff --git a/third_party/WebKit/Source/wtf/PartitionAllocator.cpp b/third_party/WebKit/Source/wtf/PartitionAllocator.cpp
index 1c1c39396a4f03a0a5cf1ed8cf730ddebf182c1b..16671b96f2ae59ce8578352529970aee5d870ba8 100644
--- a/third_party/WebKit/Source/wtf/PartitionAllocator.cpp
+++ b/third_party/WebKit/Source/wtf/PartitionAllocator.cpp
@@ -51,4 +51,16 @@ void PartitionAllocator::freeHashTableBacking(void* address)
Partitions::bufferFree(address);
}
+template <>
+char* PartitionAllocator::allocateVectorBacking<char>(size_t size)
+{
+ return reinterpret_cast<char*>(allocateBacking(size, "char"));
+}
+
+template <>
+char* PartitionAllocator::allocateExpandedVectorBacking<char>(size_t size)
+{
+ return reinterpret_cast<char*>(allocateBacking(size, "char"));
+}
+
} // namespace WTF

Powered by Google App Engine
This is Rietveld 408576698