Skip to content

[JSC] Delay CachedCall initialization until it will be definitely used #47100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Constellation
Copy link
Member

@Constellation Constellation commented Jun 24, 2025

@Constellation Constellation requested a review from a team as a code owner June 24, 2025 03:45
@Constellation Constellation self-assigned this Jun 24, 2025
@Constellation Constellation added the JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues. label Jun 24, 2025
Copy link
Member

@sosukesuzuki sosukesuzuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

@Constellation Constellation added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jun 24, 2025
https://bugs.webkit.org/show_bug.cgi?id=294883
rdar://154154064

Reviewed by Sosuke Suzuki.

Let's not create CachedCall until it turned out it will be used.
It is possible that first RegExp scan turned out that we have zero
matches, and we do not need to have CachedCall.

* Source/JavaScriptCore/runtime/StringPrototypeInlines.h:
(JSC::replaceUsingStringSearch):

Canonical link: https://commits.webkit.org/296567@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/JSC-Delay-CachedCall-initialization-until-it-will-be-definitely-used branch from 3d39669 to e3a8241 Compare June 24, 2025 15:57
@webkit-commit-queue
Copy link
Collaborator

Committed 296567@main (e3a8241): https://commits.webkit.org/296567@main

Reviewed commits have been landed. Closing PR #47100 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit e3a8241 into WebKit:main Jun 24, 2025
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants