Description[regexp] Port RegExpConstructor to C++
This moves the RegExp constructor to C++. Local runs of octane/regexp are
performance-neutral:
C++: 4970.1 +- 404.981
JS: 4869.2 +- 586.743
That's probably only the case because exec and replace dominate
octane/regexp. There's potential for improvement here, for instance by
adding a fast-path if new.target is an unmodified JSRegExp function.
BUG=v8:5339
Committed: https://crrev.com/d515156441fcdbb981fb6fde03bc6a72ce40ea72
Cr-Commit-Position: refs/heads/master@{#39981}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Address comments #Patch Set 3 : Remove receiver check for new target #Patch Set 4 : TODOs and a minor optimization #
Total comments: 2
Patch Set 5 : Don't use incremental string builder for flags #Patch Set 6 : Don't use incremental string builder for flags #Patch Set 7 : Rebase #
Messages
Total messages: 27 (18 generated)
|