Print the brief script for SFI
This code is commented out since a long time (at least since 2008), but I found it to be useful information. Instead of printing the full script information, just print the {Brief} version. In a debugger, users can still print the full information based on the printed pointer value if needed. R=jkummerow@chromium.org Change-Id: I79b19f0bbc8797746b916c1f5860f727c0f0ac39 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2015240 Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/master@{#65969}
This commit is contained in:
parent
250911ba5f
commit
9c3099eefe
@ -1379,9 +1379,8 @@ void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT
|
||||
os << "\n - data: " << Brief(function_data());
|
||||
os << "\n - code (from data): " << Brief(GetCode());
|
||||
PrintSourceCode(os);
|
||||
// Script files are often large, hard to read.
|
||||
// os << "\n - script =";
|
||||
// script()->Print(os);
|
||||
// Script files are often large, thus only print their {Brief} representation.
|
||||
os << "\n - script: " << Brief(script());
|
||||
os << "\n - function token position: " << function_token_position();
|
||||
os << "\n - start position: " << StartPosition();
|
||||
os << "\n - end position: " << EndPosition();
|
||||
|
Loading…
Reference in New Issue
Block a user