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/bytecode/CodeBlock.h

    r72442 r76248  
    243243#endif
    244244
    245     class CodeBlock : public FastAllocBase {
     245    class CodeBlock {
     246        WTF_MAKE_FAST_ALLOCATED;
    246247        friend class JIT;
    247248    protected:
     
    579580        SymbolTable* m_symbolTable;
    580581
    581         struct RareData : FastAllocBase {
     582        struct RareData {
     583           WTF_MAKE_FAST_ALLOCATED;
     584        public:
    582585            Vector<HandlerInfo> m_exceptionHandlers;
    583586
     
    600603#endif
    601604        };
     605#if PLATFORM(WIN)
     606        friend void WTF::deleteOwnedPtr<RareData>(RareData*);
     607#endif
    602608        OwnPtr<RareData> m_rareData;
    603609    };
Note: See TracChangeset for help on using the changeset viewer.