Description[csa] Add ToLength and ToString variants with inlined fast checks
Smis can easily be handled outside the stub call without adding much to code
size.
The ToString inlining adds overhead of repeated instance type loads and checks,
but under the assumption that it is called with mostly string values it should
speed things up (a local RegExp.p[@@replace] microbenchmark shows consistent
1.6% improvements).
Drive-by-fix: Remove duplication in ToString implementations.
BUG=
Review-Url: https://codereview.chromium.org/2874423003
Cr-Commit-Position: refs/heads/master@{#45287}
Committed: https://chromium.googlesource.com/v8/v8/+/646fdacaa790fa29f0a7224a513c6514ecb9f627
Patch Set 1 #Patch Set 2 : ToString #
Messages
Total messages: 17 (14 generated)
|