Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ee99d3c4eb6b97db2b7ab60e56186f92a332b5db
      
https://github.com/WebKit/WebKit/commit/ee99d3c4eb6b97db2b7ab60e56186f92a332b5db
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp

  Log Message:
  -----------
  [JSC] op_async_iterator_next DFG should also subscribe promise-watchpoint
https://bugs.webkit.org/show_bug.cgi?id=319624
rdar://182448235

Reviewed by Yijia Huang.

We were subscribing promise-watchpoint on op_async_iterator_open but not
in op_async_iterator_next, that's not correct since we may change this
condition in the Generic path of op_async_iterator_open, and still we
may hit the fast path in the op_async_iterator_next. We align much more
to the op_iterator_open / op_iterator_next (did a bit cleanup too). And
now whenever we emit IterationMode::FastAsyncGenerator fast path, we
always subscribe the watchpoint.

* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleIteratorOpen):
(JSC::DFG::ByteCodeParser::handleIteratorNext):
(JSC::DFG::ByteCodeParser::handleAsyncIteratorOpen):
(JSC::DFG::ByteCodeParser::handleAsyncIteratorNext):

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



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

Reply via email to