Print source position table when printing bytecode.
Change-Id: I9be7c10193553088b72b6303408636b4fea64f5c Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1955594 Reviewed-by: Dan 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}
This commit is contained in:
parent
5707469296
commit
ea16055436
@ -814,6 +814,14 @@ void BytecodeArray::Disassemble(std::ostream& os) {
|
||||
table.HandlerTableRangePrint(os);
|
||||
}
|
||||
#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) {
|
||||
|
Loading…
Reference in New Issue
Block a user