Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e5f7abfaed5da1f24a206bd04b3e672980710bba
      
https://github.com/WebKit/WebKit/commit/e5f7abfaed5da1f24a206bd04b3e672980710bba
  Author: Sosuke Suzuki <[email protected]>
  Date:   2026-01-08 (Thu, 08 Jan 2026)

  Changed paths:
    A JSTests/microbenchmarks/string-is-well-formed.js
    A JSTests/microbenchmarks/string-to-well-formed.js
    M Source/JavaScriptCore/runtime/StringPrototype.cpp
    M Source/WTF/wtf/CMakeLists.txt
    M Source/WTF/wtf/text/StringCommon.cpp
    M Source/WTF/wtf/text/StringCommon.h

  Log Message:
  -----------
  [JSC] Optimize `String#isWellFormed` and `String#toWellFormed` using simdutf
https://bugs.webkit.org/show_bug.cgi?id=304842

Reviewed by Yusuke Suzuki.

This patch changes to use simdutf in String.prototype.isWellFormed() and
String.prototype.toWellFormed().

                               TipOfTree                  Patched

string-to-well-formed      345.1334+-1.7600     ^     66.4591+-0.1386        ^ 
definitely 5.1932x faster
string-is-well-formed      155.4431+-66.9387    ^     29.0142+-0.4967        ^ 
definitely 5.3575x faster

* JSTests/microbenchmarks/string-is-well-formed.js: Added.
(testWellFormed):
* JSTests/microbenchmarks/string-to-well-formed.js: Added.
(testToWellFormed):
* Source/JavaScriptCore/runtime/StringPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
(JSC::illFormedIndex): Deleted.
* Source/WTF/wtf/CMakeLists.txt:
* Source/WTF/wtf/text/StringCommon.cpp:
(WTF::isWellFormedUTF16):
(WTF::toWellFormedUTF16):
* Source/WTF/wtf/text/StringCommon.h:

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



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

Reply via email to