Ignore:
Timestamp:
Jan 20, 2011, 8:30:54 AM (14 years ago)
Author:
Csaba Osztrogonác
Message:

Refactoring of the custom allocation framework
https://bugs.webkit.org/show_bug.cgi?id=49897

Patch by Zoltan Horvath <[email protected]> on 2011-01-20
Reviewed by Csaba Osztrogonác.

Source/JavaScriptCore:

Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
equivalent macro implementation at the necessary places.

  • wtf/FastAllocBase.h: Turn FastAllocBase's implementation into a macro.

Source/WebCore:

Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
equivalent macro implementation at the necessary places.

Source/WebKit:

Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
equivalent macro implementation at the necessary places.

Source/WebKit2:

Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
equivalent macro implementation at the necessary places.

Tools:

Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
equivalent macro implementation at the necessary places.

Location:
trunk/Source/JavaScriptCore/profiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/profiler/CallIdentifier.h

    r72592 r76248  
    2929
    3030#include <runtime/UString.h>
    31 #include "FastAllocBase.h"
    3231#include <wtf/text/CString.h>
    3332#include <wtf/text/StringHash.h>
     
    3534namespace JSC {
    3635
    37     struct CallIdentifier : public FastAllocBase {
     36    struct CallIdentifier {
     37        WTF_MAKE_FAST_ALLOCATED;
     38    public:
    3839        UString m_name;
    3940        UString m_url;
  • trunk/Source/JavaScriptCore/profiler/Profiler.h

    r72351 r76248  
    4545    struct CallIdentifier;   
    4646
    47     class Profiler : public FastAllocBase {
     47    class Profiler {
     48        WTF_MAKE_FAST_ALLOCATED;
    4849    public:
    4950        static Profiler** enabledProfilerReference()
Note: See TracChangeset for help on using the changeset viewer.