[Webkit-unassigned] [Bug 201172] New: Refactor to use VM& instead of VM* at as many places as possible.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 26 22:11:57 PDT 2019


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

            Bug ID: 201172
           Summary: Refactor to use VM& instead of VM* at as many places
                    as possible.
           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 better documents that the VM pointer is expected to almost never be null.  There are very few places where it cane null.  Those will be left using a VM*.

Also converted some uses of ExecState* to using VM& instead since those ExecState* is only there to fetch the VM pointer.  Doing this also reduces the number of times we have to compute the VM* from ExecState*.

This patch is not exhaustive in converting to use VM&, but applies the change to many commonly used pieces of code for a start.

-- 
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/20190827/0cd49ee1/attachment.html>


More information about the webkit-unassigned mailing list