[webkit-changes] [WebKit/WebKit] 4855c7: [JSC] Use simde in JSON

Yusuke Suzuki noreply at github.com
Wed May 8 00:36:21 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4855c7a1dc4214523c0b3d0c430215456ed7a0a9
      https://github.com/WebKit/WebKit/commit/4855c7a1dc4214523c0b3d0c430215456ed7a0a9
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSONObject.cpp
    M Source/JavaScriptCore/runtime/LiteralParser.cpp
    M Source/WTF/wtf/text/StringCommon.h

  Log Message:
  -----------
  [JSC] Use simde in JSON
https://bugs.webkit.org/show_bug.cgi?id=273838
rdar://127688057

Reviewed by Keith Miller.

This patch implements following two things via simde.

1. Fast scanning of strings in JSON.parse.
2. Fast scanning and copying strings in JSON.stringify.

* Source/JavaScriptCore/runtime/JSONObject.cpp:
(JSC::FastStringifier<CharType>::append):
* Source/JavaScriptCore/runtime/LiteralParser.cpp:
(JSC::LiteralParser<CharType>::Lexer::lexString):
* Source/WTF/wtf/text/StringCommon.h:

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



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


More information about the webkit-changes mailing list