Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2748be6ccef1a513c22eeee0ac330f7e276d39d0
      
https://github.com/WebKit/WebKit/commit/2748be6ccef1a513c22eeee0ac330f7e276d39d0
  Author: Sosuke Suzuki <[email protected]>
  Date:   2025-09-02 (Tue, 02 Sep 2025)

  Changed paths:
    A JSTests/microbenchmarks/async-from-sync-iterator.js
    A JSTests/stress/async-from-sync-iterator-jit.js
    M Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
    M Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp
    M Source/JavaScriptCore/dfg/DFGOperations.cpp
    M Source/JavaScriptCore/dfg/DFGOperations.h
    M Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
    M Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
    M Source/JavaScriptCore/runtime/Intrinsic.h
    M Source/JavaScriptCore/runtime/JSGlobalObject.cpp
    M Source/JavaScriptCore/runtime/JSGlobalObject.h

  Log Message:
  -----------
  [JSC] Optimize `@asyncFromSyncIteratorCreate` in DFG/FTL
https://bugs.webkit.org/show_bug.cgi?id=298210

Reviewed by Yusuke Suzuki.

This patch changes to optimize `@asyncFromSyncIteratorCreate` in DFG/FTL.

                                  TipOfTree                  Patched

async-from-sync-iterator       10.9432+-0.3482     ^      9.8568+-0.1681        
^ definitely 1.1102x faster

* JSTests/microbenchmarks/async-from-sync-iterator.js: Added.
(test):
(const.syncIterable.Symbol.iterator):
* JSTests/stress/async-from-sync-iterator-jit.js: Added.
(shouldBe):
(async test):
(getSyncIterable):
* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleIntrinsicCall):
* Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp:
* Source/JavaScriptCore/dfg/DFGOperations.cpp:
(JSC::DFG::JSC_DEFINE_JIT_OPERATION):
* Source/JavaScriptCore/dfg/DFGOperations.h:
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileNewInternalFieldObject):
* Source/JavaScriptCore/runtime/Intrinsic.h:
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
(JSC::JSGlobalObject::visitChildrenImpl):
* Source/JavaScriptCore/runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::asyncFromSyncIteratorStructure const):

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