Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 316c1ac309447e7aaa2423992487ec008f603abd
      
https://github.com/WebKit/WebKit/commit/316c1ac309447e7aaa2423992487ec008f603abd
  Author: Sosuke Suzuki <[email protected]>
  Date:   2026-10-10 (Sat, 10 Oct 2026)

  Changed paths:
    M Source/JavaScriptCore/jit/JITCall.cpp
    M Source/JavaScriptCore/llint/LowLevelInterpreter64.asm

  Log Message:
  -----------
  [JSC] `op_iterator_next` should inline Latin-1 characters in 16-bit strings 
in Baseline JIT and LLInt
https://bugs.webkit.org/show_bug.cgi?id=326952

Reviewed by Yusuke Suzuki.

The FastString path of op_iterator_next in Baseline JIT and LLInt, inlined in
322928@main, only handles 8-bit strings. A string is 16-bit as soon as it has
one non-Latin-1 character, so its ASCII characters called into C++ too.

This patch reads the character of a 16-bit string inline, as 323062@main did
for DFG and FTL. If it is maxSingleCharacterString or less, we return the
cached single-character string as we do for 8-bit strings. Larger characters
still take the existing path.

* Source/JavaScriptCore/jit/JITCall.cpp:
(JSC::JIT::emit_op_iterator_next):
* Source/JavaScriptCore/llint/LowLevelInterpreter64.asm:

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



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

Reply via email to