[Webkit-unassigned] [Bug 242353] New: Add const to some fields that are meant to be immutable after construction.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 5 12:30:57 PDT 2022


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

            Bug ID: 242353
           Summary: Add const to some fields that are meant to be
                    immutable after construction.
           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

This helps provides a hint to the compiler that a previously fetched constant field need not be re-fetched.  Secondly, it documents for the reader that the intention that the field will not change after construction.

-- 
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/20220705/9a0b650c/attachment.htm>


More information about the webkit-unassigned mailing list