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

Unified Diff: src/objects-printer.cc

Issue 2345823002: [modules] Turn JSModule into Module. (Closed)
Patch Set: Address comments. Created 4 years, 3 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-object.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 adcc63bc46224e4f092402d00391b1e22e6c50ac..1248f946eb96ba59ea5557bcbe77548c84294b8e 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -1145,6 +1145,11 @@ void Box::BoxPrint(std::ostream& os) { // NOLINT
os << "\n";
}
+void Module::ModulePrint(std::ostream& os) { // NOLINT
+ HeapObject::PrintHeader(os, "Module");
+ os << "\n - exports: " << Brief(exports());
+ os << "\n";
+}
void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT
HeapObject::PrintHeader(os, "PrototypeInfo");
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698