Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b2323ec6eaf613835bbaf8964d6e6d53b5310653
https://github.com/WebKit/WebKit/commit/b2323ec6eaf613835bbaf8964d6e6d53b5310653
Author: Sosuke Suzuki <[email protected]>
Date: 2025-03-23 (Sun, 23 Mar 2025)
Changed paths:
M Source/JavaScriptCore/dfg/DFGOperations.cpp
M Source/JavaScriptCore/dfg/DFGOperations.h
M Source/JavaScriptCore/runtime/StringPrototype.cpp
M Source/JavaScriptCore/runtime/StringPrototype.h
M Source/JavaScriptCore/runtime/StringPrototypeInlines.h
Log Message:
-----------
[JSC] Move `String#search` related JIT operations from
`runtime/StringPrototype` to `dfg/DFGOperations`
https://bugs.webkit.org/show_bug.cgi?id=290249
Reviewed by Yusuke Suzuki.
Unlike many other JIT operations, the definitions and declarations of the JIT
operations related to `String#search` and `String#searchAll` are located in
`runtime/StringPrototype.h` and `runtime/StringPrototype.cpp`, rather than in
`dfg/DFGOperations.h` and `dfg/DFGOperations.cpp`.
This patch moves those JIT operations to `dfg/DFGOperations` for consistency
with the rest of the codebase. It also moves dependent functions from
`StringPrototype.cpp` to `StringPrototypeInlines.h`(The logic of the functions
remains completely unchanged).
* Source/JavaScriptCore/dfg/DFGOperations.cpp:
(JSC::DFG::JSC_DEFINE_JIT_OPERATION):
* Source/JavaScriptCore/dfg/DFGOperations.h:
* Source/JavaScriptCore/runtime/StringPrototype.cpp:
(JSC::jsSpliceSubstrings): Deleted.
(JSC::removeUsingRegExpSearch): Deleted.
(JSC::replaceUsingRegExpSearchWithCache): Deleted.
(JSC::tryTrimSpaces): Deleted.
(JSC::replaceUsingRegExpSearch): Deleted.
(JSC::JSC_DEFINE_JIT_OPERATION): Deleted.
(JSC::checkObjectCoercible): Deleted.
(JSC::replace): Deleted.
* Source/JavaScriptCore/runtime/StringPrototype.h:
* Source/JavaScriptCore/runtime/StringPrototypeInlines.h:
(JSC::jsSpliceSubstrings):
(JSC::removeUsingRegExpSearch):
(JSC::replaceUsingRegExpSearchWithCache):
(JSC::tryTrimSpaces):
(JSC::replaceUsingRegExpSearch):
(JSC::checkObjectCoercible):
(JSC::replace):
Canonical link: https://commits.webkit.org/292557@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