Bug 20227 - Optimize [ "constant string" ] into an identifier access.
Summary: Optimize [ "constant string" ] into an identifier access.
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Gavin Barraclough
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 08:25 PDT by Gavin Barraclough
Modified: 2010-03-02 17:54 PST (History)
1 user (show)

See Also:


Attachments
the patch! (changes nodes.cpp) (6.41 KB, patch)
2008-07-30 08:43 PDT, Gavin Barraclough
no flags Details | Formatted Diff | Diff
Patch, -1.5% on sunspider :-( (9.22 KB, patch)
2008-08-19 13:15 PDT, Gavin Barraclough
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin Barraclough 2008-07-30 08:25:27 PDT
Optimize bracket nodes where the subscript is a constant string to just emit an identifier access.

Will help code like the test case in:
https://bugs.webkit.org/show_bug.cgi?id=20209

(takes f2() from .61s to .46s on my MPB)

Should have no impact on sunspider, this case does not occur.

patch in 5... 4... 3...
Comment 1 Gavin Barraclough 2008-07-30 08:43:02 PDT
Created attachment 22553 [details]
the patch! (changes nodes.cpp)

oh, s/MPB/MBP/ in my last comment. :-)
Comment 2 Cameron Zwarich (cpst) 2008-08-01 16:09:18 PDT
Comment on attachment 22553 [details]
the patch! (changes nodes.cpp)

r=me

I would like a layout test, though.
Comment 3 Gavin Barraclough 2008-08-19 13:15:55 PDT
Created attachment 22880 [details]
Patch, -1.5% on sunspider :-(
Comment 4 Gavin Barraclough 2010-03-02 17:54:36 PST
Patch wildly out of date, and I don't know there to be a real world benefit here.  Closing for now, if we want to look at this again we can start from scratch.