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

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

Issue 2128583004: Add a standard placement new operator to WTF_USE_ALLOCATOR. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « third_party/WebKit/Source/wtf/VectorTest.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/PartitionAllocator.h
diff --git a/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h b/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h
index e10e16faa5b98a4ab6ebf537c265cfcc0bc81149..470ed96d2c9b9f369c24dbc46d29bea6ae666b4e 100644
--- a/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h
+++ b/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h
@@ -155,6 +155,7 @@ public: \
ASSERT(location); \
return location; \
} \
+ void* operator new(size_t, void* location) { return location; } \
private: \
typedef int __thisIsHereToForceASemicolonAfterThisMacro
« no previous file with comments | « third_party/WebKit/Source/wtf/VectorTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698