Changeset 48083 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Sep 4, 2009, 7:07:32 PM (16 years ago)
Author:
[email protected]
Message:

ToString conversion should use the actual toString function for String objects.

Reviewed by Gavin Barraclough.

Remove incorrect specialisations of toString conversions on StringObject.

Location:
trunk/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r48077 r48083  
     12009-09-04  Oliver Hunt  <[email protected]>
     2
     3        Reviewed by Gavin Barraclough.
     4
     5        [[ToString]] conversion should use the actual toString function for String objects.
     6
     7        Remove incorrect specialisations of toString conversions on StringObject.
     8
     9        * JavaScriptCore.exp:
     10        * runtime/StringObject.cpp:
     11        * runtime/StringObject.h:
     12
    1132009-09-04  Steve Falkenburg  <[email protected]>
    214
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r47799 r48083  
    114114__ZN3JSC12SmallStrings17createEmptyStringEPNS_12JSGlobalDataE
    115115__ZN3JSC12StringObject14deletePropertyEPNS_9ExecStateERKNS_10IdentifierE
    116 __ZN3JSC12StringObject14toThisJSStringEPNS_9ExecStateE
    117116__ZN3JSC12StringObject16getPropertyNamesEPNS_9ExecStateERNS_17PropertyNameArrayE
    118117__ZN3JSC12StringObject18getOwnPropertySlotEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE
     
    336335__ZNK3JSC11Interpreter18retrieveLastCallerEPNS_9ExecStateERiRlRNS_7UStringERNS_7JSValueE 
    337336__ZNK3JSC12DateInstance7getTimeERdRi
    338 __ZNK3JSC12StringObject12toThisStringEPNS_9ExecStateE
    339 __ZNK3JSC12StringObject8toStringEPNS_9ExecStateE
    340337__ZNK3JSC14JSGlobalObject14isDynamicScopeEv
    341338__ZNK3JSC16InternalFunction9classInfoEv
  • trunk/JavaScriptCore/runtime/StringObject.cpp

    r47780 r48083  
    9191}
    9292
    93 UString StringObject::toString(ExecState*) const
    94 {
    95     return internalValue()->value();
    96 }
    97 
    98 UString StringObject::toThisString(ExecState*) const
    99 {
    100     return internalValue()->value();
    101 }
    102 
    103 JSString* StringObject::toThisJSString(ExecState*)
    104 {
    105     return internalValue();
    106 }
    107 
    10893} // namespace JSC
  • trunk/JavaScriptCore/runtime/StringObject.h

    r47780 r48083  
    5454    protected:
    5555        StringObject(PassRefPtr<Structure>, JSString*);
    56 
    57     private:
    58         virtual UString toString(ExecState*) const;
    59         virtual UString toThisString(ExecState*) const;
    60         virtual JSString* toThisJSString(ExecState*);
    6156  };
    6257
Note: See TracChangeset for help on using the changeset viewer.