[Webkit-unassigned] [Bug 237503] New: Optimize VMTraps::maybeNeedHandling().

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 5 11:22:27 PST 2022


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

            Bug ID: 237503
           Summary: Optimize VMTraps::maybeNeedHandling().
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mark.lam at apple.com

There's no need for VMTraps::maybeNeedHandling() to mask the VMTraps bits for events.  Under normal circumstances, there are no traps firing and the traps bits are 0 anyway.  We should optimize for this and do away with the masking.  Clients who use VMTraps::maybeNeedHandling() should and current does call VMTraps::needHandling() to get the real story on whether there are actually traps to handle or not.  Hence, the masking in VMTraps::maybeNeedHandling() is also not needed for correctness.

-- 
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/20220305/59aad103/attachment.htm>


More information about the webkit-unassigned mailing list