| Index: third_party/WebKit/Source/wtf/Allocator.h
|
| diff --git a/third_party/WebKit/Source/wtf/Allocator.h b/third_party/WebKit/Source/wtf/Allocator.h
|
| index c87ccaafdf3aa60b4e3b462b92382dede7de72c9..5aacf776cee91fdc08040ce0a390330840d003ab 100644
|
| --- a/third_party/WebKit/Source/wtf/Allocator.h
|
| +++ b/third_party/WebKit/Source/wtf/Allocator.h
|
| @@ -118,13 +118,21 @@ namespace WTF {
|
| \
|
| void operator delete[](void* p) { ::WTF::Partitions::fastFree(p); } \
|
| void* operator new(size_t, NotNullTag, void* location) { \
|
| - ASSERT(location); \
|
| + DCHECK(location); \
|
| return location; \
|
| } \
|
| \
|
| private: \
|
| typedef int __thisIsHereToForceASemicolonAfterThisMacro
|
|
|
| +// In official builds, do not include type info string literals to avoid
|
| +// bloating the binary.
|
| +#if defined(OFFICIAL_BUILD)
|
| +#define WTF_HEAP_PROFILER_TYPE_NAME(T) nullptr
|
| +#else
|
| +#define WTF_HEAP_PROFILER_TYPE_NAME(T) ::WTF::getStringWithTypeName<T>()
|
| +#endif
|
| +
|
| // Both of these macros enable fast malloc and provide type info to the heap
|
| // profiler. The regular macro does not provide type info in official builds,
|
| // to avoid bloating the binary with type name strings. The |WITH_TYPE_NAME|
|
|
|