-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Reduce use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in the StringImpl.cpp #47343
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
Reduce use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in the StringImpl.cpp #47343
Conversation
EWS run on previous version of this PR (hash 20d9e69) |
20d9e69
to
2174157
Compare
EWS run on previous version of this PR (hash 2174157) |
2174157
to
061249a
Compare
EWS run on current version of this PR (hash 061249a) |
Source/WTF/wtf/text/StringImpl.cpp
Outdated
auto bCharacters = b->span8(); | ||
for (auto [aCharacter, bCharacter] : zippedRange(a, bCharacters)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto bCharacters = b->span8(); | |
for (auto [aCharacter, bCharacter] : zippedRange(a, bCharacters)) { | |
for (auto [aCharacter, bCharacter] : zippedRange(a, b->span8())) { |
061249a
to
5d42dd3
Compare
https://bugs.webkit.org/show_bug.cgi?id=295162 Reviewed by Darin Adler. Reduce use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in the StringImpl.cpp, for safety. This tested as performance neutral on Speedometer and JetStream. * Source/WTF/wtf/text/StringImpl.cpp: (WTF::equalInner): (WTF::StringImpl::replace): (WTF::equalInternal): (WTF::equalIgnoringNullity): * Source/WTF/wtf/text/StringImpl.h: (WTF::equal): Canonical link: https://commits.webkit.org/296784@main
5d42dd3
to
8d157ca
Compare
Committed 296784@main (8d157ca): https://commits.webkit.org/296784@main Reviewed commits have been landed. Closing PR #47343 and removing active labels. |
8d157ca
5d42dd3