Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c00fd8a9713c5c2ab4a542ea533d00cd205ec8f2
      
https://github.com/WebKit/WebKit/commit/c00fd8a9713c5c2ab4a542ea533d00cd205ec8f2
  Author: Vassili Bykov <[email protected]>
  Date:   2026-08-11 (Tue, 11 Aug 2026)

  Changed paths:
    A JSTests/stress/switch-string-inline-atom-dispatch.js
    M Source/JavaScriptCore/jit/BaselineJITRegisters.h
    M Source/JavaScriptCore/jit/JITOpcodes.cpp
    M Source/JavaScriptCore/runtime/OptionsList.h

  Log Message:
  -----------
  [JSC] Implement op_switch_string fast path in baseline JIT
https://bugs.webkit.org/show_bug.cgi?id=321476
rdar://184566236

Reviewed by Yusuke Suzuki.

Higher JIT tiers generate a fast path for op_switch_string to perform pointer
identity-based inline dispatch if the scrutinee is an atom. Baseline JIT does 
not do that,
so dispatch is always handled by the slow case 
operationSwitchStringWithUnknownKeyType,
which hashes the scrutinee's characters and probes the jump table.

This patch adds support to generate a fast path in the baseline JIT tier to 
handle an
atomic scrutinee.

Testing: added JSTests/stress/switch-string-inline-atom-dispatch.js to ensure 
correctness
Canonical link: https://commits.webkit.org/318959@main



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

Reply via email to