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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSClassRef.h

    r65104 r76248  
    3535#include <wtf/HashMap.h>
    3636
    37 struct StaticValueEntry : FastAllocBase {
     37struct StaticValueEntry {
     38    WTF_MAKE_FAST_ALLOCATED;
     39public:
    3840    StaticValueEntry(JSObjectGetPropertyCallback _getProperty, JSObjectSetPropertyCallback _setProperty, JSPropertyAttributes _attributes)
    3941        : getProperty(_getProperty), setProperty(_setProperty), attributes(_attributes)
     
    4648};
    4749
    48 struct StaticFunctionEntry : FastAllocBase {
     50struct StaticFunctionEntry {
     51    WTF_MAKE_FAST_ALLOCATED;
     52public:
    4953    StaticFunctionEntry(JSObjectCallAsFunctionCallback _callAsFunction, JSPropertyAttributes _attributes)
    5054        : callAsFunction(_callAsFunction), attributes(_attributes)
     
    6367// An OpaqueJSClass (JSClass) is created without a context, so it can be used with any context, even across context groups.
    6468// This structure holds data members that vary across context groups.
    65 struct OpaqueJSClassContextData : Noncopyable {
     69struct OpaqueJSClassContextData {
     70    WTF_MAKE_NONCOPYABLE(OpaqueJSClassContextData); WTF_MAKE_FAST_ALLOCATED;
     71public:
    6672    OpaqueJSClassContextData(OpaqueJSClass*);
    6773    ~OpaqueJSClassContextData();
Note: See TracChangeset for help on using the changeset viewer.