[Webkit-unassigned] [Bug 271949] New: AX: Introduce reference versions of AXObjectCache::get and AXObjectCache::getOrCreate

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 31 12:43:38 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=271949

            Bug ID: 271949
           Summary: AX: Introduce reference versions of AXObjectCache::get
                    and AXObjectCache::getOrCreate
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tyler_w at apple.com
                CC: andresg_22 at apple.com,
                    webkit-bug-importer at group.apple.com

At most callsites of AXObjectCache::get and AXObjectCache::getOrCreate, we already know the Node* / RenderObject* / Widget* is not null, but we still perform an extra null check in these methods anyways, which is a waste. And looking at the assembly generated by clang, it's not smart enough to optimize the null checks away itself in any of these contexts.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240331/b2ccee30/attachment.htm>


More information about the webkit-unassigned mailing list