Changeset 167811 in webkit
- Timestamp:
- Apr 25, 2014 11:15:48 AM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r167797 r167811 1 2014-04-25 Andreas Kling <akling@apple.com> 2 3 Mark some things with WTF_MAKE_FAST_ALLOCATED. 4 <https://webkit.org/b/132198> 5 6 Use FastMalloc for more things. 7 8 Reviewed by Anders Carlsson. 9 10 * builtins/BuiltinExecutables.h: 11 * heap/GCThreadSharedData.h: 12 * inspector/JSConsoleClient.h: 13 * inspector/agents/InspectorAgent.h: 14 * runtime/CodeCache.h: 15 * runtime/JSGlobalObject.h: 16 * runtime/Lookup.cpp: 17 (JSC::HashTable::createTable): 18 (JSC::HashTable::deleteTable): 19 * runtime/WeakGCMap.h: 20 1 21 2014-04-25 Antoine Quint <graouts@webkit.org> 2 22 -
trunk/Source/JavaScriptCore/builtins/BuiltinExecutables.h
r163960 r167811 39 39 40 40 class BuiltinExecutables { 41 WTF_MAKE_FAST_ALLOCATED; 41 42 public: 42 43 static PassOwnPtr<BuiltinExecutables> create(VM& vm) -
trunk/Source/JavaScriptCore/heap/GCThreadSharedData.h
r163752 r167811 52 52 53 53 class GCThreadSharedData { 54 WTF_MAKE_FAST_ALLOCATED; 54 55 public: 55 56 GCThreadSharedData(VM*); -
trunk/Source/JavaScriptCore/inspector/JSConsoleClient.h
r167530 r167811 35 35 36 36 class JSConsoleClient final : public JSC::ConsoleClient { 37 WTF_MAKE_FAST_ALLOCATED; 37 38 public: 38 39 explicit JSConsoleClient(InspectorConsoleAgent*, InspectorProfilerAgent*); -
trunk/Source/JavaScriptCore/inspector/agents/InspectorAgent.h
r165676 r167811 50 50 class JS_EXPORT_PRIVATE InspectorAgent final : public InspectorAgentBase, public InspectorInspectorBackendDispatcherHandler { 51 51 WTF_MAKE_NONCOPYABLE(InspectorAgent); 52 WTF_MAKE_FAST_ALLOCATED; 52 53 public: 53 54 InspectorAgent(); -
trunk/Source/JavaScriptCore/runtime/CodeCache.h
r160344 r167811 236 236 // Caches top-level code such as <script>, eval(), new Function, and JSEvaluateScript(). 237 237 class CodeCache { 238 WTF_MAKE_FAST_ALLOCATED; 238 239 public: 239 240 static PassOwnPtr<CodeCache> create() { return adoptPtr(new CodeCache); } -
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h
r166415 r167811 142 142 143 143 struct JSGlobalObjectRareData { 144 WTF_MAKE_FAST_ALLOCATED; 145 public: 144 146 JSGlobalObjectRareData() 145 147 : profileGroup(0) -
trunk/Source/JavaScriptCore/runtime/Lookup.cpp
r165603 r167811 30 30 { 31 31 ASSERT(!keys); 32 keys = new StringImpl*[numberOfValues];32 keys = static_cast<StringImpl**>(fastMalloc(sizeof(StringImpl*) * numberOfValues)); 33 33 34 34 for (int i = 0; i < numberOfValues; ++i) { … … 47 47 keys[i]->deref(); 48 48 } 49 delete [] keys;49 fastFree(keys); 50 50 keys = nullptr; 51 51 } -
trunk/Source/JavaScriptCore/runtime/WeakGCMap.h
r167577 r167811 38 38 typename KeyTraitsArg = HashTraits<KeyArg>> 39 39 class WeakGCMap { 40 WTF_MAKE_FAST_ALLOCATED; 40 41 typedef Weak<ValueArg> ValueType; 41 42 typedef HashMap<KeyArg, ValueType, HashArg, KeyTraitsArg> HashMapType; -
trunk/Source/WebCore/ChangeLog
r167810 r167811 1 2014-04-25 Andreas Kling <akling@apple.com> 2 3 Mark some things with WTF_MAKE_FAST_ALLOCATED. 4 <https://webkit.org/b/132198> 5 6 Use FastMalloc for more things. 7 8 Reviewed by Anders Carlsson. 9 10 * bindings/js/ScriptController.h: 11 * dom/DocumentOrderedMap.h: 12 * inspector/InspectorCSSAgent.h: 13 * inspector/InspectorDOMAgent.h: 14 * inspector/InspectorDOMDebuggerAgent.h: 15 * inspector/InspectorDOMStorageAgent.h: 16 * inspector/InspectorDatabaseAgent.h: 17 * inspector/InspectorLayerTreeAgent.h: 18 * inspector/InspectorPageAgent.h: 19 * inspector/InspectorResourceAgent.h: 20 * inspector/InspectorTimelineAgent.h: 21 * inspector/InspectorWorkerAgent.h: 22 * inspector/PageRuntimeAgent.h: 23 * loader/HistoryController.h: 24 * page/DeviceClient.h: 25 * page/DeviceController.h: 26 * page/EventHandler.h: 27 * page/Page.h: 28 * page/scrolling/ScrollingStateNode.h: 29 * platform/graphics/FontGenericFamilies.h: 30 * platform/graphics/FontPlatformData.h: 31 1 32 2014-04-25 Radu Stavila <stavila@adobe.com> 2 33 -
trunk/Source/WebCore/bindings/js/ScriptController.h
r166864 r167811 70 70 71 71 class ScriptController { 72 WTF_MAKE_FAST_ALLOCATED; 73 72 74 friend class ScriptCachedFrameData; 73 75 typedef HashMap<RefPtr<DOMWrapperWorld>, JSC::Strong<JSDOMWindowShell>> ShellMap; -
trunk/Source/WebCore/dom/DocumentOrderedMap.h
r161572 r167811 46 46 47 47 class DocumentOrderedMap { 48 WTF_MAKE_FAST_ALLOCATED; 48 49 public: 49 50 void add(const AtomicStringImpl&, Element&, const TreeScope&); -
trunk/Source/WebCore/inspector/InspectorCSSAgent.h
r167571 r167811 72 72 , public InspectorStyleSheet::Listener { 73 73 WTF_MAKE_NONCOPYABLE(InspectorCSSAgent); 74 WTF_MAKE_FAST_ALLOCATED; 74 75 public: 75 76 class InlineStyleOverrideScope { -
trunk/Source/WebCore/inspector/InspectorDOMAgent.h
r166703 r167811 96 96 class InspectorDOMAgent : public InspectorAgentBase, public Inspector::InspectorDOMBackendDispatcherHandler { 97 97 WTF_MAKE_NONCOPYABLE(InspectorDOMAgent); 98 WTF_MAKE_FAST_ALLOCATED; 98 99 public: 99 100 struct DOMListener { -
trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h
r164245 r167811 56 56 class InspectorDOMDebuggerAgent : public InspectorAgentBase, public Inspector::InspectorDebuggerAgent::Listener, public Inspector::InspectorDOMDebuggerBackendDispatcherHandler { 57 57 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent); 58 WTF_MAKE_FAST_ALLOCATED; 58 59 public: 59 60 InspectorDOMDebuggerAgent(InstrumentingAgents*, InspectorDOMAgent*, Inspector::InspectorDebuggerAgent*); -
trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.h
r165676 r167811 53 53 54 54 class InspectorDOMStorageAgent : public InspectorAgentBase, public Inspector::InspectorDOMStorageBackendDispatcherHandler { 55 WTF_MAKE_FAST_ALLOCATED; 55 56 public: 56 57 InspectorDOMStorageAgent(InstrumentingAgents*, InspectorPageAgent*); -
trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h
r165676 r167811 51 51 52 52 class InspectorDatabaseAgent : public InspectorAgentBase, public Inspector::InspectorDatabaseBackendDispatcherHandler { 53 WTF_MAKE_FAST_ALLOCATED; 53 54 public: 54 55 explicit InspectorDatabaseAgent(InstrumentingAgents*); -
trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h
r165676 r167811 48 48 49 49 class InspectorLayerTreeAgent : public InspectorAgentBase, public Inspector::InspectorLayerTreeBackendDispatcherHandler { 50 WTF_MAKE_FAST_ALLOCATED; 50 51 public: 51 52 explicit InspectorLayerTreeAgent(InstrumentingAgents*); -
trunk/Source/WebCore/inspector/InspectorPageAgent.h
r162691 r167811 69 69 class InspectorPageAgent : public InspectorAgentBase, public Inspector::InspectorPageBackendDispatcherHandler { 70 70 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); 71 WTF_MAKE_FAST_ALLOCATED; 71 72 public: 72 73 InspectorPageAgent(InstrumentingAgents*, Page*, InspectorClient*, InspectorOverlay*); -
trunk/Source/WebCore/inspector/InspectorResourceAgent.h
r166849 r167811 77 77 78 78 class InspectorResourceAgent : public InspectorAgentBase, public Inspector::InspectorNetworkBackendDispatcherHandler { 79 WTF_MAKE_FAST_ALLOCATED; 79 80 public: 80 81 InspectorResourceAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorClient*); -
trunk/Source/WebCore/inspector/InspectorTimelineAgent.h
r167133 r167811 127 127 , public Inspector::ScriptDebugListener { 128 128 WTF_MAKE_NONCOPYABLE(InspectorTimelineAgent); 129 WTF_MAKE_FAST_ALLOCATED; 129 130 public: 130 131 enum InspectorType { PageInspector, WorkerInspector }; -
trunk/Source/WebCore/inspector/InspectorWorkerAgent.h
r162676 r167811 50 50 51 51 class InspectorWorkerAgent : public InspectorAgentBase, public Inspector::InspectorWorkerBackendDispatcherHandler { 52 WTF_MAKE_FAST_ALLOCATED; 52 53 public: 53 54 explicit InspectorWorkerAgent(InstrumentingAgents*); -
trunk/Source/WebCore/inspector/PageRuntimeAgent.h
r164968 r167811 54 54 55 55 class PageRuntimeAgent final : public Inspector::InspectorRuntimeAgent { 56 WTF_MAKE_FAST_ALLOCATED; 56 57 public: 57 58 PageRuntimeAgent(Inspector::InjectedScriptManager*, Page*, InspectorPageAgent*); -
trunk/Source/WebCore/loader/HistoryController.h
r165676 r167811 46 46 class HistoryController { 47 47 WTF_MAKE_NONCOPYABLE(HistoryController); 48 WTF_MAKE_FAST_ALLOCATED; 48 49 public: 49 50 enum HistoryUpdateType { UpdateAll, UpdateAllExceptBackForwardList }; -
trunk/Source/WebCore/page/DeviceClient.h
r134918 r167811 31 31 32 32 class DeviceClient { 33 WTF_MAKE_FAST_ALLOCATED; 33 34 public: 34 35 virtual ~DeviceClient() { } -
trunk/Source/WebCore/page/DeviceController.h
r161768 r167811 40 40 41 41 class DeviceController : public Supplement<Page> { 42 WTF_MAKE_FAST_ALLOCATED; 42 43 public: 43 44 explicit DeviceController(DeviceClient*); -
trunk/Source/WebCore/page/EventHandler.h
r167594 r167811 120 120 class EventHandler { 121 121 WTF_MAKE_NONCOPYABLE(EventHandler); 122 WTF_MAKE_FAST_ALLOCATED; 122 123 public: 123 124 explicit EventHandler(Frame&); -
trunk/Source/WebCore/page/Page.h
r167777 r167811 111 111 class Page : public Supplementable<Page> { 112 112 WTF_MAKE_NONCOPYABLE(Page); 113 WTF_MAKE_FAST_ALLOCATED; 113 114 friend class Settings; 114 115 friend class PageThrottler; -
trunk/Source/WebCore/page/scrolling/ScrollingStateNode.h
r166293 r167811 147 147 148 148 class ScrollingStateNode { 149 WTF_MAKE_FAST_ALLOCATED; 149 150 public: 150 151 ScrollingStateNode(ScrollingNodeType, ScrollingStateTree&, ScrollingNodeID); -
trunk/Source/WebCore/platform/graphics/FontGenericFamilies.h
r163310 r167811 45 45 46 46 class FontGenericFamilies { 47 WTF_MAKE_FAST_ALLOCATED; 47 48 public: 48 49 FontGenericFamilies(); -
trunk/Source/WebCore/platform/graphics/FontPlatformData.h
r166633 r167811 87 87 88 88 class FontPlatformData { 89 WTF_MAKE_FAST_ALLOCATED; 89 90 public: 90 91 FontPlatformData(WTF::HashTableDeletedValueType);
Note: See TracChangeset
for help on using the changeset viewer.