Bug 144847

Summary: JSON.stringify shouldn't use generic get() to access Array.length
Product: WebKit Reporter: Andreas Kling <kling>
Component: JavaScriptCoreAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, commit-queue, ggaren, oliver
Priority: P2 Keywords: Performance
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Andreas Kling 2015-05-10 14:05:32 PDT
When we know the value being serialized is a JSArray, we can downcast and call length() directly instead of doing a generic get().
Comment 1 Andreas Kling 2015-05-10 14:06:02 PDT
Created attachment 252825 [details]
Patch
Comment 2 Geoffrey Garen 2015-05-11 09:59:54 PDT
Comment on attachment 252825 [details]
Patch

r=me
Comment 3 WebKit Commit Bot 2015-05-11 10:49:21 PDT
Comment on attachment 252825 [details]
Patch

Clearing flags on attachment: 252825

Committed r184107: <http://trac.webkit.org/changeset/184107>
Comment 4 WebKit Commit Bot 2015-05-11 10:49:25 PDT
All reviewed patches have been landed.  Closing bug.