Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 92c6650c7947d5f16d5568a8e03fea7b3706fd54
      
https://github.com/WebKit/WebKit/commit/92c6650c7947d5f16d5568a8e03fea7b3706fd54
  Author: Trial <trial@local>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    M Source/JavaScriptCore/CMakeLists.txt
    M Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
    M Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp
    M Source/JavaScriptCore/jit/JITOperations.cpp
    M Source/JavaScriptCore/runtime/AsyncFromSyncIteratorPrototype.cpp
    M Source/JavaScriptCore/runtime/CommonSlowPaths.cpp
    M Source/JavaScriptCore/runtime/IteratorOperations.h
    M Source/JavaScriptCore/runtime/JSArrayIterator.h
    A Source/JavaScriptCore/runtime/JSArrayIteratorInlines.h

  Log Message:
  -----------
  [JSC] Add JSArrayIterator::next
https://bugs.webkit.org/show_bug.cgi?id=320731
rdar://183717343

Reviewed by Marcus Plutowski.

Let's add next and nextWithAdvance to JSArrayIterator as the same to the
other iterators like JSSetIterator. This cleans up a lot of code which
manually modifies JSArrayIterator.

* Source/JavaScriptCore/CMakeLists.txt:
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
* Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp:
(Inspector::cloneArrayIteratorObject):
* Source/JavaScriptCore/jit/JITOperations.cpp:
(JSC::JSC_DEFINE_JIT_OPERATION):
* Source/JavaScriptCore/runtime/AsyncFromSyncIteratorPrototype.cpp:
(JSC::driveFastSyncIterator):
* Source/JavaScriptCore/runtime/CommonSlowPaths.cpp:
(JSC::iteratorNextTryFastImpl):
* Source/JavaScriptCore/runtime/IteratorOperations.h:
(JSC::forEachInFastArray):
(JSC::forEachInIterable):
* Source/JavaScriptCore/runtime/JSArrayIterator.h:
* Source/JavaScriptCore/runtime/JSArrayIteratorInlines.h: Added.
(JSC::JSArrayIterator::nextWithAdvance):
(JSC::JSArrayIterator::next):

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



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

Reply via email to