Bug 69677

Summary: De-virtualize JSCell::toString
Product: WebKit Reporter: Mark Hahnenberg <mhahnenberg>
Component: JavaScriptCoreAssignee: Mark Hahnenberg <mhahnenberg>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 69156    
Bug Blocks: 67690    
Attachments:
Description Flags
Patch
none
Fix windows
none
Fix windows none

Mark Hahnenberg
Reported 2011-10-07 16:50:32 PDT
Now that the JSC C API does something more sensible for toString (see bug 69156), we can eliminate JSCallbackObject::toString in favor of simply using JSObject::toString to cover the case for JSCallbackObject.
Attachments
Patch (14.95 KB, patch)
2011-10-10 13:48 PDT, Mark Hahnenberg
no flags
Fix windows (16.52 KB, patch)
2011-10-10 18:14 PDT, Mark Hahnenberg
no flags
Fix windows (16.64 KB, patch)
2011-10-11 11:06 PDT, Mark Hahnenberg
no flags
Mark Hahnenberg
Comment 1 2011-10-10 13:48:07 PDT
Darin Adler
Comment 2 2011-10-10 14:10:28 PDT
Comment on attachment 110398 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=110398&action=review > Source/JavaScriptCore/ChangeLog:9 > + Removed toString from JSCallbackObject, since it is no > + longer necessary. Why is it no longer necessary? Because conversion to string is handled in defaultValue? Some other reason? > Source/JavaScriptCore/runtime/ExceptionHelpers.cpp:50 > + return JSValue(std::numeric_limits<double>::quiet_NaN()); Should not need "std::" here since it’s in a cpp file and we normally use “using namespace std” in those. > Source/JavaScriptCore/runtime/ExceptionHelpers.cpp:75 > + return JSValue(std::numeric_limits<double>::quiet_NaN()); Ditto. > Source/JavaScriptGlue/ChangeLog:8 > + Removed UserObjectImp::toString since it's no longer necessary. Again, why is it no longer necessary?
Mark Hahnenberg
Comment 3 2011-10-10 18:14:18 PDT
Created attachment 110453 [details] Fix windows
Mark Hahnenberg
Comment 4 2011-10-11 11:06:32 PDT
Created attachment 110541 [details] Fix windows
WebKit Review Bot
Comment 5 2011-10-12 13:22:17 PDT
Comment on attachment 110541 [details] Fix windows Clearing flags on attachment: 110541 Committed r97292: <http://trac.webkit.org/changeset/97292>
WebKit Review Bot
Comment 6 2011-10-12 13:22:21 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.