Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4300c2ca618ec7fd758457844534313154356d91
      
https://github.com/WebKit/WebKit/commit/4300c2ca618ec7fd758457844534313154356d91
  Author: Daniel Liu <[email protected]>
  Date:   2025-04-01 (Tue, 01 Apr 2025)

  Changed paths:
    A JSTests/stress/regexp-dont-merge-far-apart-characters.js
    M Source/JavaScriptCore/yarr/YarrJIT.cpp

  Log Message:
  -----------
  Yarr generatePatternCharacterOnce should limit how far away it coalesces 
characters
https://bugs.webkit.org/show_bug.cgi?id=290789
rdar://148244655

Reviewed by Yusuke Suzuki.

Currently, our optimization is able to read pattern characters any number of 
characters
away, as long as everything in between is empty. This could lead to unnecessary 
loading
of those intermediate characters. We constrain the JIT to search up to 16 
characters in
each direction (two 8B loads), allowing us to group close pattern characters, 
while not
getting too aggressive with this optimization.

* Source/JavaScriptCore/yarr/YarrJIT.cpp:
* JSTests/stress/regexp-dont-merge-far-apart-characters.js:

Canonical link: https://commits.webkit.org/293011@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to