Commit 4aebf129 authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[printing] Improve ArrayBuffer debug printing

Change-Id: Ib94838e8c6991348dd6c324c55d8996e9e675e20
Reviewed-on: https://chromium-review.googlesource.com/561698Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46448}
parent 6f0556e8
......@@ -977,7 +977,12 @@ void JSArrayBuffer::JSArrayBufferPrint(std::ostream& os) { // NOLINT
JSObjectPrintHeader(os, this, "JSArrayBuffer");
os << "\n - backing_store = " << backing_store();
os << "\n - byte_length = " << Brief(byte_length());
if (is_external()) os << "\n - external";
if (is_neuterable()) os << "\n - neuterable";
if (was_neutered()) os << "\n - neutered";
if (is_shared()) os << "\n - shared";
if (has_guard_region()) os << "\n - has_guard_region";
if (is_wasm_buffer()) os << "\n - wasm_buffer";
JSObjectPrintBody(os, this, !was_neutered());
}
......
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