[stack-trace] Cache source position for JavaScript stack frames
Retrieving the source position for a JavaScript stack frame is a costly operation (it requires decoding the source position table). The source position is usually retrieved twice, once for the line number, and once for the column number. This CL caches the resolved source position the first time around, improving relevant stack trace serialization micro benchmarks by ~6%. R=jgruber@chromium.org Bug: v8:8742 Change-Id: Ife9903208d2be100e272ccad805a77c33e0df93a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1715447Reviewed-by: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Simon Zünd <szuend@chromium.org> Cr-Commit-Position: refs/heads/master@{#62891}
Showing
Please
register
or
sign in
to comment