Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c888ae4f70a1842f5d1115154e9497fe9be24b34
      
https://github.com/WebKit/WebKit/commit/c888ae4f70a1842f5d1115154e9497fe9be24b34
  Author: Keith Miller <[email protected]>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M Source/JavaScriptCore/llint/InPlaceInterpreter64.asm
    M Source/JavaScriptCore/wasm/WasmIPIntSlowPaths.cpp
    M Source/JavaScriptCore/wasm/debugger/WasmExecutionHandler.cpp

  Log Message:
  -----------
  [Wasm] Unify IPInt's prepare_call and prepare_call_indirect paths
https://bugs.webkit.org/show_bug.cgi?id=312403
rdar://174857273

Reviewed by Yijia Huang and Yusuke Suzuki.

prepare_call_indirect and prepare_call_ref return the target instance
in r1 (via WASM_CALL_RETURN), but prepare_call always returned the
caller's instance, relying on import stubs to switch instances later.

For wasm-to-wasm imports, prepare_call now returns the target instance
and the real entrypoint, bypassing the wasm_to_wasm_ipint_wrapper_entry
stub. JS imports are unchanged, they still return the caller instance
and the import stub, which handles the transition. Although, I updated
comments to better reflect this happens.

This also removes stale commented out instance-swapping code from
mintAlign(_call) in the asm.

No new tests, covered by existing tests. No behavior change.

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



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

Reply via email to