Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: eef93d3c2048ad7b1f2cb299d4fcb3b4fd176272
      
https://github.com/WebKit/WebKit/commit/eef93d3c2048ad7b1f2cb299d4fcb3b4fd176272
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M Source/JavaScriptCore/yarr/YarrJIT.cpp

  Log Message:
  -----------
  [YARR] Optimize save and restore ParenContext
https://bugs.webkit.org/show_bug.cgi?id=316555
rdar://179025965

Reviewed by Yijia Huang.

This patch optimizes save / restore ParenContext in YarrJIT. We
carefully reorder the load / store so that we remove unnecessary loads,
which is critical for performance in particular in RegExp which tends to
have small JIT code.

1. matchAmount load is duplicate. We should hoist it and remove
   duplicate loads.
2. Skip return-address storing when we know it is not necessary (there
   are only 1 (or less) alternative).

* Source/JavaScriptCore/yarr/YarrJIT.cpp:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to