Home | History | Annotate | Download | only in src

Lines Matching refs:os

24   OFStream os(stdout);
25 this->Print(os);
26 os << std::flush;
30 void Object::Print(std::ostream& os) { // NOLINT
32 os << "Smi: " << std::hex << "0x" << Smi::cast(this)->value();
33 os << std::dec << " (" << Smi::cast(this)->value() << ")\n";
35 HeapObject::cast(this)->HeapObjectPrint(os);
40 void HeapObject::PrintHeader(std::ostream& os, const char* id) { // NOLINT
41 os << reinterpret_cast<void*>(this) << ": [";
43 os << id;
45 os << map()->instance_type();
47 os << "]";
51 void HeapObject::HeapObjectPrint(std::ostream& os) { // NOLINT
56 String::cast(this)->StringPrint(os);
57 os << "\n";
63 Symbol::cast(this)->SymbolPrint(os);
66 Map::cast(this)->MapPrint(os);
69 HeapNumber::cast(this)->HeapNumberPrint(os);
70 os << "\n";
73 os << "<mutable ";
74 HeapNumber::cast(this)->HeapNumberPrint(os);
75 os << ">\n";
78 FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(os);
81 FixedArray::cast(this)->FixedArrayPrint(os);
84 ByteArray::cast(this)->ByteArrayPrint(os);
87 BytecodeArray::cast(this)->BytecodeArrayPrint(os);
90 TransitionArray::cast(this)->TransitionArrayPrint(os);
93 FreeSpace::cast(this)->FreeSpacePrint(os);
98 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \
139 JSArrayIterator::cast(this)->JSArrayIteratorPrint(os);
143 os << "filler";
153 JSObject::cast(this)->JSObjectPrint(os);
156 JSPromise::cast(this)->JSPromisePrint(os);
159 JSArray::cast(this)->JSArrayPrint(os);
162 JSRegExp::cast(this)->JSRegExpPrint(os);
165 Oddball::cast(this)->to_string()->Print(os);
168 JSBoundFunction::cast(this)->JSBoundFunctionPrint(os);
171 JSFunction::cast(this)->JSFunctionPrint(os);
174 JSGlobalProxy::cast(this)->JSGlobalProxyPrint(os);
177 JSGlobalObject::cast(this)->JSGlobalObjectPrint(os);
180 JSValue::cast(this)->JSValuePrint(os);
183 JSDate::cast(this)->JSDatePrint(os);
186 Code::cast(this)->CodePrint(os);
189 JSProxy::cast(this)->JSProxyPrint(os);
192 JSSet::cast(this)->JSSetPrint(os);
195 JSMap::cast(this)->JSMapPrint(os);
198 JSSetIterator::cast(this)->JSSetIteratorPrint(os);
201 JSMapIterator::cast(this)->JSMapIteratorPrint(os);
204 JSWeakMap::cast(this)->JSWeakMapPrint(os);
207 JSWeakSet::cast(this)->JSWeakSetPrint(os);
210 JSModuleNamespace::cast(this)->JSModuleNamespacePrint(os);
213 Foreign::cast(this)->ForeignPrint(os);
216 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(os);
219 JSMessageObject::cast(this)->JSMessageObjectPrint(os);
222 Cell::cast(this)->CellPrint(os);
225 PropertyCell::cast(this)->PropertyCellPrint(os);
228 WeakCell::cast(this)->WeakCellPrint(os);
231 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os);
234 JSTypedArray::cast(this)->JSTypedArrayPrint(os);
237 JSDataView::cast(this)->JSDataViewPrint(os);
241 Name::cast(this)->Name##Print(os); \
247 os << "UNKNOWN TYPE " << map()->instance_type();
253 void ByteArray::ByteArrayPrint(std::ostream& os) { // NOLINT
254 os << "byte array, data starts at " << GetDataStartAddress();
258 void BytecodeArray::BytecodeArrayPrint(std::ostream& os) { // NOLINT
259 Disassemble(os);
263 void FreeSpace::FreeSpacePrint(std::ostream& os) { // NOLINT
264 os << "free space, size " << Size();
270 std::ostream& os) { // NOLINT
271 os << "fixed " << Traits::Designator();
274 bool JSObject::PrintProperties(std::ostream& os) { // NOLINT
279 os << "\n ";
280 descs->GetKey(i)->NamePrint(os);
281 os << ": ";
287 os << "<unboxed double> " << RawFastDoublePropertyAt(field_index);
289 os << Brief(RawFastPropertyAt(field_index));
294 os << Brief(descs->GetValue(i));
297 os << " ";
298 details.PrintAsFastTo(os, PropertyDetails::kForProperties);
302 global_dictionary()->Print(os);
304 property_dictionary()->Print(os);
330 void DoPrintElements(std::ostream& os, Object* object) { // NOLINT
345 os << "\n";
351 os << std::setw(12) << ss.str() << ": ";
353 os << "<the_hole>";
355 os << previous_value;
362 void PrintFixedArrayElements(std::ostream& os, FixedArray* array) {
373 os << "\n";
379 os << std::setw(12) << ss.str() << ": " << Brief(previous_value);
387 bool JSObject::PrintElements(std::ostream& os) { // NOLINT
397 PrintFixedArrayElements(os, FixedArray::cast(elements()));
402 DoPrintElements<FixedDoubleArray>(os, elements());
408 DoPrintElements<Fixed##Type##Array>(os, elements()); \
416 SeededNumberDictionary::cast(elements())->Print(os);
421 os << "\n parameter map:";
423 os << " " << (i - 2) << ":" << Brief(p->get(i));
425 os << "\n context: " << Brief(p->get(0))
436 static void JSObjectPrintHeader(std::ostream& os, JSObject* obj,
438 obj->PrintHeader(os, id);
441 os << "\n - map = " << reinterpret_cast<void*>(obj->map()) << " [";
443 os << "FastProperties";
445 os << "DictionaryProperties";
448 os << "]\n - prototype = " << reinterpret_cast<void*>(iter.GetCurrent());
449 os << "\n - elements = " << Brief(obj->elements()) << " ["
452 os << " (COW)";
454 os << "]";
456 os << "\n - internal fields: " << obj->GetInternalFieldCount();
461 static void JSObjectPrintBody(std::ostream& os, JSObject* obj, // NOLINT
463 os << "\n - properties = " << Brief(obj->properties()) << " {";
464 if (obj->PrintProperties(os)) os << "\n ";
465 os << "}\n";
467 os << " - elements = " << Brief(obj->elements()) << " {";
468 if (obj->PrintElements(os)) os << "\n ";
469 os << "}\n";
473 os << " - internal fields = {";
475 os << "\n " << obj->GetInternalField(i);
477 os << "\n }\n";
482 void JSObject::JSObjectPrint(std::ostream& os) { // NOLINT
483 JSObjectPrintHeader(os, this, nullptr);
484 JSObjectPrintBody(os, this);
487 void JSArray::JSArrayPrint(std::ostream& os) { // NOLINT
488 JSObjectPrintHeader(os, this, "JSArray");
489 os << "\n - length = " << Brief(this->length());
490 JSObjectPrintBody(os, this);
493 void JSPromise::JSPromisePrint(std::ostream& os) { // NOLINT
494 JSObjectPrintHeader(os, this, "JSPromise");
495 os << "\n - status = " << JSPromise::Status(status());
496 os << "\n - result = " << Brief(result());
497 os << "\n - deferred_promise: " << Brief(deferred_promise());
498 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve());
499 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject());
500 os << "\n - fulfill_reactions = " << Brief(fulfill_reactions());
501 os << "\n - reject_reactions = " << Brief(reject_reactions());
502 os << "\n - has_handler = " << has_handler();
503 os << "\n ";
506 void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT
507 JSObjectPrintHeader(os, this, "JSRegExp");
508 os << "\n - data = " << Brief(data());
509 JSObjectPrintBody(os, this);
513 void Symbol::SymbolPrint(std::ostream& os) { // NOLINT
514 HeapObject::PrintHeader(os, "Symbol");
515 os << "\n - hash: " << Hash();
516 os << "\n - name: " << Brief(name());
518 os << " (" << PrivateSymbolToName() << ")";
520 os << "\n - private: " << is_private();
521 os << "\n";
525 void Map::MapPrint(std::ostream& os) { // NOLINT
526 HeapObject::PrintHeader(os, "Map");
527 os << "\n - type: " << instance_type();
528 os << "\n - instance size: " << instance_size();
530 os << "\n - inobject properties: " << GetInObjectProperties();
532 os << "\n - elements kind: " << ElementsKindToString(elements_kind());
533 os
534 os << "\n - enum length: ";
536 os << "invalid";
538 os << EnumLength();
540 if (is_deprecated()) os << "\n - deprecated_map";
541 if (is_stable()) os << "\n - stable_map";
542 if (is_migration_target()) os << "\n - migration_target";
543 if (is_dictionary_map()) os << "\n - dictionary_map";
544 if (has_hidden_prototype()) os << "\n - has_hidden_prototype";
545 if (has_named_interceptor()) os << "\n - named_interceptor";
546 if (has_indexed_interceptor()) os << "\n - indexed_interceptor";
547 if (is_undetectable()) os << "\n - undetectable";
548 if (is_callable()) os << "\n - callable";
549 if (is_constructor()) os << "\n - constructor";
550 if (is_access_check_needed()) os << "\n - access_check_needed";
551 if (!is_extensible()) os << "\n - non-extensible";
553 os << "\n - prototype_map";
554 os << "\n - prototype info: " << Brief(prototype_info());
556 os << "\n - back pointer: " << Brief(GetBackPointer());
558 os << "\n - instance descriptors " << (owns_descriptors() ? "(own) " : "")
562 os << "\n - layout descriptor: ";
563 layout_descriptor()->ShortPrint(os);
567 os << "\n - transitions #" << nof_transitions << ": "
569 TransitionArray::PrintTransitions(os, raw_transitions(), false);
571 os << "\n - prototype: " << Brief(prototype());
572 os << "\n - constructor: " << Brief(GetConstructor());
573 os << "\n - code cache: " << Brief(code_cache());
574 os << "\n - dependent code: " << Brief(dependent_code());
575 os << "\n - construction counter: " << construction_counter();
576 os << "\n";
580 void TypeFeedbackInfo::TypeFeedbackInfoPrint(std::ostream& os) { // NOLINT
581 HeapObject::PrintHeader(os, "TypeFeedbackInfo");
582 os << "\n - ic_total_count: " << ic_total_count()
589 std::ostream& os) { // NOLINT
590 HeapObject::PrintHeader(os, "AliasedArgumentsEntry");
591 os << "\n - aliased_context_slot: " << aliased_context_slot();
595 void FixedArray::FixedArrayPrint(std::ostream& os) { // NOLINT
596 HeapObject::PrintHeader(os, "FixedArray");
597 os << "\n - map = " << Brief(map());
598 os << "\n - length: " << length();
599 PrintFixedArrayElements(os, this);
600 os << "\n";
604 void FixedDoubleArray::FixedDoubleArrayPrint(std::ostream& os) { // NOLINT
605 HeapObject::PrintHeader(os, "FixedDoubleArray");
606 os << "\n - map = " << Brief(map());
607 os << "\n - length: " << length();
608 DoPrintElements<FixedDoubleArray>(os, this);
609 os << "\n";
613 void TransitionArray::TransitionArrayPrint(std::ostream& os) { // NOLINT
614 HeapObject::PrintHeader(os, "TransitionArray");
615 os << "\n - capacity: " << length();
617 os << "\n [" << i << "]: " << Brief(get(i));
618 if (i == kNextLinkIndex) os << " (next link)";
619 if (i == kPrototypeTransitionsIndex) os << " (prototype transitions)";
620 if (i == kTransitionLengthIndex) os << " (number of transitions)";
622 os << "\n";
630 OFStream os(stdout);
631 FeedbackVectorSpecPrint(os);
632 os << std::flush;
637 std::ostream& os) { // NOLINT
639 os << " - slot_count: " << slot_count;
641 os << " (empty)\n";
649 os << "\n Slot #" << slot << " " << kind;
652 os << "\n";
656 OFStream os(stdout);
657 FeedbackMetadataPrint(os);
658 os << std::flush;
661 void FeedbackMetadata::FeedbackMetadataPrint(std::ostream& os) { // NOLINT
662 HeapObject::PrintHeader(os, "FeedbackMetadata");
663 os << "\n - length: " << length();
665 os << " (empty)\n";
668 os << "\n - slot_count: " << slot_count();
674 os << "\n Slot " << slot << " " << kind;
676 os << "\n";
680 OFStream os(stdout);
681 FeedbackVectorPrint(os);
682 os << std::flush;
685 void FeedbackVector::FeedbackVectorPrint(std::ostream& os) { // NOLINT
686 HeapObject::PrintHeader(os, "FeedbackVector");
687 os << "\n - length: " << length();
689 os << " (empty)\n";
698 os << "\n Slot " << slot << " " << kind;
699 os << " ";
703 os << Code::ICState2String(nexus.StateFromFeedback());
709 os << Code::ICState2String(nexus.StateFromFeedback());
714 os << Code::ICState2String(nexus.StateFromFeedback());
719 os << Code::ICState2String(nexus.StateFromFeedback());
726 os << Code::ICState2String(nexus.StateFromFeedback());
732 os << Code::ICState2String(nexus.StateFromFeedback());
737 os << Code::ICState2String(nexus.StateFromFeedback());
742 os << Code::ICState2String(nexus.StateFromFeedback());
747 os << Code::ICState2String(nexus.StateFromFeedback());
764 os << "\n [" << index << "]: " << Brief(get(index));
767 os << "\n";
771 void JSValue::JSValuePrint(std::ostream& os) { // NOLINT
772 JSObjectPrintHeader(os, this, "JSValue");
773 os << "\n - value = " << Brief(value());
774 JSObjectPrintBody(os, this);
778 void JSMessageObject::JSMessageObjectPrint(std::ostream& os) { // NOLINT
779 JSObjectPrintHeader(os, this, "JSMessageObject");
780 os << "\n - type: " << type();
781 os << "\n - arguments: " << Brief(argument());
782 os << "\n - start_position: " << start_position();
783 os << "\n - end_position: " << end_position();
784 os << "\n - script: " << Brief(script());
785 os << "\n - stack_frames: " << Brief(stack_frames());
786 JSObjectPrintBody(os, this);
790 void String::StringPrint(std::ostream& os) { // NOLINT
792 os << "#";
794 os << "c\"";
796 os << ">\"";
798 os << "\"";
809 os << AsUC16(Get(i));
812 os << truncated_epilogue;
815 if (!StringShape(this).IsInternalized()) os << "\"";
819 void Name::NamePrint(std::ostream& os) { // NOLINT
821 String::cast(this)->StringPrint(os);
823 os << Brief(this);
833 void JSDate::JSDatePrint(std::ostream& os) { // NOLINT
834 JSObjectPrintHeader(os, this, "JSDate");
835 os << "\n - value = " << Brief(value());
837 os << "\n - time = NaN\n";
850 os << buf.start();
852 JSObjectPrintBody(os, this);
856 void JSProxy::JSProxyPrint(std::ostream& os) { // NOLINT
857 HeapObject::PrintHeader(os, "JSProxy");
858 os << "\n - map = " << reinterpret_cast<void*>(map());
859 os << "\n - target = ";
860 target()->ShortPrint(os);
861 os << "\n - handler = ";
862 handler()->ShortPrint(os);
863 os << "\n - hash = ";
864 hash()->ShortPrint(os);
865 os << "\n";
869 void JSSet::JSSetPrint(std::ostream& os) { // NOLINT
870 JSObjectPrintHeader(os, this, "JSSet");
871 os << " - table = " << Brief(table());
872 JSObjectPrintBody(os, this);
876 void JSMap::JSMapPrint(std::ostream& os) { // NOLINT
877 JSObjectPrintHeader(os, this, "JSMap");
878 os << " - table = " << Brief(table());
879 JSObjectPrintBody(os, this);
886 std::ostream& os) { // NOLINT
887 os << "\n - table = " << Brief(table());
888 os << "\n - index = " << Brief(index());
889 os << "\n - kind = " << Brief(kind());
890 os << "\n";
896 OrderedHashSet>::OrderedHashTableIteratorPrint(std::ostream& os); // NOLINT
901 OrderedHashMap>::OrderedHashTableIteratorPrint(std::ostream& os); // NOLINT
904 void JSSetIterator::JSSetIteratorPrint(std::ostream& os) { // NOLINT
905 JSObjectPrintHeader(os, this, "JSSetIterator");
906 OrderedHashTableIteratorPrint(os);
910 void JSMapIterator::JSMapIteratorPrint(std::ostream& os) { // NOLINT
911 JSObjectPrintHeader(os, this, "JSMapIterator");
912 OrderedHashTableIteratorPrint(os);
916 void JSWeakMap::JSWeakMapPrint(std::ostream& os) { // NOLINT
917 JSObjectPrintHeader(os, this, "JSWeakMap");
918 os << "\n - table = " << Brief(table());
919 JSObjectPrintBody(os, this);
923 void JSWeakSet::JSWeakSetPrint(std::ostream& os) { // NOLINT
924 JSObjectPrintHeader(os, this, "JSWeakSet");
925 os << "\n - table = " << Brief(table());
926 JSObjectPrintBody(os, this);
930 void JSArrayBuffer::JSArrayBufferPrint(std::ostream& os) { // NOLINT
931 JSObjectPrintHeader(os, this, "JSArrayBuffer");
932 os << "\n - backing_store = " << backing_store();
933 os << "\n - byte_length = " << Brief(byte_length());
934 if (was_neutered()) os << "\n - neutered";
935 JSObjectPrintBody(os, this, !was_neutered());
939 void JSTypedArray::JSTypedArrayPrint(std::ostream& os) { // NOLINT
940 JSObjectPrintHeader(os, this, "JSTypedArray");
941 os << "\n - buffer = " << Brief(buffer());
942 os << "\n - byte_offset = " << Brief(byte_offset());
943 os << "\n - byte_length = " << Brief(byte_length());
944 os << "\n - length = " << Brief(length());
945 if (WasNeutered()) os << "\n - neutered";
946 JSObjectPrintBody(os, this, !WasNeutered());
949 void JSArrayIterator::JSArrayIteratorPrint(std::ostream& os) { // NOLING
950 JSObjectPrintHeader(os, this, "JSArrayIterator");
962 os << "\n - type = " << type;
963 os << "\n - object = " << Brief(object());
964 os << "\n - index = " << Brief(index());
966 JSObjectPrintBody(os, this);
969 void JSDataView::JSDataViewPrint(std::ostream& os) { // NOLINT
970 JSObjectPrintHeader(os, this, "JSDataView");
971 os << "\n - buffer =" << Brief(buffer());
972 os << "\n - byte_offset = " << Brief(byte_offset());
973 os << "\n - byte_length = " << Brief(byte_length());
974 if (WasNeutered()) os << "\n - neutered";
975 JSObjectPrintBody(os, this, !WasNeutered());
979 void JSBoundFunction::JSBoundFunctionPrint(std::ostream& os) { // NOLINT
980 JSObjectPrintHeader(os, this, "JSBoundFunction");
981 os << "\n - bound_target_function = " << Brief(bound_target_function());
982 os << "\n - bound_this = " << Brief(bound_this());
983 os << "\n - bound_arguments = " << Brief(bound_arguments());
984 JSObjectPrintBody(os, this);
988 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT
989 JSObjectPrintHeader(os, this, "Function");
990 os << "\n - initial_map = ";
991 if (has_initial_map()) os << Brief(initial_map());
992 os << "\n - shared_info = " << Brief(shared());
993 os << "\n - name = " << Brief(shared()->name());
994 os << "\n - formal_parameter_count = "
997 os << "\n - generator";
999 os << "\n - async";
1001 os << "\n - context = " << Brief(context());
1002 os << "\n - feedback vector cell = " << Brief(feedback_vector_cell());
1003 os << "\n - code = " << Brief(code());
1004 JSObjectPrintBody(os, this);
1009 std::ostream& operator<<(std::ostream& os, FunctionKind kind) {
1010 os << "[";
1012 os << " NormalFunction";
1016 os << " " << #name; \
1031 return os << " ]";
1036 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT
1037 HeapObject::PrintHeader(os, "SharedFunctionInfo");
1038 os << "\n - name = " << Brief(name());
1039 os << "\n - kind = " << kind();
1040 os << "\n - formal_parameter_count = " << internal_formal_parameter_count();
1041 os << "\n - expected_nof_properties = " << expected_nof_properties();
1042 os << "\n - language_mode = " << language_mode();
1043 os << "\n - ast_node_count = " << ast_node_count();
1044 os << "\n - instance class name = ";
1045 instance_class_name()->Print(os);
1046 os << "\n - code = " << Brief(code());
1048 os << "\n - source code = ";
1054 os << source_string.get();
1057 // os << "\n - script =";
1058 // script()->Print(os);
1060 os << "\n - named expression";
1062 os << "\n - anonymous expression";
1064 os << "\n - declaration";
1066 os << "\n - function token position = " << function_token_position();
1067 os << "\n - start position = " << start_position();
1068 os << "\n - end position = " << end_position();
1070 os << "\n - debug info = " << Brief(debug_info());
1072 os << "\n - no debug info";
1074 os << "\n - length = " << length();
1075 os << "\n - optimized_code_map = " << Brief(optimized_code_map());
1076 os << "\n - feedback_metadata = ";
1077 feedback_metadata()->FeedbackMetadataPrint(os);
1079 os << "\n - bytecode_array = " << bytecode_array();
1081 os << "\n";
1085 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT
1086 JSObjectPrintHeader(os, this, "JSGlobalProxy");
1088 os << "\n - native context = " << Brief(native_context());
1090 os << "\n - hash = " << Brief(hash());
1091 JSObjectPrintBody(os, this);
1095 void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT
1096 JSObjectPrintHeader(os, this, "JSGlobalObject");
1098 os << "\n - native context = " << Brief(native_context());
1100 os << "\n - global proxy = " << Brief(global_proxy());
1101 JSObjectPrintBody(os, this);
1105 void Cell::CellPrint(std::ostream& os) { // NOLINT
1106 HeapObject::PrintHeader(os, "Cell");
1107 os << "\n - value: " << Brief(value());
1108 os << "\n";
1112 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT
1113 HeapObject::PrintHeader(os, "PropertyCell");
1114 os << "\n - value: " << Brief(value());
1115 os << "\n - details: ";
1116 property_details().PrintAsSlowTo(os);
1118 os << "\n - cell_type: ";
1122 os << "Uninitialized";
1125 os << "Invalidated";
1128 os << "??? " << static_cast<int>(cell_type);
1134 os << "Undefined";
1137 os << "Constant";
1140 os << "ConstantType"
1144 os << "Smi";
1147 os << "StableMap";
1150 os << ")";
1153 os << "Mutable";
1157 os << "\n";
1161 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT
1162 HeapObject::PrintHeader(os, "WeakCell");
1164 os << "\n - cleared";
1166 os << "\n - value: " << Brief(value());
1168 os << "\n";
1172 void Code::CodePrint(std::ostream& os) { // NOLINT
1173 HeapObject::PrintHeader(os, "Code");
1174 os << "\n";
1177 Disassemble(NULL, os);
1183 void Foreign::ForeignPrint(std::ostream& os) { // NOLINT
1184 os << "foreign address : " << foreign_address();
1185 os << "\n";
1189 void AccessorInfo::AccessorInfoPrint(std::ostream& os) { // NOLINT
1190 HeapObject::PrintHeader(os, "AccessorInfo");
1191 os << "\n - name: " << Brief(name());
1192 os << "\n - flag: " << flag();
1193 os << "\n - getter: " << Brief(getter());
1194 os << "\n - setter: " << Brief(setter());
1195 os << "\n - js_getter: " << Brief(js_getter());
1196 os << "\n - data: " << Brief(data());
1197 os << "\n";
1202 std::ostream& os) { // NOLINT
1203 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo");
1204 os << "\n - thenable: " << Brief(thenable());
1205 os << "\n - then: " << Brief(then());
1206 os << "\n - resolve: " << Brief(resolve());
1207 os << "\n - reject: " << Brief(reject());
1208 os << "\n - context: " << Brief(context());
1209 os << "\n";
1213 std::ostream& os) { // NOLINT
1214 HeapObject::PrintHeader(os, "PromiseReactionJobInfo");
1215 os << "\n - value: " << Brief(value());
1216 os << "\n - tasks: " << Brief(tasks());
1217 os << "\n - deferred_promise: " << Brief(deferred_promise());
1218 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve());
1219 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject());
1220 os << "\n - reaction context: " << Brief(context());
1221 os << "\n";
1224 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT
1225 HeapObject::PrintHeader(os, "ModuleInfoEntry");
1226 os << "\n - export_name: " << Brief(export_name());
1227 os << "\n - local_name: " << Brief(local_name());
1228 os << "\n - import_name: " << Brief(import_name());
1229 os << "\n - module_request: " << module_request();
1230 os << "\n - cell_index: " << cell_index();
1231 os << "\n - beg_pos: " << beg_pos();
1232 os << "\n - end_pos: " << end_pos();
1233 os << "\n";
1236 void Module::ModulePrint(std::ostream& os) { // NOLINT
1237 HeapObject::PrintHeader(os, "Module");
1244 os << "\n - origin: " << Brief(origin);
1246 os << "\n - code: " << Brief(code());
1247 os << "\n - exports: " << Brief(exports());
1248 os << "\n - requested_modules: " << Brief(requested_modules());
1249 os << "\n - instantiated, evaluated: " << instantiated() << ", "
1251 os << "\n";
1254 void JSModuleNamespace::JSModuleNamespacePrint(std::ostream& os) { // NOLINT
1255 JSObjectPrintHeader(os, this, "JSModuleNamespace");
1256 os << "\n - module: " << Brief(module());
1257 JSObjectPrintBody(os, this);
1260 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT
1261 HeapObject::PrintHeader(os, "PrototypeInfo");
1262 os << "\n - weak cell: " << Brief(weak_cell());
1263 os << "\n - prototype users: " << Brief(prototype_users());
1264 os << "\n - registry slot: " << registry_slot();
1265 os << "\n - validity cell: " << Brief(validity_cell());
1266 os << "\n - object create map: " << Brief(object_create_map());
1267 os << "\n";
1270 void Tuple2::Tuple2Print(std::ostream& os) { // NOLINT
1271 HeapObject::PrintHeader(os, "Tuple2");
1272 os << "\n - value1: " << Brief(value1());
1273 os << "\n - value2: " << Brief(value2());
1274 os << "\n";
1277 void Tuple3::Tuple3Print(std::ostream& os) { // NOLINT
1278 HeapObject::PrintHeader(os, "Tuple3");
1279 os << "\n - value1: " << Brief(value1());
1280 os << "\n - value2: " << Brief(value2());
1281 os << "\n - value3: " << Brief(value3());
1282 os << "\n";
1285 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT
1286 HeapObject::PrintHeader(os, "ContextExtension");
1287 os << "\n - scope_info: " << Brief(scope_info());
1288 os << "\n - extension: " << Brief(extension());
1289 os << "\n";
1293 std::ostream& os) { // NOLINT
1294 HeapObject::PrintHeader(os, "ConstantElementsPair");
1295 os << "\n - elements_kind: " << static_cast<ElementsKind>(elements_kind());
1296 os << "\n - constant_values: " << Brief(constant_values());
1297 os << "\n";
1300 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT
1301 HeapObject::PrintHeader(os, "AccessorPair");
1302 os << "\n - getter: " << Brief(getter());
1303 os << "\n - setter: " << Brief(setter());
1304 os << "\n";
1308 void AccessCheckInfo::AccessCheckInfoPrint(std::ostream& os) { // NOLINT
1309 HeapObject::PrintHeader(os, "AccessCheckInfo");
1310 os << "\n - callback: " << Brief(callback());
1311 os << "\n - named_interceptor: " << Brief(named_interceptor());
1312 os << "\n - indexed_interceptor: " << Brief(indexed_interceptor());
1313 os << "\n - data: " << Brief(data());
1314 os << "\n";
1318 void InterceptorInfo::InterceptorInfoPrint(std::ostream& os) { // NOLINT
1319 HeapObject::PrintHeader(os, "InterceptorInfo");
1320 os << "\n - getter: " << Brief(getter());
1321 os << "\n - setter: " << Brief(setter());
1322 os << "\n - query: " << Brief(query());
1323 os << "\n - deleter: " << Brief(deleter());
1324 os << "\n - enumerator: " << Brief(enumerator());
1325 os << "\n - data: " << Brief(data());
1326 os << "\n";
1330 void CallHandlerInfo::CallHandlerInfoPrint(std::ostream& os) { // NOLINT
1331 HeapObject::PrintHeader(os, "CallHandlerInfo");
1332 os << "\n - callback: " << Brief(callback());
1333 os << "\n - data: " << Brief(data());
1334 os << "\n";
1339 std::ostream& os) { // NOLINT
1340 HeapObject::PrintHeader(os, "FunctionTemplateInfo");
1341 os << "\n - class name: " << Brief(class_name());
1342 os << "\n - tag: " << Brief(tag());
1343 os << "\n - serial_number: " << Brief(serial_number());
1344 os << "\n - property_list: " << Brief(property_list());
1345 os << "\n - call_code: " << Brief(call_code());
1346 os << "\n - property_accessors: " << Brief(property_accessors());
1347 os << "\n - prototype_template: " << Brief(prototype_template());
1348 os << "\n - parent_template: " << Brief(parent_template());
1349 os << "\n - named_property_handler: " << Brief(named_property_handler());
1350 os << "\n - indexed_property_handler: " << Brief(indexed_property_handler());
1351 os << "\n - instance_template: " << Brief(instance_template());
1352 os << "\n - signature: " << Brief(signature());
1353 os << "\n - access_check_info: " << Brief(access_check_info());
1354 os << "\n - cached_property_name: " << Brief(cached_property_name());
1355 os << "\n - hidden_prototype: " << (hidden_prototype() ? "true" : "false");
1356 os << "\n - undetectable: " << (undetectable() ? "true" : "false");
1357 os << "\n - need_access_check: " << (needs_access_check() ? "true" : "false");
1358 os << "\n - instantiated: " << (instantiated() ? "true" : "false");
1359 os << "\n";
1363 void ObjectTemplateInfo::ObjectTemplateInfoPrint(std::ostream& os) { // NOLINT
1364 HeapObject::PrintHeader(os, "ObjectTemplateInfo");
1365 os << "\n - tag: " << Brief(tag());
1366 os << "\n - serial_number: " << Brief(serial_number());
1367 os << "\n - property_list: " << Brief(property_list());
1368 os << "\n - property_accessors: " << Brief(property_accessors());
1369 os << "\n - constructor: " << Brief(constructor());
1370 os << "\n - internal_field_count: " << internal_field_count();
1371 os << "\n - immutable_proto: " << (immutable_proto() ? "true" : "false");
1372 os << "\n";
1376 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT
1377 HeapObject::PrintHeader(os, "AllocationSite");
1378 os << "\n - weak_next: " << Brief(weak_next());
1379 os << "\n - dependent code: " << Brief(dependent_code());
1380 os << "\n - nested site: " << Brief(nested_site());
1381 os << "\n - memento found count: "
1383 os << "\n - memento create count: "
1385 os << "\n - pretenure decision: "
1387 os << "\n - transition_info: ";
1390 os << "Array allocation with ElementsKind " << ElementsKindToString(kind);
1392 os << "Array literal " << Brief(transition_info());
1394 os << "unknown transition_info " << Brief(transition_info());
1396 os << "\n";
1400 void AllocationMemento::AllocationMementoPrint(std::ostream& os) { // NOLINT
1401 HeapObject::PrintHeader(os, "AllocationMemento");
1402 os << "\n - allocation site: ";
1404 GetAllocationSite()->Print(os);
1406 os << "<invalid>\n";
1411 void Script::ScriptPrint(std::ostream& os) { // NOLINT
1412 HeapObject::PrintHeader(os, "Script");
1413 os << "\n - source: " << Brief(source());
1414 os << "\n - name: " << Brief(name());
1415 os << "\n - line_offset: " << line_offset();
1416 os << "\n - column_offset: " << column_offset();
1417 os << "\n - type: " << type();
1418 os << "\n - id: " << id();
1419 os << "\n - context data: " << Brief(context_data());
1420 os << "\n - wrapper: " << Brief(wrapper());
1421 os << "\n - compilation type: " << compilation_type();
1422 os << "\n - line ends: " << Brief(line_ends());
1423 os << "\n - eval from shared: " << Brief(eval_from_shared());
1424 os << "\n - eval from position: " << eval_from_position();
1425 os << "\n - shared function infos: " << Brief(shared_function_infos());
1426 os << "\n";
1430 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT
1431 HeapObject::PrintHeader(os, "DebugInfo");
1432 os << "\n - shared: " << Brief(shared());
1433 os << "\n - debug bytecode array: " << Brief(debug_bytecode_array());
1434 os << "\n - break_points: ";
1435 break_points()->Print(os);
1439 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT
1440 HeapObject::PrintHeader(os, "BreakPointInfo");
1441 os << "\n - source_position: " << source_position();
1442 os << "\n - break_point_objects: " << Brief(break_point_objects());
1443 os << "\n";
1447 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT
1449 if ((i & 7) == 0) os << " ";
1450 os << (((value & 1) == 0) ? "_" : "x");
1457 OFStream os(stdout);
1458 this->Print(os);
1459 os << std::flush;
1462 void LayoutDescriptor::ShortPrint(std::ostream& os) {
1464 os << this; // Print tagged value for easy use with "jld" gdb macro.
1466 os << Brief(this);
1470 void LayoutDescriptor::Print(std::ostream& os) { // NOLINT
1471 os << "Layout descriptor: ";
1473 os << "<all tagged>";
1475 os << "fast";
1476 PrintBitMask(os, static_cast<uint32_t>(Smi::cast(this)->value()));
1479 os << "<uninitialized>";
1481 os << "slow";
1484 if (i > 0) os << " |";
1485 PrintBitMask(os, get_scalar(i));
1488 os << "\n";
1548 OFStream os(stdout);
1549 this->PrintDescriptors(os);
1550 os << std::flush;
1554 void DescriptorArray::PrintDescriptors(std::ostream& os) { // NOLINT
1556 os << "Descriptor array #" << number_of_descriptors() << ":";
1559 os << "\n [" << i << "]: ";
1561 key->NamePrint(os);
1563 key->ShortPrint(os);
1565 os << " ";
1566 PrintDescriptorDetails(os, i, PropertyDetails::kPrintFull);
1568 os << "\n";
1571 void DescriptorArray::PrintDescriptorDetails(std::ostream& os, int descriptor,
1574 details.PrintAsFastTo(os, mode);
1575 os << " @ ";
1580 field_type->PrintTo(os);
1584 os << Brief(value);
1587 os << "(get: " << Brief(pair->getter())
1595 OFStream os(stdout);
1596 TransitionArray::PrintTransitions(os, this);
1597 os << "\n" << std::flush;
1601 void TransitionArray::PrintTransitions(std::ostream& os, Object* transitions,
1605 os << "Transition array #" << num_transitions << ":";
1610 os << "\n ";
1612 key->NamePrint(os);
1614 key->ShortPrint(os);
1616 os << ": ";
1619 os << "(transition to non-extensible)";
1621 os << "(transition to sealed)";
1623 os << "(transition to frozen)";
1625 os << "(transition to " << ElementsKindToString(target->elements_kind())
1628 os << " (transition to strict function)";
1631 os << "(transition to ";
1634 descriptors->PrintDescriptorDetails(os, descriptor,
1636 os << ")";
1638 os << " -> " << Brief(target);
1643 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1647 os << "\n - transitions";
1648 TransitionArray::PrintTransitions(os, transitions, false);