[bindings] Conditionally report module request source position
Calculating the source position for a module request is not free. Even the information is only used by DevTools we currently always calculate the line and column information. V8 only lazily initializes line-end information. This behavior currently causes needless memory and performance overhead. To partially mitigate the issue we only report the detailed source position if there is an active DevTools session. Ideally we would only report the source offset and let all the clients (in this case DevTools) resolve the offset to line and column. Bug: 1162107 Change-Id: I9942cde3bc28e483f1aa2c2b03e8cef2e182d838 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2622217 Commit-Queue: Camillo Bruni <cbruni@chromium.org> Reviewed-by:Simon Zünd <szuend@chromium.org> Reviewed-by:
Yang Guo <yangguo@chromium.org> Reviewed-by:
Kouhei Ueno <kouhei@chromium.org> Cr-Commit-Position: refs/heads/master@{#844598}
Showing
Please register or sign in to comment