Chromium Code Reviews| Index: third_party/WebKit/Source/platform/heap/HeapAllocator.h |
| diff --git a/third_party/WebKit/Source/platform/heap/HeapAllocator.h b/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
| index c5bf93760a821ef77cf19528bfcdca261c01b98e..1824121195fe54a5fd22ed6a1302692abf636a44 100644 |
| --- a/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
| +++ b/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
| @@ -62,7 +62,8 @@ public: |
| { |
| size_t gcInfoIndex = GCInfoTrait<HeapVectorBacking<T, VectorTraits<T>>>::index(); |
| ThreadState* state = ThreadStateFor<ThreadingTrait<T>::Affinity>::state(); |
| - return reinterpret_cast<T*>(Heap::allocateOnHeapIndex(state, size, BlinkGC::InlineVectorHeapIndex, gcInfoIndex)); |
| + const char* typeName = WTF_HEAP_PROFILER_TYPE_NAME(T); |
|
sof
2016/03/03 08:37:30
That this is HeapVector<> backing store isn't enco
hajimehoshi
2016/03/03 10:12:31
I tried to pass HeapVectorBacking<T, VectorTraits<
sof
2016/03/03 12:08:14
"#define COMMA ," or a local 'using/typedef' alias
hajimehoshi
2016/03/04 06:39:14
Thanks. 'using' worked. Done.
|
| + return reinterpret_cast<T*>(Heap::allocateOnHeapIndex(state, size, BlinkGC::InlineVectorHeapIndex, gcInfoIndex, typeName)); |
| } |
| static void freeInlineVectorBacking(void*); |
| static bool expandInlineVectorBacking(void*, size_t); |
| @@ -73,7 +74,8 @@ public: |
| { |
| size_t gcInfoIndex = GCInfoTrait<HeapHashTableBacking<HashTable>>::index(); |
| ThreadState* state = ThreadStateFor<ThreadingTrait<T>::Affinity>::state(); |
| - return reinterpret_cast<T*>(Heap::allocateOnHeapIndex(state, size, BlinkGC::HashTableHeapIndex, gcInfoIndex)); |
| + const char* typeName = WTF_HEAP_PROFILER_TYPE_NAME(T); |
|
sof
2016/03/03 08:37:30
Ditto, but for HeapHashTable<> backing store.
hajimehoshi
2016/03/03 10:12:31
Done.
|
| + return reinterpret_cast<T*>(Heap::allocateOnHeapIndex(state, size, BlinkGC::HashTableHeapIndex, gcInfoIndex, typeName)); |
| } |
| template <typename T, typename HashTable> |
| static T* allocateZeroedHashTableBacking(size_t size) |