Chromium Code Reviews
Description[regexp] Port RegExp.prototype[@@replace]
This moves the implementation of @@replace from regexp.js to builtins-regexp.cc
(the TurboFan fast path) and runtime-regexp.cc (slow path). The fast path
handles all cases in which the regexp itself is an unmodified JSRegExp
instance, the given 'replace' argument is not callable and does not contain any
'$' characters (i.e. we are doing a string replacement).
BUG=v8:5339
Committed: https://crrev.com/33a4faa47d664328464cb11597ac36d07051d7dd
Cr-Commit-Position: refs/heads/master@{#40253}
Patch Set 1 #Patch Set 2 : Copy COW arrays #Patch Set 3 : Tweaks in string code-stub-assembler methods #
Total comments: 10
Patch Set 4 : Address comments #Patch Set 5 : Reload last match info after RegExpMultiple #
Total comments: 2
Patch Set 6 : Rebaseline again #Patch Set 7 : Smi::kZero #
Messages
Total messages: 36 (27 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||