Bug 286244
| Summary: | [JSC] Optimize 8bit string array search by `Array#index` in DFG | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <sosuke> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sosuke Suzuki
The DFG for `Array#indexOf` calls `operationArrayIndexOfString`
to search string from array of strings. However, for arrays of
8-bit strings, this can be optimized using the same logic as
`compileStringEquality`.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/39279
Radar WebKit Bug Importer
<rdar://problem/143672614>
EWS
Committed 289780@main (b68f6434c4f5): <https://commits.webkit.org/289780@main>
Reviewed commits have been landed. Closing PR #39279 and removing active labels.