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

Unified Diff: src/objects-printer.cc

Issue 2314903004: [promises] Move PromiseResolveThenableJob to c++ (Closed)
Patch Set: rebase 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.h » ('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 c2205d8566cc73adaed5dbd1d5edeb318e2fe6ae..84131f43ec467cf633fccc714a3ae8859d52041c 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -1155,6 +1155,17 @@ void Box::BoxPrint(std::ostream& os) { // NOLINT
os << "\n";
}
+void PromiseContainer::PromiseContainerPrint(std::ostream& os) { // NOLINT
+ HeapObject::PrintHeader(os, "PromiseContainer");
+ os << "\n - thenable: " << Brief(thenable());
+ os << "\n - then: " << Brief(then());
+ os << "\n - resolve: " << Brief(resolve());
+ os << "\n - reject: " << Brief(reject());
+ os << "\n - before debug event: " << Brief(before_debug_event());
+ os << "\n - after debug event: " << Brief(after_debug_event());
+ os << "\n";
+}
+
void Module::ModulePrint(std::ostream& os) { // NOLINT
HeapObject::PrintHeader(os, "Module");
os << "\n - code: " << Brief(code());
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698