Commit b2323ec
committed
[JSC] Move
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@mainString#search related JIT operations from runtime/StringPrototype to dfg/DFGOperations
1 parent e5f7177 commit b2323ec
5 files changed
Lines changed: 924 additions & 922 deletions
File tree
- Source/JavaScriptCore
- dfg
- runtime
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3203 | 3203 | | |
3204 | 3204 | | |
3205 | 3205 | | |
| 3206 | + | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
| 3248 | + | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
3206 | 3304 | | |
3207 | 3305 | | |
3208 | 3306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
290 | 297 | | |
291 | 298 | | |
292 | 299 | | |
| |||
0 commit comments