Bug 290388
| Summary: | [JSC] Optimize searching untyped element from int32 array for `indexOf` and `includes` | ||
|---|---|---|---|
| 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
This patch adds a dedicated JIT operation for searching untyped element from int32 array for `Array#indexOf` and `Array#includes`.
TipOfTree Patched
array-prototype-includes-untyped-int32 40.2026+-0.3441 ^ 24.5050+-0.2880 ^ definitely 1.6406x faster
array-prototype-indexOf-untyped-int32 37.8560+-1.4731 ^ 24.8404+-0.7800 ^ definitely 1.5240x faster
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/42994
EWS
Committed 292999@main (3e9331148002): <https://commits.webkit.org/292999@main>
Reviewed commits have been landed. Closing PR #42994 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/148311914>