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

Unified Diff: src/objects-printer.cc

Issue 2789073002: [inspector] store stack frame in struct instead of JSObject (Closed)
Patch Set: gcmole should be happy Created 3 years, 9 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-wasm.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 567b07ffc933262de66ecdcc3ef8938e5174e511..ddc806d86a927e6c30513ab9655dcb52917202bd 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -1472,6 +1472,19 @@ void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT
os << "\n";
}
+void StackFrameInfo::StackFrameInfoPrint(std::ostream& os) { // NOLINT
+ HeapObject::PrintHeader(os, "StackFrame");
+ os << "\n - line_number: " << line_number();
+ os << "\n - column_number: " << column_number();
+ os << "\n - script_id: " << script_id();
+ os << "\n - script_name: " << Brief(script_name());
+ os << "\n - script_name_or_source_url: "
+ << Brief(script_name_or_source_url());
+ os << "\n - function_name: " << Brief(function_name());
+ os << "\n - is_eval: " << (is_eval() ? "true" : "false");
+ os << "\n - is_constructor: " << (is_constructor() ? "true" : "false");
+ os << "\n";
+}
static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT
for (int i = 0; i < 32; i++) {
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-wasm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698