Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a2db78b8fdbef3caa09cb0165315ef552a073590
      
https://github.com/WebKit/WebKit/commit/a2db78b8fdbef3caa09cb0165315ef552a073590
  Author: Justin Michaud <[email protected]>
  Date:   2024-07-18 (Thu, 18 Jul 2024)

  Changed paths:
    M JSTests/wasm.yaml
    M JSTests/wasm/stress/cc-int-to-int-tail-call.js
    A JSTests/wasm/stress/simd-tail-call-simple.js
    M JSTests/wasm/stress/simd-tail-calls-throw.js
    A JSTests/wasm/stress/tail-call-double.js
    A JSTests/wasm/stress/tail-call-js-inline.js
    A JSTests/wasm/stress/tail-call-js.js
    A JSTests/wasm/stress/tail-call-simple-int.js
    A JSTests/wasm/stress/tail-call-simple.js
    M JSTests/wasm/stress/tail-call.js
    M Source/JavaScriptCore/assembler/MacroAssembler.cpp
    M Source/JavaScriptCore/assembler/MacroAssembler.h
    M Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
    M Source/JavaScriptCore/jit/CCallHelpers.h
    M Source/JavaScriptCore/llint/WebAssembly.asm
    M Source/JavaScriptCore/wasm/WasmOMGIRGenerator.cpp

  Log Message:
  -----------
  WASM tail calls should work in OMG tier
https://bugs.webkit.org/show_bug.cgi?id=273875

Reviewed by Keith Miller.

Tom's original patch was correct, but we told him to elide moves to temporary 
storage when they
weren't needed. Unfortunately, the current version on ToT clobbers a bunch of 
important stuff. Let's
fix that.

We also fix up LLInt, since it had a bit of bit rot.

Finally, we add a new kind of tail call, a fake tail call, for the case when an 
inlined call makes
a tail call.

There is still more work to be done to ensure that this code is correct; Tests 
for stack traces,
inlined calls that clobber instance, and more advanced stack / regalloc 
situations are all
still needed.

* JSTests/wasm/stress/simd-tail-call-simple.js: Added.
* JSTests/wasm/stress/tail-call-js.js: Added.
* JSTests/wasm/stress/tail-call-simple.js: Added.
* Source/JavaScriptCore/wasm/WasmOMGIRGenerator.cpp:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to