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

Unified Diff: src/objects-printer.cc

Issue 1302173007: [es6] Introduce a dedicated JSIteratorResult type. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 73fa5b12e4ef7732a05c04502726267a4d1c3f34..5be28760b47c1d50f879eb42fdb4029fd9a68758 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -144,6 +144,9 @@ void HeapObject::HeapObjectPrint(std::ostream& os) { // NOLINT
case JS_MAP_ITERATOR_TYPE:
JSMapIterator::cast(this)->JSMapIteratorPrint(os);
break;
+ case JS_ITERATOR_RESULT_TYPE:
+ JSIteratorResult::cast(this)->JSIteratorResultPrint(os);
+ break;
case JS_WEAK_MAP_TYPE:
JSWeakMap::cast(this)->JSWeakMapPrint(os);
break;
@@ -756,6 +759,15 @@ void JSMapIterator::JSMapIteratorPrint(std::ostream& os) { // NOLINT
}
+void JSIteratorResult::JSIteratorResultPrint(std::ostream& os) { // NOLINT
+ HeapObject::PrintHeader(os, "JSIteratorResult");
+ os << " - map = " << reinterpret_cast<void*>(map()) << "\n";
+ os << " - done = " << Brief(done()) << "\n";
+ os << " - value = " << Brief(value()) << "\n";
+ os << "\n";
+}
+
+
void JSWeakMap::JSWeakMapPrint(std::ostream& os) { // NOLINT
HeapObject::PrintHeader(os, "JSWeakMap");
os << " - map = " << reinterpret_cast<void*>(map()) << "\n";
« 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