[webkit-changes] [WebKit/WebKit] 76547e: [JSC] Add `JSRegExpStringIterator`

SUZUKI Sosuke noreply at github.com
Thu Sep 12 00:18:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 76547e37c8f73435146523d09f4b0ee63ab3cba8
      https://github.com/WebKit/WebKit/commit/76547e37c8f73435146523d09f4b0ee63ab3cba8
  Author: Sosuke Suzuki <aosukeke at gmail.com>
  Date:   2024-09-12 (Thu, 12 Sep 2024)

  Changed paths:
    M Source/JavaScriptCore/CMakeLists.txt
    M Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
    M Source/JavaScriptCore/Sources.txt
    M Source/JavaScriptCore/builtins/BuiltinNames.h
    M Source/JavaScriptCore/builtins/RegExpPrototype.js
    M Source/JavaScriptCore/builtins/RegExpStringIteratorPrototype.js
    M Source/JavaScriptCore/bytecode/BytecodeIntrinsicRegistry.cpp
    M Source/JavaScriptCore/bytecode/BytecodeIntrinsicRegistry.h
    M Source/JavaScriptCore/bytecode/LinkTimeConstant.h
    M Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h
    M Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
    M Source/JavaScriptCore/heap/Heap.h
    M Source/JavaScriptCore/heap/HeapSubspaceTypes.h
    M Source/JavaScriptCore/runtime/JSGlobalObject.cpp
    M Source/JavaScriptCore/runtime/JSGlobalObject.h
    A Source/JavaScriptCore/runtime/JSRegExpStringIterator.cpp
    A Source/JavaScriptCore/runtime/JSRegExpStringIterator.h
    A Source/JavaScriptCore/runtime/JSRegExpStringIteratorInlines.h
    M Source/JavaScriptCore/runtime/JSType.cpp
    M Source/JavaScriptCore/runtime/JSType.h

  Log Message:
  -----------
  [JSC] Add `JSRegExpStringIterator`
https://bugs.webkit.org/show_bug.cgi?id=279334

Reviewed by Yusuke Suzuki.

This patch adds `JSRegExpStringIterator`.

* Source/JavaScriptCore/CMakeLists.txt:
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
* Source/JavaScriptCore/Sources.txt:
* Source/JavaScriptCore/builtins/BuiltinNames.h:
* Source/JavaScriptCore/builtins/RegExpPrototype.js:
(overriddenName.string_appeared_here.matchAll):
(linkTimeConstant.RegExpStringIterator): Deleted.
* Source/JavaScriptCore/builtins/RegExpStringIteratorPrototype.js:
(next):
* Source/JavaScriptCore/bytecode/BytecodeIntrinsicRegistry.cpp:
(JSC::BytecodeIntrinsicRegistry::BytecodeIntrinsicRegistry):
* Source/JavaScriptCore/bytecode/BytecodeIntrinsicRegistry.h:
* Source/JavaScriptCore/bytecode/LinkTimeConstant.h:
* Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:
(JSC::BytecodeGenerator::emitIsRegExpStringIterator):
* Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:
(JSC::regExpStringIteratorInternalFieldIndex):
(JSC::BytecodeIntrinsicNode::emit_intrinsic_getRegExpStringIteratorInternalField):
(JSC::BytecodeIntrinsicNode::emit_intrinsic_putRegExpStringIteratorInternalField):
* Source/JavaScriptCore/heap/Heap.h:
* Source/JavaScriptCore/heap/HeapSubspaceTypes.h:
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
(JSC::JSGlobalObject::visitChildrenImpl):
* Source/JavaScriptCore/runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::regExpStringIteratorPrototype const):
(JSC::JSGlobalObject::regExpStringIteratorStructure const):
* Source/JavaScriptCore/runtime/JSRegExpStringIterator.cpp: Added.
(JSC::JSRegExpStringIterator::createWithInitialValues):
(JSC::JSRegExpStringIterator::finishCreation):
(JSC::JSRegExpStringIterator::visitChildrenImpl):
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/JSRegExpStringIterator.h: Added.
* Source/JavaScriptCore/runtime/JSRegExpStringIteratorInlines.h: Added.
(JSC::JSRegExpStringIterator::createStructure):
* Source/JavaScriptCore/runtime/JSType.cpp:
(WTF::printInternal):
* Source/JavaScriptCore/runtime/JSType.h:

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



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


More information about the webkit-changes mailing list