Fix BytecodeArray printing constant pool twice

Pass correct stream to the print for the constant_pool so the debug
print doesn't go the stdout.

Change-Id: I12952e5fa52e4890beaa490601f053128fd2b89a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1672938
Auto-Submit: Dan Elphick <delphick@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62332}
This commit is contained in:
Dan Elphick 2019-06-24 11:32:36 +01:00 committed by Commit Bot
parent 0f0b31744f
commit 1a6123bc90

View File

@ -857,7 +857,7 @@ void BytecodeArray::Disassemble(std::ostream& os) {
os << "Constant pool (size = " << constant_pool().length() << ")\n";
#ifdef OBJECT_PRINT
if (constant_pool().length() > 0) {
constant_pool().Print();
constant_pool().Print(os);
}
#endif