Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 72a6facdf6de1a86c14271fb02904443ebacd159
      
https://github.com/WebKit/WebKit/commit/72a6facdf6de1a86c14271fb02904443ebacd159
  Author: Chris Dumez <[email protected]>
  Date:   2026-04-02 (Thu, 02 Apr 2026)

  Changed paths:
    M Source/JavaScriptCore/parser/Lexer.cpp

  Log Message:
  -----------
  [JSC] Use makeLatin1Identifier in parseString SIMD fast path
https://bugs.webkit.org/show_bug.cgi?id=311322

Reviewed by Yusuke Suzuki.

The parseString SIMD fast path for Lexer<char16_t> already guarantees
all characters are Latin1 (non-Latin1 triggers fallback to the slow
case), but was calling makeIdentifier which stores the string as
16-bit. Use makeLatin1Identifier instead to create an 8-bit backed
string, halving memory usage for these string literals.

For Lexer<Latin1Character>, the overload resolves to the same
m_arena->makeIdentifier call as before, so no behavior change.

* Source/JavaScriptCore/parser/Lexer.cpp:
(JSC::Lexer<T>::parseString):

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



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

Reply via email to