Add StringView conversion operator on V8StringResource.
This allows APIs, such as DOM gettings, to take a StringView instead of an AtomicString. On platforms where externalization isn't supported for short strings, this will yield a speed benefit as there will be no AtomicString created. This can especially affect (questionably useful) microbenchmarks like blink_perf.binding get-attribute.html which can hammer the non-externalized path on some platforms. Usages of this API will come in a follow-up CL. This is partially broken out of https://chromium-review.googlesource.com/c/chromium/src/+/2204539 which in turn is broken out of https://chromium-review.googlesource.com/c/chromium/src/+/1557854 Bug: 1083392 Change-Id: I44d36dadcb341042e7eaf84395be7cc4a069b392 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261270 Auto-Submit: Albert J. Wong <ajwong@chromium.org> Reviewed-by:Jeremy Roman <jbroman@chromium.org> Commit-Queue: Albert J. Wong <ajwong@chromium.org> Cr-Commit-Position: refs/heads/master@{#782108}
Showing
Please register or sign in to comment