Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3621)

Unified Diff: src/objects-printer.cc

Issue 2230953002: Use a custom Struct for stack trace storage (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698