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/interpreter
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/CachedCall.h

    r70703 r76248  
    3333
    3434namespace JSC {
    35     class CachedCall : public Noncopyable {
     35    class CachedCall {
     36        WTF_MAKE_NONCOPYABLE(CachedCall); WTF_MAKE_FAST_ALLOCATED;
    3637    public:
    3738        CachedCall(CallFrame* callFrame, JSFunction* function, int argCount)
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.h

    r72360 r76248  
    3131
    3232#include "ArgList.h"
    33 #include "FastAllocBase.h"
    3433#include "JSCell.h"
    3534#include "JSValue.h"
     
    6665    enum { MaxLargeThreadReentryDepth = 256, MaxSmallThreadReentryDepth = 32 };
    6766
    68     class Interpreter : public FastAllocBase {
     67    class Interpreter {
     68        WTF_MAKE_FAST_ALLOCATED;
    6969        friend class JIT;
    7070        friend class CachedCall;
  • trunk/Source/JavaScriptCore/interpreter/Register.h

    r60392 r76248  
    3232#include "JSValue.h"
    3333#include <wtf/Assertions.h>
    34 #include <wtf/FastAllocBase.h>
    3534#include <wtf/VectorTraits.h>
    3635
     
    4847    typedef ExecState CallFrame;
    4948
    50     class Register : public WTF::FastAllocBase {
     49    class Register {
     50        WTF_MAKE_FAST_ALLOCATED;
    5151    public:
    5252        Register();
  • trunk/Source/JavaScriptCore/interpreter/RegisterFile.h

    r76193 r76248  
    9090    class JSGlobalObject;
    9191
    92     class RegisterFile : public Noncopyable {
     92    class RegisterFile {
     93        WTF_MAKE_NONCOPYABLE(RegisterFile);
    9394        friend class JIT;
    9495    public:
Note: See TracChangeset for help on using the changeset viewer.