Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 6f1f746e5e65c3278a1da732a0516a0c233564f8..2fdd274d1cf0872b20e428b1cce742c5424974bf 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -1274,6 +1274,21 @@ void Script::ScriptPrint(std::ostream& os) { // NOLINT |
os << "\n"; |
} |
+void StackTraceFrame::StackTraceFramePrint(std::ostream& os) { // NOLINT |
+ HeapObject::PrintHeader(os, "StackTraceFrame"); |
+ os << "\n - flags: " << flags(); |
+ os << "\n - abstract_code: " << Brief(abstract_code()); |
+ os << "\n - offset: " << offset(); |
+ if (IsWasmFrame()) { |
+ os << "\n - wasm_object: " << Brief(wasm_object()); |
+ os << "\n - wasm_function_index data: " << wasm_function_index(); |
+ } else { |
+ DCHECK(IsJavaScriptFrame()); |
+ os << "\n - receiver: " << Brief(receiver()); |
+ os << "\n - function: " << Brief(function()); |
+ } |
+ os << "\n"; |
+} |
void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT |
HeapObject::PrintHeader(os, "DebugInfo"); |