Ignore:
Timestamp:
Oct 21, 2011, 5:48:40 PM (14 years ago)
Author:
[email protected]
Message:

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

Reviewed by Oliver Hunt.

Source/JavaScriptCore:

  • JavaScriptCore.exp:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
  • runtime/ClassInfo.h: Added put and putByIndex to the MethodTable.
  • runtime/JSFunction.h: Changed access modifier for put to protected since some

subclasses of JSFunction need to reference it in their MethodTables.

Source/WebCore:

No new tests.

  • WebCore.exp.in:
  • bindings/js/JSDOMWindowCustom.cpp: Added static put since it was overlooked in

previous patches.
(WebCore::JSDOMWindow::putVirtual):
(WebCore::JSDOMWindow::put):

  • bindings/js/JSDOMWindowShell.cpp: Ditto.

(WebCore::JSDOMWindowShell::putVirtual):
(WebCore::JSDOMWindowShell::put):

  • bindings/js/JSDOMWindowShell.h:
File:
1 edited

Legend:

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

    r97892 r98177  
    4141        typedef ConstructType (*GetConstructDataFunctionPtr)(JSCell*, ConstructData&);
    4242        GetConstructDataFunctionPtr getConstructData;
     43
     44        typedef void (*PutFunctionPtr)(JSCell*, ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
     45        PutFunctionPtr put;
     46
     47        typedef void (*PutByIndexFunctionPtr)(JSCell*, ExecState*, unsigned propertyName, JSValue);
     48        PutByIndexFunctionPtr putByIndex;
    4349    };
    4450
     
    4753        &ClassName::getCallData, \
    4854        &ClassName::getConstructData, \
     55        &ClassName::put, \
     56        &ClassName::putByIndex, \
    4957    }, \
    5058    sizeof(ClassName)
Note: See TracChangeset for help on using the changeset viewer.