Description[bootstrapper] Ensure RegExp constructor has fast properties.
Currently x instanceof RegExp checks cannot take the fast path, since
the RegExp constructor has dictionary properties. To avoid that, just
forcibly migrate the RegExp constructor to fast properties again once
it's fully setup in the bootstrapper. This yields a 10x improvement for
x instanceof RegExp checks.
R=yangguo@chromium.org
BUG=v8:5902
Review-Url: https://codereview.chromium.org/2786143004
Cr-Commit-Position: refs/heads/master@{#44316}
Committed: https://chromium.googlesource.com/v8/v8/+/2de2840f2ec238226504fcf05bac6f01cfd2b53d
Patch Set 1 #Patch Set 2 : Fix test. #
Messages
Total messages: 17 (12 generated)
|