Skip to content

Commit

Permalink
Cherry-pick 2511322. rdar://122693092
Browse files Browse the repository at this point in the history
    Use QualifiedNameImpl* as the hash key for Attribute
    https://bugs.webkit.org/show_bug.cgi?id=269093

    Reviewed by Chris Dumez and Yusuke Suzuki.

    Use QualifiedNameImpl* instead of QualifiedName::hash as the hasher input
    for Attribute to avoid the indirect memory loads.

    * Source/WebCore/dom/QualifiedName.h:
    (WebCore::add):

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

Identifier: 272448.529@safari-7618-branch
  • Loading branch information
rniwa authored and Dan Robson committed Feb 12, 2024
1 parent 0017dc1 commit 6f4e77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebCore/dom/QualifiedName.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ inline void add(Hasher& hasher, const QualifiedName::QualifiedNameImpl& impl)

inline void add(Hasher& hasher, const QualifiedName& name)
{
add(hasher, *name.impl());
add(hasher, bitwise_cast<uintptr_t>(name.impl()));
}

extern LazyNeverDestroyed<const QualifiedName> anyName;
Expand Down

0 comments on commit 6f4e77c

Please sign in to comment.