Skip to content
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

[JSC] Clean up IC a bit #28755

Merged

Conversation

Constellation
Copy link
Member

@Constellation Constellation commented May 18, 2024

bf1f3dd

[JSC] Clean up IC a bit
https://bugs.webkit.org/show_bug.cgi?id=274350
rdar://128329113

Reviewed by Keith Miller.

1. Remove unused CodeBlock::getCallLinkInfoForBytecodeIndex. We are using JITCode's mechanism for this instead.
2. Set appropriate inlineCapacity for Vector<RefPtr<AccessCase>>.
3. Use Vector<Ref<AccessCase>> instead of Vector<RefPtr<AccessCase>>.

* Source/JavaScriptCore/bytecode/CodeBlock.cpp:
(JSC::CodeBlock::getCallLinkInfoForBytecodeIndex): Deleted.
* Source/JavaScriptCore/bytecode/CodeBlock.h:
* Source/JavaScriptCore/bytecode/InlineCacheCompiler.h:

Canonical link: https://commits.webkit.org/279003@main

1808f72

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ wpe-wk2 βœ… πŸ§ͺ wincairo-tests
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ§ͺ api-wpe
βœ… πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ mac-wk1 βœ… πŸ›  wpe-cairo
βœ… πŸ›  πŸ§ͺ jsc βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk2 βœ… πŸ›  gtk
βœ… πŸ›  πŸ§ͺ jsc-arm64 βœ… πŸ›  tv βœ… πŸ§ͺ mac-AS-debug-wk2 βœ… πŸ§ͺ gtk-wk2
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2-stress βœ… πŸ§ͺ api-gtk
βœ… πŸ›  watch βœ… πŸ›  jsc-armv7
βœ… πŸ›  πŸ§ͺ unsafe-merge βœ… πŸ›  watch-sim βœ… πŸ§ͺ jsc-armv7-tests

@Constellation Constellation requested a review from a team as a code owner May 18, 2024 17:46
@Constellation Constellation self-assigned this May 18, 2024
@Constellation Constellation added the JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues. label May 18, 2024
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.

@Constellation Constellation added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label May 20, 2024
https://bugs.webkit.org/show_bug.cgi?id=274350
rdar://128329113

Reviewed by Keith Miller.

1. Remove unused CodeBlock::getCallLinkInfoForBytecodeIndex. We are using JITCode's mechanism for this instead.
2. Set appropriate inlineCapacity for Vector<RefPtr<AccessCase>>.
3. Use Vector<Ref<AccessCase>> instead of Vector<RefPtr<AccessCase>>.

* Source/JavaScriptCore/bytecode/CodeBlock.cpp:
(JSC::CodeBlock::getCallLinkInfoForBytecodeIndex): Deleted.
* Source/JavaScriptCore/bytecode/CodeBlock.h:
* Source/JavaScriptCore/bytecode/InlineCacheCompiler.h:

Canonical link: https://commits.webkit.org/279003@main
@webkit-commit-queue
Copy link
Collaborator

Committed 279003@main (bf1f3dd): https://commits.webkit.org/279003@main

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

@webkit-commit-queue webkit-commit-queue merged commit bf1f3dd into WebKit:main May 20, 2024
@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 May 20, 2024
@Constellation Constellation deleted the eng/JSC-Clean-up-IC-a-bit branch May 20, 2024 19:40
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
4 participants