RESOLVED FIXED232927
Hasher should be able to hash pointers
https://bugs.webkit.org/show_bug.cgi?id=232927
Summary Hasher should be able to hash pointers
Antti Koivisto
Reported 2021-11-10 01:12:35 PST
Currently the implicitly convert to bool leading bad results.
Attachments
Patch (2.81 KB, patch)
2021-11-10 01:25 PST, Antti Koivisto
no flags
Patch for landing (2.70 KB, patch)
2021-11-10 03:56 PST, Antti Koivisto
no flags
Antti Koivisto
Comment 1 2021-11-10 01:25:41 PST
Kimmo Kinnunen
Comment 2 2021-11-10 02:49:11 PST
Comment on attachment 443782 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=443782&action=review > Tools/TestWebKitAPI/Tests/WTF/Hasher.cpp:200 > + EXPECT_EQ(is32Bit ? zero32BitHash : zero64BitHash, computeHash(nullPtr)); maybe use just uintptr_t, not is32Bit
Kimmo Kinnunen
Comment 3 2021-11-10 02:49:58 PST
Comment on attachment 443782 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=443782&action=review > Tools/TestWebKitAPI/Tests/WTF/Hasher.cpp:202 > + EXPECT_EQ(is32Bit ? computeHash(static_cast<uint32_t>(0xffffff)) : computeHash(static_cast<uint64_t>(0xffffff)), computeHash(ffffffPtr)); maybe test computeHash(nullptr) == computeHash(nullPtr)
Antti Koivisto
Comment 4 2021-11-10 03:56:31 PST
Created attachment 443796 [details] Patch for landing
EWS
Comment 5 2021-11-10 04:49:32 PST
Committed r285572 (244080@main): <https://commits.webkit.org/244080@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 443796 [details].
Radar WebKit Bug Importer
Comment 6 2021-11-10 04:50:22 PST
Note You need to log in before you can comment on or make changes to this bug.