Commit 4f9dfe41 authored by legendecas's avatar legendecas Committed by V8 LUCI CQ

[diagnostics] Print more Script fields

Print script's host_defined_options and source_mapping_url
in DebugPrint.

Change-Id: Ibd0b50e23f4d6f40eb4efbc6c4f384de24c401c6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3751943Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Chengzhong Wu <legendecas@gmail.com>
Cr-Commit-Position: refs/heads/main@{#81631}
parent 6b2304fa
......@@ -2253,14 +2253,16 @@ void Script::ScriptPrint(std::ostream& os) {
PrintHeader(os, "Script");
os << "\n - source: " << Brief(source());
os << "\n - name: " << Brief(name());
os << "\n - source_url: " << Brief(source_url());
os << "\n - line_offset: " << line_offset();
os << "\n - column_offset: " << column_offset();
os << "\n - context data: " << Brief(context_data());
os << "\n - type: " << type();
os << "\n - line ends: " << Brief(line_ends());
os << "\n - id: " << id();
os << "\n - context data: " << Brief(context_data());
os << "\n - source_url: " << Brief(source_url());
os << "\n - source_mapping_url: " << Brief(source_mapping_url());
os << "\n - host_defined_options: " << Brief(host_defined_options());
os << "\n - compilation type: " << compilation_type();
os << "\n - line ends: " << Brief(line_ends());
bool is_wasm = false;
#if V8_ENABLE_WEBASSEMBLY
if ((is_wasm = (type() == TYPE_WASM))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment