[webkit-changes] [WebKit/WebKit] a3b8b6: [JSC] Add fast IDENT path for one character

Yusuke Suzuki noreply at github.com
Thu Feb 27 01:22:11 PST 2025


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

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

  Log Message:
  -----------
  [JSC] Add fast IDENT path for one character
https://bugs.webkit.org/show_bug.cgi?id=288610
rdar://145667037

Reviewed by Keith Miller.

JavaScript is minified in the real world websites in most of cases. This
means that one character Identifier in the source code can be seen very
frequently. We add a super fast path in the parser handling one
character identifier.

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

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