Bug 276992
| Summary: | [JSC] Remove dead code for `String#replace` and `String#replaceAll` | ||
|---|---|---|---|
| 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 Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sosuke Suzuki
We've added a fast path for `String#replace(string, string)` at
https://commits.webkit.org/280990@main. With this addition, whenever the `replaceValue` in
`stringReplaceUsingStringSearch` is a string, the fast path is executed. Therefore, the slow path is
only reached when `replaceValue` is a function.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/31148
EWS
Committed 281485@main (ed9c21817325): <https://commits.webkit.org/281485@main>
Reviewed commits have been landed. Closing PR #31148 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/132704428>