[webkit-changes] [WebKit/WebKit] f7a032: [WTF] Add makeLatin1CharacterBitSet helper

Yusuke Suzuki noreply at github.com
Mon Feb 24 02:25:05 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f7a032716eb781960e185d009ef2b6bb4fa55c46
      https://github.com/WebKit/WebKit/commit/f7a032716eb781960e185d009ef2b6bb4fa55c46
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

  Changed paths:
    M Source/JavaScriptCore/parser/Lexer.cpp
    M Source/JavaScriptCore/parser/Lexer.h
    M Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
    M Source/WTF/wtf/text/ASCIIFastPath.h

  Log Message:
  -----------
  [WTF] Add makeLatin1CharacterBitSet helper
https://bugs.webkit.org/show_bug.cgi?id=288358
rdar://145451411

Reviewed by Yijia Huang.

Move makeLatin1CharacterBitSet to WTF, and use it in JavaScriptCore to
generate BitSet for character tests cleanly.

* Source/JavaScriptCore/parser/Lexer.cpp:
(JSC::makeLatin1CharacterBitSet):
* Source/JavaScriptCore/parser/Lexer.h:
(JSC::Lexer<LChar>::isWhiteSpace):
* Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
(JSC::makeCharacterBitmap): Deleted.
* Source/WTF/wtf/text/ASCIIFastPath.h:
(WTF::makeLatin1CharacterBitSet):

Canonical link: https://commits.webkit.org/290938@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