[webkit-changes] [WebKit/WebKit] de25b6: getCachedWrapper always does HashMap lookup when t...

Ryosuke Niwa noreply at github.com
Fri Mar 22 21:32:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: de25b66294c4464ed255eb374082cdb501dd31e7
      https://github.com/WebKit/WebKit/commit/de25b66294c4464ed255eb374082cdb501dd31e7
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2024-03-22 (Fri, 22 Mar 2024)

  Changed paths:
    M Source/WebCore/bindings/js/JSDOMWrapperCache.h

  Log Message:
  -----------
  getCachedWrapper always does HashMap lookup when the wrapper doesn't exist
https://bugs.webkit.org/show_bug.cgi?id=271505

Reviewed by Yusuke Suzuki.

This PR eliminates the hash map lookup for an object object which inherits from
ScriptWrappable when the wrapper doesn't exist for the main world.

* Source/WebCore/bindings/js/JSDOMWrapperCache.h:
(WebCore::getCachedWrapper):
(WebCore::getInlineCachedWrapper): Deleted.

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list