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

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

Issue 1402103004: Oilpan: Factor out GC-related enum definitions to BlinkGC.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Override operator new to allocate Node subtype objects onto 171 // Override operator new to allocate Node subtype objects onto
172 // a dedicated heap. 172 // a dedicated heap.
173 GC_PLUGIN_IGNORE("crbug.com/443854") 173 GC_PLUGIN_IGNORE("crbug.com/443854")
174 void* operator new(size_t size) 174 void* operator new(size_t size)
175 { 175 {
176 return allocateObject(size, false); 176 return allocateObject(size, false);
177 } 177 }
178 static void* allocateObject(size_t size, bool isEager) 178 static void* allocateObject(size_t size, bool isEager)
179 { 179 {
180 ThreadState* state = ThreadStateFor<ThreadingTrait<Node>::Affinity>::sta te(); 180 ThreadState* state = ThreadStateFor<ThreadingTrait<Node>::Affinity>::sta te();
181 return Heap::allocateOnHeapIndex(state, size, isEager ? ThreadState::Eag erSweepHeapIndex : ThreadState::NodeHeapIndex, GCInfoTrait<EventTarget>::index() ); 181 return Heap::allocateOnHeapIndex(state, size, isEager ? BlinkGC::EagerSw eepHeapIndex : BlinkGC::NodeHeapIndex, GCInfoTrait<EventTarget>::index());
182 } 182 }
183 #else // !ENABLE(OILPAN) 183 #else // !ENABLE(OILPAN)
184 // All Nodes are placed in their own heap partition for security. 184 // All Nodes are placed in their own heap partition for security.
185 // See http://crbug.com/246860 for detail. 185 // See http://crbug.com/246860 for detail.
186 void* operator new(size_t); 186 void* operator new(size_t);
187 void operator delete(void*); 187 void operator delete(void*);
188 #endif 188 #endif
189 189
190 static void dumpStatistics(); 190 static void dumpStatistics();
191 191
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 } // namespace blink 900 } // namespace blink
901 901
902 #ifndef NDEBUG 902 #ifndef NDEBUG
903 // Outside the WebCore namespace for ease of invocation from gdb. 903 // Outside the WebCore namespace for ease of invocation from gdb.
904 void showNode(const blink::Node*); 904 void showNode(const blink::Node*);
905 void showTree(const blink::Node*); 905 void showTree(const blink::Node*);
906 void showNodePath(const blink::Node*); 906 void showNodePath(const blink::Node*);
907 #endif 907 #endif
908 908
909 #endif // Node_h 909 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/CrossThreadTaskTest.cpp ('k') | third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698