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

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 2750003002: Fixed broken type names in memory-infra tracing. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValue.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
7 * (http://www.torchmobile.com/) 7 * (http://www.torchmobile.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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 kDocumentPositionImplementationSpecific = 0x20, 157 kDocumentPositionImplementationSpecific = 0x20,
158 }; 158 };
159 159
160 // Override operator new to allocate Node subtype objects onto 160 // Override operator new to allocate Node subtype objects onto
161 // a dedicated heap. 161 // a dedicated heap.
162 GC_PLUGIN_IGNORE("crbug.com/443854") 162 GC_PLUGIN_IGNORE("crbug.com/443854")
163 void* operator new(size_t size) { return allocateObject(size, false); } 163 void* operator new(size_t size) { return allocateObject(size, false); }
164 static void* allocateObject(size_t size, bool isEager) { 164 static void* allocateObject(size_t size, bool isEager) {
165 ThreadState* state = 165 ThreadState* state =
166 ThreadStateFor<ThreadingTrait<Node>::Affinity>::state(); 166 ThreadStateFor<ThreadingTrait<Node>::Affinity>::state();
167 const char typeName[] = "blink::Node"; 167 const char* typeName = "blink::Node";
168 return ThreadHeap::allocateOnArenaIndex( 168 return ThreadHeap::allocateOnArenaIndex(
169 state, size, 169 state, size,
170 isEager ? BlinkGC::EagerSweepArenaIndex : BlinkGC::NodeArenaIndex, 170 isEager ? BlinkGC::EagerSweepArenaIndex : BlinkGC::NodeArenaIndex,
171 GCInfoTrait<EventTarget>::index(), typeName); 171 GCInfoTrait<EventTarget>::index(), typeName);
172 } 172 }
173 173
174 static void dumpStatistics(); 174 static void dumpStatistics();
175 175
176 ~Node() override; 176 ~Node() override;
177 177
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 } // namespace blink 1012 } // namespace blink
1013 1013
1014 #ifndef NDEBUG 1014 #ifndef NDEBUG
1015 // Outside the WebCore namespace for ease of invocation from gdb. 1015 // Outside the WebCore namespace for ease of invocation from gdb.
1016 void showNode(const blink::Node*); 1016 void showNode(const blink::Node*);
1017 void showTree(const blink::Node*); 1017 void showTree(const blink::Node*);
1018 void showNodePath(const blink::Node*); 1018 void showNodePath(const blink::Node*);
1019 #endif 1019 #endif
1020 1020
1021 #endif // Node_h 1021 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698