Ignore:
Timestamp:
Oct 19, 2011, 4:27:47 PM (14 years ago)
Author:
[email protected]
Message:

Add getConstructData to the MethodTable
https://bugs.webkit.org/show_bug.cgi?id=70163

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

Adding getConstructData to the MethodTable in order to be able to
remove all calls to getConstructDataVirtual soon. Part of the process
of de-virtualizing JSCell.

Source/WebCore:

No new tests.

Adding getConstructData to the MethodTable in order to be able to
remove all calls to getConstructDataVirtual soon. Part of the process
of de-virtualizing JSCell.

  • WebCore.exp.in:
File:
1 edited

Legend:

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

    r97536 r97892  
    2525
    2626#include "CallFrame.h"
     27#include "ConstructData.h"
    2728
    2829namespace JSC {
     
    3738        typedef CallType (*GetCallDataFunctionPtr)(JSCell*, CallData&);
    3839        GetCallDataFunctionPtr getCallData;
     40
     41        typedef ConstructType (*GetConstructDataFunctionPtr)(JSCell*, ConstructData&);
     42        GetConstructDataFunctionPtr getConstructData;
    3943    };
    4044
    4145#define CREATE_METHOD_TABLE(ClassName) { \
    4246        &ClassName::visitChildren, \
    43         &ClassName::getCallData \
     47        &ClassName::getCallData, \
     48        &ClassName::getConstructData, \
    4449    }, \
    4550    sizeof(ClassName)
Note: See TracChangeset for help on using the changeset viewer.