Description[regexp] RegExp.prototype.replace fast-paths
This CL adds two new fast-paths for RegExp.prototype.replace in the case
that the regexp itself is an unmodified JSRegExp instance and the
replace argument is callable. Such cases call directly into runtime.
This could be improved even further by turning the relevant runtime
functions into inline TurboFan.
BUG=v8:5339
Committed: https://crrev.com/7a75f34b20487f72f2de9baf7cd5871fe925c969
Cr-Commit-Position: refs/heads/master@{#40381}
Patch Set 1 #Patch Set 2 : Set lastIndex for global RegExps #Patch Set 3 : Remove unused variable #
Total comments: 2
Messages
Total messages: 20 (15 generated)
|