Summary: | [DFG] More ArrayIndexOf fixups for various types | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> | ||||
Component: | JavaScriptCore | Assignee: | Yusuke Suzuki <ysuzuki> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | buildbot, keith_miller, mark.lam, msaboff, saam | ||||
Priority: | P2 | ||||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Yusuke Suzuki
2017-06-09 11:43:19 PDT
We can make indexOf(null/undefined) etc. faster. (it may be shown in user code because null is typically used as a sentinel). We'll do this in this patch too. Created attachment 312770 [details]
Patch
Comment on attachment 312770 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=312770&action=review r=me > Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:3066 > + return; not needed > Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:3073 > + return; ditto Comment on attachment 312770 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=312770&action=review Thank you! >> Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:3066 >> + return; > > not needed Thanks, dropped. >> Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:3073 >> + return; > > ditto Fixed. Committed r218525: <http://trac.webkit.org/changeset/218525> |