Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 31bc5e6778d429c8b07a8bc78380e7b5e47a906f
      
https://github.com/WebKit/WebKit/commit/31bc5e6778d429c8b07a8bc78380e7b5e47a906f
  Author: Sosuke Suzuki <[email protected]>
  Date:   2026-01-13 (Tue, 13 Jan 2026)

  Changed paths:
    M Source/JavaScriptCore/builtins/RegExpStringIteratorPrototype.js
    M Source/JavaScriptCore/bytecode/BytecodeIntrinsicRegistry.cpp
    M Source/JavaScriptCore/bytecode/BytecodeIntrinsicRegistry.h
    M Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
    M Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
    M Source/JavaScriptCore/runtime/JSRegExpStringIterator.cpp
    M Source/JavaScriptCore/runtime/JSRegExpStringIterator.h
    M Source/JavaScriptCore/runtime/RegExpPrototype.cpp

  Log Message:
  -----------
  [JSC] Merge boolean fields in `JSRegExpStringIterator` into a single bitfield
https://bugs.webkit.org/show_bug.cgi?id=305258

Reviewed by Yusuke Suzuki.

The Global, FullUnicode, and Done fields are now stored as bit flags in a
single Flags field, reducing the object size from 56 to 40 bytes.

* Source/JavaScriptCore/builtins/RegExpStringIteratorPrototype.js:
(next): Use bitwise operations to read/write flags.
* Source/JavaScriptCore/bytecode/BytecodeIntrinsicRegistry.cpp:
(JSC::BytecodeIntrinsicRegistry::BytecodeIntrinsicRegistry):
* Source/JavaScriptCore/bytecode/BytecodeIntrinsicRegistry.h:
* Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:
(JSC::regExpStringIteratorInternalFieldIndex):
* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleIntrinsicCall):
* Source/JavaScriptCore/runtime/JSRegExpStringIterator.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/JSRegExpStringIterator.h:
* Source/JavaScriptCore/runtime/RegExpPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):

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



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

Reply via email to