Changeset 167811 in webkit


Ignore:
Timestamp:
Apr 25, 2014 11:15:48 AM (10 years ago)
Author:
akling@apple.com
Message:

Mark some things with WTF_MAKE_FAST_ALLOCATED.
<https://webkit.org/b/132198>

Use FastMalloc for more things.

Reviewed by Anders Carlsson.

Source/JavaScriptCore:

  • builtins/BuiltinExecutables.h:
  • heap/GCThreadSharedData.h:
  • inspector/JSConsoleClient.h:
  • inspector/agents/InspectorAgent.h:
  • runtime/CodeCache.h:
  • runtime/JSGlobalObject.h:
  • runtime/Lookup.cpp:

(JSC::HashTable::createTable):
(JSC::HashTable::deleteTable):

  • runtime/WeakGCMap.h:

Source/WebCore:

  • bindings/js/ScriptController.h:
  • dom/DocumentOrderedMap.h:
  • inspector/InspectorCSSAgent.h:
  • inspector/InspectorDOMAgent.h:
  • inspector/InspectorDOMDebuggerAgent.h:
  • inspector/InspectorDOMStorageAgent.h:
  • inspector/InspectorDatabaseAgent.h:
  • inspector/InspectorLayerTreeAgent.h:
  • inspector/InspectorPageAgent.h:
  • inspector/InspectorResourceAgent.h:
  • inspector/InspectorTimelineAgent.h:
  • inspector/InspectorWorkerAgent.h:
  • inspector/PageRuntimeAgent.h:
  • loader/HistoryController.h:
  • page/DeviceClient.h:
  • page/DeviceController.h:
  • page/EventHandler.h:
  • page/Page.h:
  • page/scrolling/ScrollingStateNode.h:
  • platform/graphics/FontGenericFamilies.h:
  • platform/graphics/FontPlatformData.h:
Location:
trunk/Source
Files:
31 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r167797 r167811  
     12014-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
    1212014-04-25  Antoine Quint  <graouts@webkit.org>
    222
  • trunk/Source/JavaScriptCore/builtins/BuiltinExecutables.h

    r163960 r167811  
    3939
    4040class BuiltinExecutables {
     41    WTF_MAKE_FAST_ALLOCATED;
    4142public:
    4243    static PassOwnPtr<BuiltinExecutables> create(VM& vm)
  • trunk/Source/JavaScriptCore/heap/GCThreadSharedData.h

    r163752 r167811  
    5252
    5353class GCThreadSharedData {
     54    WTF_MAKE_FAST_ALLOCATED;
    5455public:
    5556    GCThreadSharedData(VM*);
  • trunk/Source/JavaScriptCore/inspector/JSConsoleClient.h

    r167530 r167811  
    3535
    3636class JSConsoleClient final : public JSC::ConsoleClient {
     37    WTF_MAKE_FAST_ALLOCATED;
    3738public:
    3839    explicit JSConsoleClient(InspectorConsoleAgent*, InspectorProfilerAgent*);
  • trunk/Source/JavaScriptCore/inspector/agents/InspectorAgent.h

    r165676 r167811  
    5050class JS_EXPORT_PRIVATE InspectorAgent final : public InspectorAgentBase, public InspectorInspectorBackendDispatcherHandler {
    5151    WTF_MAKE_NONCOPYABLE(InspectorAgent);
     52    WTF_MAKE_FAST_ALLOCATED;
    5253public:
    5354    InspectorAgent();
  • trunk/Source/JavaScriptCore/runtime/CodeCache.h

    r160344 r167811  
    236236// Caches top-level code such as <script>, eval(), new Function, and JSEvaluateScript().
    237237class CodeCache {
     238    WTF_MAKE_FAST_ALLOCATED;
    238239public:
    239240    static PassOwnPtr<CodeCache> create() { return adoptPtr(new CodeCache); }
  • trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h

    r166415 r167811  
    142142
    143143    struct JSGlobalObjectRareData {
     144        WTF_MAKE_FAST_ALLOCATED;
     145    public:
    144146        JSGlobalObjectRareData()
    145147            : profileGroup(0)
  • trunk/Source/JavaScriptCore/runtime/Lookup.cpp

    r165603 r167811  
    3030{
    3131    ASSERT(!keys);
    32     keys = new StringImpl*[numberOfValues];
     32    keys = static_cast<StringImpl**>(fastMalloc(sizeof(StringImpl*) * numberOfValues));
    3333
    3434    for (int i = 0; i < numberOfValues; ++i) {
     
    4747                keys[i]->deref();
    4848        }
    49         delete [] keys;
     49        fastFree(keys);
    5050        keys = nullptr;
    5151    }
  • trunk/Source/JavaScriptCore/runtime/WeakGCMap.h

    r167577 r167811  
    3838    typename KeyTraitsArg = HashTraits<KeyArg>>
    3939class WeakGCMap {
     40    WTF_MAKE_FAST_ALLOCATED;
    4041    typedef Weak<ValueArg> ValueType;
    4142    typedef HashMap<KeyArg, ValueType, HashArg, KeyTraitsArg> HashMapType;
  • trunk/Source/WebCore/ChangeLog

    r167810 r167811  
     12014-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
    1322014-04-25  Radu Stavila  <stavila@adobe.com>
    233
  • trunk/Source/WebCore/bindings/js/ScriptController.h

    r166864 r167811  
    7070
    7171class ScriptController {
     72    WTF_MAKE_FAST_ALLOCATED;
     73
    7274    friend class ScriptCachedFrameData;
    7375    typedef HashMap<RefPtr<DOMWrapperWorld>, JSC::Strong<JSDOMWindowShell>> ShellMap;
  • trunk/Source/WebCore/dom/DocumentOrderedMap.h

    r161572 r167811  
    4646
    4747class DocumentOrderedMap {
     48    WTF_MAKE_FAST_ALLOCATED;
    4849public:
    4950    void add(const AtomicStringImpl&, Element&, const TreeScope&);
  • trunk/Source/WebCore/inspector/InspectorCSSAgent.h

    r167571 r167811  
    7272    , public InspectorStyleSheet::Listener {
    7373    WTF_MAKE_NONCOPYABLE(InspectorCSSAgent);
     74    WTF_MAKE_FAST_ALLOCATED;
    7475public:
    7576    class InlineStyleOverrideScope {
  • trunk/Source/WebCore/inspector/InspectorDOMAgent.h

    r166703 r167811  
    9696class InspectorDOMAgent : public InspectorAgentBase, public Inspector::InspectorDOMBackendDispatcherHandler {
    9797    WTF_MAKE_NONCOPYABLE(InspectorDOMAgent);
     98    WTF_MAKE_FAST_ALLOCATED;
    9899public:
    99100    struct DOMListener {
  • trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h

    r164245 r167811  
    5656class InspectorDOMDebuggerAgent : public InspectorAgentBase, public Inspector::InspectorDebuggerAgent::Listener, public Inspector::InspectorDOMDebuggerBackendDispatcherHandler {
    5757    WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent);
     58    WTF_MAKE_FAST_ALLOCATED;
    5859public:
    5960    InspectorDOMDebuggerAgent(InstrumentingAgents*, InspectorDOMAgent*, Inspector::InspectorDebuggerAgent*);
  • trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.h

    r165676 r167811  
    5353
    5454class InspectorDOMStorageAgent : public InspectorAgentBase, public Inspector::InspectorDOMStorageBackendDispatcherHandler {
     55    WTF_MAKE_FAST_ALLOCATED;
    5556public:
    5657    InspectorDOMStorageAgent(InstrumentingAgents*, InspectorPageAgent*);
  • trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h

    r165676 r167811  
    5151
    5252class InspectorDatabaseAgent : public InspectorAgentBase, public Inspector::InspectorDatabaseBackendDispatcherHandler {
     53    WTF_MAKE_FAST_ALLOCATED;
    5354public:
    5455    explicit InspectorDatabaseAgent(InstrumentingAgents*);
  • trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h

    r165676 r167811  
    4848
    4949class InspectorLayerTreeAgent : public InspectorAgentBase, public Inspector::InspectorLayerTreeBackendDispatcherHandler {
     50    WTF_MAKE_FAST_ALLOCATED;
    5051public:
    5152    explicit InspectorLayerTreeAgent(InstrumentingAgents*);
  • trunk/Source/WebCore/inspector/InspectorPageAgent.h

    r162691 r167811  
    6969class InspectorPageAgent : public InspectorAgentBase, public Inspector::InspectorPageBackendDispatcherHandler {
    7070    WTF_MAKE_NONCOPYABLE(InspectorPageAgent);
     71    WTF_MAKE_FAST_ALLOCATED;
    7172public:
    7273    InspectorPageAgent(InstrumentingAgents*, Page*, InspectorClient*, InspectorOverlay*);
  • trunk/Source/WebCore/inspector/InspectorResourceAgent.h

    r166849 r167811  
    7777
    7878class InspectorResourceAgent : public InspectorAgentBase, public Inspector::InspectorNetworkBackendDispatcherHandler {
     79    WTF_MAKE_FAST_ALLOCATED;
    7980public:
    8081    InspectorResourceAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorClient*);
  • trunk/Source/WebCore/inspector/InspectorTimelineAgent.h

    r167133 r167811  
    127127    , public Inspector::ScriptDebugListener {
    128128    WTF_MAKE_NONCOPYABLE(InspectorTimelineAgent);
     129    WTF_MAKE_FAST_ALLOCATED;
    129130public:
    130131    enum InspectorType { PageInspector, WorkerInspector };
  • trunk/Source/WebCore/inspector/InspectorWorkerAgent.h

    r162676 r167811  
    5050
    5151class InspectorWorkerAgent : public InspectorAgentBase, public Inspector::InspectorWorkerBackendDispatcherHandler {
     52    WTF_MAKE_FAST_ALLOCATED;
    5253public:
    5354    explicit InspectorWorkerAgent(InstrumentingAgents*);
  • trunk/Source/WebCore/inspector/PageRuntimeAgent.h

    r164968 r167811  
    5454
    5555class PageRuntimeAgent final : public Inspector::InspectorRuntimeAgent {
     56    WTF_MAKE_FAST_ALLOCATED;
    5657public:
    5758    PageRuntimeAgent(Inspector::InjectedScriptManager*, Page*, InspectorPageAgent*);
  • trunk/Source/WebCore/loader/HistoryController.h

    r165676 r167811  
    4646class HistoryController {
    4747    WTF_MAKE_NONCOPYABLE(HistoryController);
     48    WTF_MAKE_FAST_ALLOCATED;
    4849public:
    4950    enum HistoryUpdateType { UpdateAll, UpdateAllExceptBackForwardList };
  • trunk/Source/WebCore/page/DeviceClient.h

    r134918 r167811  
    3131
    3232class DeviceClient {
     33    WTF_MAKE_FAST_ALLOCATED;
    3334public:
    3435    virtual ~DeviceClient() { }
  • trunk/Source/WebCore/page/DeviceController.h

    r161768 r167811  
    4040
    4141class DeviceController : public Supplement<Page> {
     42    WTF_MAKE_FAST_ALLOCATED;
    4243public:
    4344    explicit DeviceController(DeviceClient*);
  • trunk/Source/WebCore/page/EventHandler.h

    r167594 r167811  
    120120class EventHandler {
    121121    WTF_MAKE_NONCOPYABLE(EventHandler);
     122    WTF_MAKE_FAST_ALLOCATED;
    122123public:
    123124    explicit EventHandler(Frame&);
  • trunk/Source/WebCore/page/Page.h

    r167777 r167811  
    111111class Page : public Supplementable<Page> {
    112112    WTF_MAKE_NONCOPYABLE(Page);
     113    WTF_MAKE_FAST_ALLOCATED;
    113114    friend class Settings;
    114115    friend class PageThrottler;
  • trunk/Source/WebCore/page/scrolling/ScrollingStateNode.h

    r166293 r167811  
    147147
    148148class ScrollingStateNode {
     149    WTF_MAKE_FAST_ALLOCATED;
    149150public:
    150151    ScrollingStateNode(ScrollingNodeType, ScrollingStateTree&, ScrollingNodeID);
  • trunk/Source/WebCore/platform/graphics/FontGenericFamilies.h

    r163310 r167811  
    4545
    4646class FontGenericFamilies {
     47    WTF_MAKE_FAST_ALLOCATED;
    4748public:
    4849    FontGenericFamilies();
  • trunk/Source/WebCore/platform/graphics/FontPlatformData.h

    r166633 r167811  
    8787
    8888class FontPlatformData {
     89    WTF_MAKE_FAST_ALLOCATED;
    8990public:
    9091    FontPlatformData(WTF::HashTableDeletedValueType);
Note: See TracChangeset for help on using the changeset viewer.