Ignore:
Timestamp:
Feb 13, 2011, 2:12:10 AM (14 years ago)
Author:
[email protected]
Message:

Reviewed by Dan Bernstein.

Bug 53760 - JSC fails to build with TOT Clang
https://bugs.webkit.org/show_bug.cgi?id=53760

Fix -Woverloaded-virtual warnings. This is also a 6% speedup on the v8 raytrace
benchmark; it is nothing-to-noise on everything else.

JavaScriptCore:

  • API/JSCallbackObject.h: Remove pointlessly overloaded method.
  • API/JSCallbackObjectFunctions.h: Ditto.
  • runtime/Arguments.cpp:

(JSC::Arguments::put): Change signature to match the base class. This implementation
was no longer being called by anyone. This wasn't noticed because it is merely an
optimization of the base class' implementation.

  • runtime/Arguments.h: Ditto.

JavaScriptGlue:

  • UserObjectImp.cpp:

(UserObjectImp::toPrimitive): Use PreferredPrimitiveType instead of JSType to
match the base class.

  • UserObjectImp.h:
File:
1 edited

Legend:

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

    r77883 r78428  
    108108        virtual void getOwnPropertyNames(ExecState*, PropertyNameArray&, EnumerationMode mode = ExcludeDontEnumProperties);
    109109        virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
    110         virtual void put(ExecState*, unsigned propertyName, JSValue, PutPropertySlot&);
     110        virtual void put(ExecState*, unsigned propertyName, JSValue);
    111111        virtual bool deleteProperty(ExecState*, const Identifier& propertyName);
    112112        virtual bool deleteProperty(ExecState*, unsigned propertyName);
Note: See TracChangeset for help on using the changeset viewer.