Bug 17504

Summary: Speed up DOM lists array subscription syntax by using the fast getOwnPropertySlot and set paths
Product: WebKit Reporter: Sam Weinig <sam>
Component: WebCore JavaScriptAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ggaren, oliver
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch oliver: review+

Description Sam Weinig 2008-02-23 17:20:36 PST
We are needlessly converting from unsigned -> Identifier -> unsigned when doing indexGetting and setting for DOM lists like the NodeList or the new CanvasPixelArray.  We can speed it up by using the fast getOwnPropertySlot and put methods that take an unsigned.  This technique is already employed by ArrayInstance.
Comment 1 Sam Weinig 2008-02-23 17:32:20 PST
Created attachment 19308 [details]
patch

This speeds Oliver's CanvasPixelArray test up by 6x.
Comment 2 Sam Weinig 2008-02-23 17:37:05 PST
Landed in r30529.