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

JSStringCreateWithCFString can now use CFIndex #9542

Merged
merged 1 commit into from Feb 9, 2023

Conversation

AtariDreams
Copy link
Contributor

@AtariDreams AtariDreams commented Feb 2, 2023

115f237

JSStringCreateWithCFString can now use CFIndex
https://bugs.webkit.org/show_bug.cgi?id=251619

<rdar://problem/6806478>
Reviewed by Yusuke Suzuki.

The original size_t workaround came about 14 years ago, right when Apple was still compiling for PowerPC. Basically, so many devices ran on 32 bits.

A long type can hold onto the required length now, so we no longer need to worry about it.

*Source/JavaScriptCore/API/JSStringRefCF.cpp: JSStringRef JSStringCreateWithCFString(CFStringRef string):

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

558c9d7

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

@Constellation
Copy link
Member

CC @JonWBedard

@AtariDreams
Copy link
Contributor Author

AtariDreams commented Feb 9, 2023

Do you think we can merge this? @emw-apple

@AtariDreams
Copy link
Contributor Author

@Constellation May we please commit this?

@Ahmad-S792 Ahmad-S792 added New Bugs Unclassified bugs are placed in this component until the correct component can be determined. merge-queue Applied to send a pull request to merge-queue labels Feb 9, 2023
https://bugs.webkit.org/show_bug.cgi?id=251619

<rdar://problem/6806478>
Reviewed by Yusuke Suzuki.

The original size_t workaround came about 14 years ago, right when Apple was still compiling for PowerPC. Basically, so many devices ran on 32 bits.

A long type can hold onto the required length now, so we no longer need to worry about it.

*Source/JavaScriptCore/API/JSStringRefCF.cpp: JSStringRef JSStringCreateWithCFString(CFStringRef string):

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

Committed 260083@main (115f237): https://commits.webkit.org/260083@main

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

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Feb 9, 2023
@webkit-early-warning-system webkit-early-warning-system merged commit 115f237 into WebKit:main Feb 9, 2023
@AtariDreams AtariDreams deleted the CFIndex branch February 10, 2023 04:32
@Constellation
Copy link
Member

watchOS ARM64_32's CFIndex is 32bit. So we should revert this.

@Constellation
Copy link
Member

Reverted in #9941

@AtariDreams AtariDreams restored the CFIndex branch February 11, 2023 20:15
@AtariDreams AtariDreams deleted the CFIndex branch February 12, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Bugs Unclassified bugs are placed in this component until the correct component can be determined.
Projects
None yet
5 participants