Ignore:
Timestamp:
Sep 30, 2011, 10:59:15 AM (14 years ago)
Author:
[email protected]
Message:

Add getCallData to MethodTable in ClassInfo
https://bugs.webkit.org/show_bug.cgi?id=69024

Reviewed by Sam Weinig.

Source/JavaScriptCore:

Added the getCallData to the MethodTable in the ClassInfo struct.

  • runtime/ClassInfo.h:

Source/WebCore:

No new tests.

  • WebCore.exp.in:

Changed getCallData from private to protected to allow subclasses who
don't override getCallData themselves to reference it in their own
method tables when calling the CREATE_METHOD_TABLE macro.

  • bridge/runtime_method.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/ClassInfo.h

    r96346 r96406  
    3434        typedef void (*VisitChildrenFunctionPtr)(JSCell*, SlotVisitor&);
    3535        VisitChildrenFunctionPtr visitChildren;
     36
     37        typedef CallType (*GetCallDataFunctionPtr)(JSCell*, CallData&);
     38        GetCallDataFunctionPtr getCallData;
    3639    };
    3740
    3841#define CREATE_METHOD_TABLE(ClassName) { \
    39         &ClassName::visitChildren \
     42        &ClassName::visitChildren, \
     43        &ClassName::getCallData \
    4044    }
    4145
Note: See TracChangeset for help on using the changeset viewer.