[Webkit-unassigned] [Bug 230469] New: Inline RegExp.test JIT code in DFG and FTL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 19 18:05:52 PDT 2021


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

            Bug ID: 230469
           Summary: Inline RegExp.test JIT code in DFG and FTL
           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: msaboff at apple.com

RegExp.test() is used to check if a string matches, without recording any captured groups.  Currently we call out to C++ code that compiles JIT code for the regular expression, then calls the regular expression, creates a matches array with the result, and then converts the result to a boolean. There are several levels of calls.  If we inlined the RegExp processing and customize it to do what is minimally needed for the "test()" function this would benefit frequently use.  It makes sense to limit the amount of inlined code and continue to use the the current path for larger expressions.

-- 
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/20210920/cddb7cd9/attachment.htm>


More information about the webkit-unassigned mailing list