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

Unified Diff: third_party/WebKit/Source/wtf/allocator/Partitions.h

Issue 2494823002: V8ScriptValueSerializer: Use PartitionAlloc for the buffer, and avoid copying it into a String. (Closed)
Patch Set: initialize SerializedScriptValue::m_dataBufferSize 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 | « third_party/WebKit/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/allocator/Partitions.h
diff --git a/third_party/WebKit/Source/wtf/allocator/Partitions.h b/third_party/WebKit/Source/wtf/allocator/Partitions.h
index 506bb73a7700419163e7e4729d12d061297662bc..8fd74a3f73dc8bc2b0495b9a52a4108cdeff02fc 100644
--- a/third_party/WebKit/Source/wtf/allocator/Partitions.h
+++ b/third_party/WebKit/Source/wtf/allocator/Partitions.h
@@ -90,6 +90,11 @@ class WTF_EXPORT Partitions {
ALWAYS_INLINE static void* bufferMalloc(size_t n, const char* typeName) {
return partitionAllocGeneric(bufferPartition(), n, typeName);
}
+ ALWAYS_INLINE static void* bufferRealloc(void* p,
+ size_t n,
+ const char* typeName) {
+ return partitionReallocGeneric(bufferPartition(), p, n, typeName);
+ }
ALWAYS_INLINE static void bufferFree(void* p) {
partitionFreeGeneric(bufferPartition(), p);
}
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698