Skip to content

[JSC] Remove redundant VM parameter from JSObject::getPrototype #47150

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

hyjorc1
Copy link
Contributor

@hyjorc1 hyjorc1 commented Jun 25, 2025

@hyjorc1 hyjorc1 requested review from cdumez and a team as code owners June 25, 2025 01:02
@hyjorc1 hyjorc1 self-assigned this Jun 25, 2025
@hyjorc1 hyjorc1 added the JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues. label Jun 25, 2025
@hyjorc1 hyjorc1 force-pushed the eng/JSC-Remove-redundant-VM-parameter-from-JSObject-getPrototype branch from 0854953 to 23b7312 Compare June 25, 2025 01:05
Copy link
Contributor

@kmiller68 kmiller68 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

@hyjorc1 hyjorc1 added safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing and removed safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks labels Jun 25, 2025
https://bugs.webkit.org/show_bug.cgi?id=294942
rdar://154245182

Reviewed by Keith Miller.

This patch simplifies the JSObject::getPrototype function by removing the unnecessary
VM& parameter. Since the JSGlobalObject* already provides access to the VM, the extra
parameter was redundant. No functional behavior is changed by this refactoring.

Canonical link: https://commits.webkit.org/296598@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/JSC-Remove-redundant-VM-parameter-from-JSObject-getPrototype branch from 23b7312 to 97c6088 Compare June 25, 2025 02:21
@webkit-commit-queue
Copy link
Collaborator

Committed 296598@main (97c6088): https://commits.webkit.org/296598@main

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

@webkit-commit-queue webkit-commit-queue merged commit 97c6088 into WebKit:main Jun 25, 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 25, 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