Commit 845ac4b6 authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[printing] Add missing JSObjectPrintBody calls

Change-Id: Id374d968c38e09c5309d37f010049c36e8733b23
Reviewed-on: https://chromium-review.googlesource.com/c/1288813Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56802}
parent e650b9e4
......@@ -756,7 +756,7 @@ void JSGeneratorObject::JSGeneratorObjectPrint(std::ostream& os) { // NOLINT
}
}
os << "\n - register file: " << Brief(parameters_and_registers());
os << "\n";
JSObjectPrintBody(os, this);
}
void JSArray::JSArrayPrint(std::ostream& os) { // NOLINT
......@@ -774,7 +774,7 @@ void JSPromise::JSPromisePrint(std::ostream& os) { // NOLINT
os << "\n - result: " << Brief(result());
}
os << "\n - has_handler: " << has_handler();
os << "\n ";
JSObjectPrintBody(os, this);
}
void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT
......@@ -803,7 +803,6 @@ void Symbol::SymbolPrint(std::ostream& os) { // NOLINT
os << " (" << PrivateSymbolToName() << ")";
}
os << "\n - private: " << is_private();
os << "\n";
}
void Map::MapPrint(std::ostream& os) { // NOLINT
......@@ -1263,20 +1262,19 @@ void JSMap::JSMapPrint(std::ostream& os) { // NOLINT
}
void JSCollectionIterator::JSCollectionIteratorPrint(
std::ostream& os) { // NOLINT
std::ostream& os, const char* name) { // NOLINT
JSObjectPrintHeader(os, this, name);
os << "\n - table: " << Brief(table());
os << "\n - index: " << Brief(index());
os << "\n";
JSObjectPrintBody(os, this);
}
void JSSetIterator::JSSetIteratorPrint(std::ostream& os) { // NOLINT
JSObjectPrintHeader(os, this, "JSSetIterator");
JSCollectionIteratorPrint(os);
JSCollectionIteratorPrint(os, "JSSetIterator");
}
void JSMapIterator::JSMapIteratorPrint(std::ostream& os) { // NOLINT
JSObjectPrintHeader(os, this, "JSMapIterator");
JSCollectionIteratorPrint(os);
JSCollectionIteratorPrint(os, "JSMapIterator");
}
void JSWeakCell::JSWeakCellPrint(std::ostream& os) {
......@@ -1286,7 +1284,7 @@ void JSWeakCell::JSWeakCellPrint(std::ostream& os) {
os << "\n - holdings: " << Brief(holdings());
os << "\n - prev: " << Brief(prev());
os << "\n - next: " << Brief(next());
os << "\n";
JSObjectPrintBody(os, this);
}
void JSWeakFactory::JSWeakFactoryPrint(std::ostream& os) {
......@@ -1294,14 +1292,14 @@ void JSWeakFactory::JSWeakFactoryPrint(std::ostream& os) {
os << "\n - cleanup: " << Brief(cleanup());
os << "\n - active_cells: " << Brief(active_cells());
os << "\n - cleared_cells: " << Brief(cleared_cells());
os << "\n";
JSObjectPrintBody(os, this);
}
void JSWeakFactoryCleanupIterator::JSWeakFactoryCleanupIteratorPrint(
std::ostream& os) {
JSObjectPrintHeader(os, this, "JSWeakFactoryCleanupIterator");
os << "\n - factory: " << Brief(factory());
os << "\n";
JSObjectPrintBody(os, this);
}
void JSWeakMap::JSWeakMapPrint(std::ostream& os) { // NOLINT
......@@ -2009,7 +2007,7 @@ void JSCollator::JSCollatorPrint(std::ostream& os) { // NOLINT
JSObjectPrintHeader(os, this, "JSCollator");
os << "\n - icu collator: " << Brief(icu_collator());
os << "\n - bound compare: " << Brief(bound_compare());
os << "\n";
JSObjectPrintBody(os, this);
}
void JSDateTimeFormat::JSDateTimeFormatPrint(std::ostream& os) { // NOLINT
......@@ -2017,7 +2015,7 @@ void JSDateTimeFormat::JSDateTimeFormatPrint(std::ostream& os) { // NOLINT
os << "\n - icu locale: " << Brief(icu_locale());
os << "\n - icu simple date format: " << Brief(icu_simple_date_format());
os << "\n - bound format: " << Brief(bound_format());
os << "\n";
JSObjectPrintBody(os, this);
}
void JSListFormat::JSListFormatPrint(std::ostream& os) { // NOLINT
......@@ -2026,11 +2024,11 @@ void JSListFormat::JSListFormatPrint(std::ostream& os) { // NOLINT
os << "\n - style: " << StyleAsString();
os << "\n - type: " << TypeAsString();
os << "\n - icu formatter: " << Brief(icu_formatter());
os << "\n";
JSObjectPrintBody(os, this);
}
void JSLocale::JSLocalePrint(std::ostream& os) { // NOLINT
HeapObject::PrintHeader(os, "JSLocale");
JSObjectPrintHeader(os, this, "JSLocale");
os << "\n - language: " << Brief(language());
os << "\n - script: " << Brief(script());
os << "\n - region: " << Brief(region());
......@@ -2052,17 +2050,16 @@ void JSNumberFormat::JSNumberFormatPrint(std::ostream& os) { // NOLINT
os << "\n - bound_format: " << Brief(bound_format());
os << "\n - style: " << StyleAsString();
os << "\n - currency_display: " << CurrencyDisplayAsString();
os << "\n";
JSObjectPrintBody(os, this);
}
void JSPluralRules::JSPluralRulesPrint(std::ostream& os) { // NOLINT
HeapObject::PrintHeader(os, "JSPluralRules");
JSObjectPrint(os);
JSObjectPrintHeader(os, this, "JSPluralRules");
os << "\n - locale: " << Brief(locale());
os << "\n - type: " << Brief(type());
os << "\n - icu plural rules: " << Brief(icu_plural_rules());
os << "\n - icu decimal format: " << Brief(icu_decimal_format());
os << "\n";
JSObjectPrintBody(os, this);
}
void JSRelativeTimeFormat::JSRelativeTimeFormatPrint(
......@@ -2089,7 +2086,7 @@ void JSSegmenter::JSSegmenterPrint(std::ostream& os) { // NOLINT
os << "\n - granularity: " << GranularityAsString();
os << "\n - lineBreakStyle: " << LineBreakStyleAsString();
os << "\n - icu break iterator: " << Brief(icu_break_iterator());
os << "\n";
JSObjectPrintBody(os, this);
}
#endif // V8_INTL_SUPPORT
......
......@@ -621,8 +621,7 @@ class JSCollectionIterator : public JSObject {
// [index]: The index into the data table.
DECL_ACCESSORS(index, Object)
// Dispatched behavior.
DECL_PRINTER(JSCollectionIterator)
void JSCollectionIteratorPrint(std::ostream& os, const char* name);
static const int kTableOffset = JSObject::kHeaderSize;
static const int kIndexOffset = kTableOffset + kPointerSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment