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

Unified Diff: src/objects-printer.cc

Issue 2410003002: [modules] Add internal printer method for JSModuleNamespace. (Closed)
Patch Set: Created 4 years, 2 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.h ('k') | no next file » | 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 9054371e849c6d9173cc243879b98a5015fc9cab..48182152a374b07b387d103ce690d865519eab66 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -166,6 +166,9 @@ void HeapObject::HeapObjectPrint(std::ostream& os) { // NOLINT
case JS_WEAK_SET_TYPE:
JSWeakSet::cast(this)->JSWeakSetPrint(os);
break;
+ case JS_MODULE_NAMESPACE_TYPE:
+ JSModuleNamespace::cast(this)->JSModuleNamespacePrint(os);
+ break;
case FOREIGN_TYPE:
Foreign::cast(this)->ForeignPrint(os);
break;
@@ -1168,6 +1171,12 @@ void Module::ModulePrint(std::ostream& os) { // NOLINT
os << "\n";
}
+void JSModuleNamespace::JSModuleNamespacePrint(std::ostream& os) { // NOLINT
+ HeapObject::PrintHeader(os, "JSModuleNamespace");
+ os << "\n - module: " << Brief(module());
+ os << "\n";
+}
+
void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT
HeapObject::PrintHeader(os, "PrototypeInfo");
os << "\n - prototype users: " << Brief(prototype_users());
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698