Commit ea160554 authored by Ross McIlroy's avatar Ross McIlroy Committed by Commit Bot

Print source position table when printing bytecode.

Change-Id: I9be7c10193553088b72b6303408636b4fea64f5c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1955594Reviewed-by: 's avatarDan Elphick <delphick@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Auto-Submit: Ross McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65372}
parent 57074692
...@@ -814,6 +814,14 @@ void BytecodeArray::Disassemble(std::ostream& os) { ...@@ -814,6 +814,14 @@ void BytecodeArray::Disassemble(std::ostream& os) {
table.HandlerTableRangePrint(os); table.HandlerTableRangePrint(os);
} }
#endif #endif
os << "Source Position Table (size = "
<< SourcePositionTableIfCollected().length() << ")\n";
#ifdef OBJECT_PRINT
if (SourcePositionTableIfCollected().length() > 0) {
os << Brief(SourcePositionTableIfCollected()) << std::endl;
}
#endif
} }
void BytecodeArray::CopyBytecodesTo(BytecodeArray to) { void BytecodeArray::CopyBytecodesTo(BytecodeArray to) {
......
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