[webkit-changes] [WebKit/WebKit] 2d05c1: [JSC] Use jsSubstring with JSString

Yusuke Suzuki noreply at github.com
Tue Aug 1 09:44:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2d05c14c15115713fb374d74ae4d956e09b38e6f
      https://github.com/WebKit/WebKit/commit/2d05c14c15115713fb374d74ae4d956e09b38e6f
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M Source/JavaScriptCore/runtime/StringPrototype.cpp
    M Source/JavaScriptCore/runtime/StringPrototypeInlines.h

  Log Message:
  -----------
  [JSC] Use jsSubstring with JSString
https://bugs.webkit.org/show_bug.cgi?id=259678
rdar://113191047

Reviewed by Mark Lam.

This patch uses more jsSubstring + JSString* form instead of jsSubstring + WTF::String form
since it can have more opportunities for optimizations including 2-characters atomizations.

* Source/JavaScriptCore/runtime/StringPrototype.cpp:
(JSC::replaceUsingRegExpSearch):
* Source/JavaScriptCore/runtime/StringPrototypeInlines.h:
(JSC::replaceUsingStringSearch):

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




More information about the webkit-changes mailing list