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/JSFunction.h

    r97905 r98177  
    134134        virtual void getOwnPropertyNames(ExecState*, PropertyNameArray&, EnumerationMode = ExcludeDontEnumProperties);
    135135
     136        virtual void putVirtual(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
     137        static void put(JSCell*, ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
     138
    136139        static void visitChildren(JSCell*, SlotVisitor&);
    137140
     
    140143
    141144        bool isHostFunctionNonInline() const;
    142 
    143         virtual void putVirtual(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
    144         static void put(JSCell*, ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
    145145
    146146        virtual bool deletePropertyVirtual(ExecState*, const Identifier& propertyName);
Note: See TracChangeset for help on using the changeset viewer.