Index: third_party/WebKit/Source/core/dom/Node.h |
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h |
index ffd5a7ccc0ecd341e72017baf07c44a0111a42fe..f588782d512184bfd6a1ae0ad40a6f6ad47983cb 100644 |
--- a/third_party/WebKit/Source/core/dom/Node.h |
+++ b/third_party/WebKit/Source/core/dom/Node.h |
@@ -184,7 +184,10 @@ public: |
static void* allocateObject(size_t size, bool isEager) |
{ |
ThreadState* state = ThreadStateFor<ThreadingTrait<Node>::Affinity>::state(); |
- return Heap::allocateOnHeapIndex(state, size, isEager ? BlinkGC::EagerSweepHeapIndex : BlinkGC::NodeHeapIndex, GCInfoTrait<EventTarget>::index()); |
+ Address address = Heap::allocateOnHeapIndex(state, size, isEager ? BlinkGC::EagerSweepHeapIndex : BlinkGC::NodeHeapIndex, GCInfoTrait<EventTarget>::index()); |
+ const char* typeName = WTF_HEAP_PROFILER_TYPE_NAME(Node); |
+ HeapAllocHooks::allocationHookIfEnabled(address, size, typeName); |
+ return address; |
} |
#else // !ENABLE(OILPAN) |
// All Nodes are placed in their own heap partition for security. |