Commit c297528d authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[wasm] Print instance properties and elements

{WasmInstanceObject} is a {JSObject}, so it can have user-defined
properties and elements. DebugPrint should include them.

R=titzer@chromium.org

Change-Id: Id787fc2d40c256a0287aea69353066c6fd920a56
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1541236Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60491}
parent 2ee43006
......@@ -1819,7 +1819,7 @@ void WasmExceptionTag::WasmExceptionTagPrint(std::ostream& os) { // NOLINT
}
void WasmInstanceObject::WasmInstanceObjectPrint(std::ostream& os) { // NOLINT
PrintHeader(os, "WasmInstanceObject");
JSObjectPrintHeader(os, *this, "WasmInstanceObject");
os << "\n - module_object: " << Brief(module_object());
os << "\n - exports_object: " << Brief(exports_object());
os << "\n - native_context: " << Brief(native_context());
......@@ -1864,6 +1864,7 @@ void WasmInstanceObject::WasmInstanceObjectPrint(std::ostream& os) { // NOLINT
<< static_cast<void*>(indirect_function_table_sig_ids());
os << "\n - indirect_function_table_targets: "
<< static_cast<void*>(indirect_function_table_targets());
JSObjectPrintBody(os, *this);
os << "\n";
}
......
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