Description[regexp] Port RegExp.prototype.exec to TurboFan
This ports RegExp.prototype.exec to a TurboFan builtin.
LastMatchInfo is now stored on the context in order to be able to access
it from the stub.
Unmodified RegExp instances go through a fast path of accessing the
lastIndex property as an in-object field, while modified instances call
into runtime for lastIndex loads and stores.
Octane/regexp shows slight improvements (between 0 and 5%) with this CL.
BUG=v8:5339
Committed: https://crrev.com/db99bdff767177cfc6467400955fc156a7459658
Cr-Commit-Position: refs/heads/master@{#39899}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Handle modified regexp instances #Patch Set 4 : Fix whitespace #Patch Set 5 : Format #Patch Set 6 : Handle smi this values #
Total comments: 43
Patch Set 7 : Address comments #
Total comments: 4
Patch Set 8 : Address comments #
Messages
Total messages: 38 (28 generated)
|