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

Unified Diff: src/objects-printer.cc

Issue 2407423002: [modules] Implement @@iterator on namespace objects. (Closed)
Patch Set: Rename kSize to kHeadersize again. 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-inl.h ('k') | test/cctest/interpreter/bytecode_expectations/CallRuntime.golden » ('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 9edcb53caa652093afb591ce098928f69fbebee2..1b7b38b2cea2245247c9e3577a97e8f8560419c5 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -193,6 +193,9 @@ void HeapObject::HeapObjectPrint(std::ostream& os) { // NOLINT
case JS_TYPED_ARRAY_TYPE:
JSTypedArray::cast(this)->JSTypedArrayPrint(os);
break;
+ case JS_FIXED_ARRAY_ITERATOR_TYPE:
+ JSFixedArrayIterator::cast(this)->JSFixedArrayIteratorPrint(os);
+ break;
case JS_DATA_VIEW_TYPE:
JSDataView::cast(this)->JSDataViewPrint(os);
break;
@@ -949,6 +952,14 @@ void JSTypedArray::JSTypedArrayPrint(std::ostream& os) { // NOLINT
JSObjectPrintBody(os, this, !WasNeutered());
}
+void JSFixedArrayIterator::JSFixedArrayIteratorPrint(
+ std::ostream& os) { // NOLINT
+ JSObjectPrintHeader(os, this, "JSFixedArrayIterator");
+ os << "\n - array = " << Brief(array());
+ os << "\n - index = " << index();
+ os << "\n - initial_next = " << Brief(initial_next());
+ JSObjectPrintBody(os, this);
+}
void JSDataView::JSDataViewPrint(std::ostream& os) { // NOLINT
JSObjectPrintHeader(os, this, "JSDataView");
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/interpreter/bytecode_expectations/CallRuntime.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698