| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 RawPtrWillBeMember<void*> m_willbeMember[4]; | 103 RawPtrWillBeMember<void*> m_willbeMember[4]; |
| 104 void* m_pointer; | 104 void* m_pointer; |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 static_assert(sizeof(Node) <= sizeof(SameSizeAsNode), "Node should stay small"); | 107 static_assert(sizeof(Node) <= sizeof(SameSizeAsNode), "Node should stay small"); |
| 108 | 108 |
| 109 #if !ENABLE(OILPAN) | 109 #if !ENABLE(OILPAN) |
| 110 void* Node::operator new(size_t size) | 110 void* Node::operator new(size_t size) |
| 111 { | 111 { |
| 112 ASSERT(isMainThread()); | 112 ASSERT(isMainThread()); |
| 113 return partitionAlloc(WTF::Partitions::nodePartition(), size, WTF_HEAP_PROFI
LER_TYPE_NAME(Node)); | 113 return partitionAlloc(WTF::Partitions::nodePartition(), size, "blink::Node")
; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void Node::operator delete(void* ptr) | 116 void Node::operator delete(void* ptr) |
| 117 { | 117 { |
| 118 ASSERT(isMainThread()); | 118 ASSERT(isMainThread()); |
| 119 partitionFree(ptr); | 119 partitionFree(ptr); |
| 120 } | 120 } |
| 121 #endif | 121 #endif |
| 122 | 122 |
| 123 #if DUMP_NODE_STATISTICS | 123 #if DUMP_NODE_STATISTICS |
| (...skipping 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2369 | 2369 |
| 2370 void showNodePath(const blink::Node* node) | 2370 void showNodePath(const blink::Node* node) |
| 2371 { | 2371 { |
| 2372 if (node) | 2372 if (node) |
| 2373 node->showNodePathForThis(); | 2373 node->showNodePathForThis(); |
| 2374 else | 2374 else |
| 2375 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2375 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
| 2376 } | 2376 } |
| 2377 | 2377 |
| 2378 #endif | 2378 #endif |
| OLD | NEW |