Lines Matching refs:os
20 OFStream os(stdout);
21 this->Print(os);
22 os << std::flush;
26 void Object::Print(std::ostream& os) { // NOLINT
28 Smi::cast(this)->SmiPrint(os);
30 HeapObject::cast(this)->HeapObjectPrint(os);
35 void HeapObject::PrintHeader(std::ostream& os, const char* id) { // NOLINT
36 os << reinterpret_cast<void*>(this) << ": [";
38 os << id;
40 os << map()->instance_type();
42 os << "]";
46 void HeapObject::HeapObjectPrint(std::ostream& os) { // NOLINT
51 String::cast(this)->StringPrint(os);
57 Symbol::cast(this)->SymbolPrint(os);
60 Map::cast(this)->MapPrint(os);
63 HeapNumber::cast(this)->HeapNumberPrint(os);
66 os << "<mutable ";
67 HeapNumber::cast(this)->HeapNumberPrint(os);
68 os << ">";
71 Simd128Value::cast(this)->Simd128ValuePrint(os);
74 FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(os);
77 FixedArray::cast(this)->FixedArrayPrint(os);
80 ByteArray::cast(this)->ByteArrayPrint(os);
83 BytecodeArray::cast(this)->BytecodeArrayPrint(os);
86 TransitionArray::cast(this)->TransitionArrayPrint(os);
89 FreeSpace::cast(this)->FreeSpacePrint(os);
94 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \
101 os << "filler";
111 JSObject::cast(this)->JSObjectPrint(os);
114 JSArray::cast(this)->JSArrayPrint(os);
117 JSRegExp::cast(this)->JSRegExpPrint(os);
120 Oddball::cast(this)->to_string()->Print(os);
123 JSModule::cast(this)->JSModulePrint(os);
126 JSBoundFunction::cast(this)->JSBoundFunctionPrint(os);
129 JSFunction::cast(this)->JSFunctionPrint(os);
132 JSGlobalProxy::cast(this)->JSGlobalProxyPrint(os);
135 JSGlobalObject::cast(this)->JSGlobalObjectPrint(os);
138 JSValue::cast(this)->JSValuePrint(os);
141 JSDate::cast(this)->JSDatePrint(os);
144 Code::cast(this)->CodePrint(os);
147 JSProxy::cast(this)->JSProxyPrint(os);
150 JSSet::cast(this)->JSSetPrint(os);
153 JSMap::cast(this)->JSMapPrint(os);
156 JSSetIterator::cast(this)->JSSetIteratorPrint(os);
159 JSMapIterator::cast(this)->JSMapIteratorPrint(os);
162 JSWeakMap::cast(this)->JSWeakMapPrint(os);
165 JSWeakSet::cast(this)->JSWeakSetPrint(os);
168 Foreign::cast(this)->ForeignPrint(os);
171 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(os);
174 JSMessageObject::cast(this)->JSMessageObjectPrint(os);
177 Cell::cast(this)->CellPrint(os);
180 PropertyCell::cast(this)->PropertyCellPrint(os);
183 WeakCell::cast(this)->WeakCellPrint(os);
186 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os);
189 JSTypedArray::cast(this)->JSTypedArrayPrint(os);
192 JSDataView::cast(this)->JSDataViewPrint(os);
196 Name::cast(this)->Name##Print(os); \
202 os << "UNKNOWN TYPE " << map()->instance_type();
209 void Simd128Value::Simd128ValuePrint(std::ostream& os) { // NOLINT
211 if (Is##Type()) return Type::cast(this)->Type##Print(os);
218 void Float32x4::Float32x4Print(std::ostream& os) { // NOLINT
221 os << std::string(DoubleToCString(get_lane(0), buffer)) << ", "
229 void type::type##Print(std::ostream& os) { \
232 os << std::string(IntToCString(get_lane(0), buffer)); \
234 os << ", " << std::string(IntToCString(get_lane(i), buffer)); \
247 void type::type##Print(std::ostream& os) { \
250 os << std::string(get_lane(0) ? "true" : "false"); \
252 os << ", " << std::string(get_lane(i) ? "true" : "false"); \
261 void ByteArray::ByteArrayPrint(std::ostream& os) { // NOLINT
262 os << "byte array, data starts at " << GetDataStartAddress();
266 void BytecodeArray::BytecodeArrayPrint(std::ostream& os) { // NOLINT
267 Disassemble(os);
271 void FreeSpace::FreeSpacePrint(std::ostream& os) { // NOLINT
272 os << "free space, size " << Size();
278 std::ostream& os) { // NOLINT
279 os << "fixed " << Traits::Designator();
283 void JSObject::PrintProperties(std::ostream& os) { // NOLINT
287 os << "\n ";
288 descs->GetKey(i)->NamePrint(os);
289 os << ": ";
294 os << "<unboxed double> " << RawFastDoublePropertyAt(index);
296 os << Brief(RawFastPropertyAt(index));
298 os << " (data field at offset " << index.property_index() << ")";
303 os << " (accessor field at offset " << index.property_index() << ")";
307 os << Brief(descs->GetConstant(i)) << " (data constant)";
310 os << Brief(descs->GetCallbacksObject(i)) << " (accessor constant)";
315 global_dictionary()->Print(os);
317 property_dictionary()->Print(os);
323 static void DoPrintElements(std::ostream& os, Object* object) { // NOLINT
326 os << "\n " << i << ": " << p->get_scalar(i);
331 void JSObject::PrintElements(std::ostream& os) { // NOLINT
343 os << "\n " << i << ": " << Brief(p->get(i));
353 os << "\n " << i << ": ";
355 os << "<the hole>";
357 os << p->get_scalar(i);
367 DoPrintElements<Type>(os, elements()); \
385 SeededNumberDictionary::cast(elements())->Print(os);
390 os << "\n parameter map:";
392 os << " " << (i - 2) << ":" << Brief(p->get(i));
394 os << "\n context: " << Brief(p->get(0))
404 static void JSObjectPrintHeader(std::ostream& os, JSObject* obj,
406 obj->PrintHeader(os, id);
409 os << "\n - map = " << reinterpret_cast<void*>(obj->map()) << " [";
411 os << "FastProperties";
413 os << "DictionaryProperties";
416 os << "]\n - prototype = " << reinterpret_cast<void*>(iter.GetCurrent());
417 os << "\n - elements = " << Brief(obj->elements()) << " ["
420 os << " (COW)";
422 os << "]";
426 static void JSObjectPrintBody(std::ostream& os, JSObject* obj, // NOLINT
428 os << "\n - properties = {";
429 obj->PrintProperties(os);
430 os << "\n }\n";
432 os << " - elements = {";
433 obj->PrintElements(os);
434 os << "\n }\n";
439 void JSObject::JSObjectPrint(std::ostream& os) { // NOLINT
440 JSObjectPrintHeader(os, this, nullptr);
441 JSObjectPrintBody(os, this);
444 void JSArray::JSArrayPrint(std::ostream& os) { // NOLINT
445 JSObjectPrintHeader(os, this, "JSArray");
446 os << "\n - length = " << Brief(this->length());
447 JSObjectPrintBody(os, this);
451 void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT
452 JSObjectPrintHeader(os, this, "JSRegExp");
453 os << "\n - data = " << Brief(data());
454 JSObjectPrintBody(os, this);
458 void JSModule::JSModulePrint(std::ostream& os) { // NOLINT
459 JSObjectPrintHeader(os, this, "JSModule");
460 os << "\n - context = " << Brief(context());
461 os << " - scope_info = " << Brief(scope_info());
462 JSObjectPrintBody(os, this);
466 void Symbol::SymbolPrint(std::ostream& os) { // NOLINT
467 HeapObject::PrintHeader(os, "Symbol");
468 os << "\n - hash: " << Hash();
469 os << "\n - name: " << Brief(name());
471 os << " (" << PrivateSymbolToName() << ")";
473 os << "\n - private: " << is_private();
474 os << "\n";
478 void Map::MapPrint(std::ostream& os) { // NOLINT
479 HeapObject::PrintHeader(os, "Map");
480 os << "\n - type: " << instance_type();
481 os << "\n - instance size: " << instance_size();
483 os << "\n - inobject properties: " << GetInObjectProperties();
485 os << "\n - elements kind: " << ElementsKindToString(elements_kind());
486 os << "\n - unused property fields: " << unused_property_fields();
487 os << "\n - enum length: ";
489 os << "invalid";
491 os << EnumLength();
493 if (is_deprecated()) os << "\n - deprecated_map";
494 if (is_stable()) os << "\n - stable_map";
495 if (is_dictionary_map()) os << "\n - dictionary_map";
496 if (has_hidden_prototype()) os << "\n - has_hidden_prototype";
497 if (has_named_interceptor()) os << " - named_interceptor";
498 if (has_indexed_interceptor()) os << "\n - indexed_interceptor";
499 if (is_undetectable()) os << "\n - undetectable";
500 if (is_callable()) os << "\n - callable";
501 if (is_constructor()) os << "\n - constructor";
502 if (is_access_check_needed()) os << "\n - access_check_needed";
503 if (!is_extensible()) os << "\n - non-extensible";
505 os << "\n - prototype_map";
506 os << "\n - prototype info: " << Brief(prototype_info());
508 os << "\n - back pointer: " << Brief(GetBackPointer());
510 os << "\n - instance descriptors " << (owns_descriptors() ? "(own) " : "")
514 os << "\n - layout descriptor: " << Brief(layout_descriptor());
518 os << "\n - transitions #" << nof_transitions << ": "
520 TransitionArray::PrintTransitions(os, raw_transitions(), false);
522 os << "\n - prototype: " << Brief(prototype());
523 os << "\n - constructor: " << Brief(GetConstructor());
524 os << "\n - code cache: " << Brief(code_cache());
525 os << "\n - dependent code: " << Brief(dependent_code());
526 os << "\n - construction counter: " << construction_counter();
527 os << "\n";
531 void TypeFeedbackInfo::TypeFeedbackInfoPrint(std::ostream& os) { // NOLINT
532 HeapObject::PrintHeader(os, "TypeFeedbackInfo");
533 os << "\n - ic_total_count: " << ic_total_count()
540 std::ostream& os) { // NOLINT
541 HeapObject::PrintHeader(os, "AliasedArgumentsEntry");
542 os << "\n - aliased_context_slot: " << aliased_context_slot();
546 void FixedArray::FixedArrayPrint(std::ostream& os) { // NOLINT
547 HeapObject::PrintHeader(os, "FixedArray");
548 os << "\n - length: " << length();
550 os << "\n [" << i << "]: " << Brief(get(i));
552 os << "\n";
556 void FixedDoubleArray::FixedDoubleArrayPrint(std::ostream& os) { // NOLINT
557 HeapObject::PrintHeader(os, "FixedDoubleArray");
558 os << "\n - length: " << length();
560 os << "\n [" << i << "]: ";
562 os << "<the hole>";
564 os << get_scalar(i);
567 os << "\n";
571 void TransitionArray::TransitionArrayPrint(std::ostream& os) { // NOLINT
572 HeapObject::PrintHeader(os, "TransitionArray");
573 os << "\n - capacity: " << length();
575 os << "\n [" << i << "]: " << Brief(get(i));
576 if (i == kNextLinkIndex) os << " (next link)";
577 if (i == kPrototypeTransitionsIndex) os << " (prototype transitions)";
578 if (i == kTransitionLengthIndex) os << " (number of transitions)";
580 os << "\n";
588 OFStream os(stdout);
589 FeedbackVectorSpecPrint(os);
590 os << std::flush;
595 std::ostream& os) { // NOLINT
597 os << " - slot_count: " << slot_count;
599 os << " (empty)\n";
608 os << "\n Slot #" << slot << " " << kind;
610 os << ", " << Brief(*This()->GetName(name_index++));
615 os << "\n";
619 OFStream os(stdout);
620 TypeFeedbackMetadataPrint(os);
621 os << std::flush;
626 std::ostream& os) { // NOLINT
627 HeapObject::PrintHeader(os, "TypeFeedbackMetadata");
628 os << "\n - length: " << length();
630 os << " (empty)\n";
633 os << "\n - slot_count: " << slot_count();
639 os << "\n Slot " << slot << " " << kind;
641 os << ", " << Brief(iter.name());
644 os << "\n";
649 OFStream os(stdout);
650 TypeFeedbackVectorPrint(os);
651 os << std::flush;
655 void TypeFeedbackVector::TypeFeedbackVectorPrint(std::ostream& os) { // NOLINT
656 HeapObject::PrintHeader(os, "TypeFeedbackVector");
657 os << "\n - length: " << length();
659 os << " (empty)\n";
668 os << "\n Slot " << slot << " " << kind;
670 os << ", " << Brief(iter.name());
672 os << " ";
676 os << Code::ICState2String(nexus.StateFromFeedback());
681 os << Code::ICState2String(nexus.StateFromFeedback());
686 os << Code::ICState2String(nexus.StateFromFeedback());
691 os << Code::ICState2String(nexus.StateFromFeedback());
696 os << Code::ICState2String(nexus.StateFromFeedback());
701 os << Code::ICState2String(nexus.StateFromFeedback());
715 os << "\n [" << index << "]: " << Brief(get(index));
718 os << "\n";
722 void JSValue::JSValuePrint(std::ostream& os) { // NOLINT
723 JSObjectPrintHeader(os, this, "JSValue");
724 os << "\n - value = " << Brief(value());
725 JSObjectPrintBody(os, this);
729 void JSMessageObject::JSMessageObjectPrint(std::ostream& os) { // NOLINT
730 JSObjectPrintHeader(os, this, "JSMessageObject");
731 os << "\n - type: " << type();
732 os << "\n - arguments: " << Brief(argument());
733 os << "\n - start_position: " << start_position();
734 os << "\n - end_position: " << end_position();
735 os << "\n - script: " << Brief(script());
736 os << "\n - stack_frames: " << Brief(stack_frames());
737 JSObjectPrintBody(os, this);
741 void String::StringPrint(std::ostream& os) { // NOLINT
743 os << "#";
745 os << "c\"";
747 os << "\"";
758 os << AsUC16(Get(i));
761 os << truncated_epilogue;
764 if (!StringShape(this).IsInternalized()) os << "\"";
768 void Name::NamePrint(std::ostream& os) { // NOLINT
770 String::cast(this)->StringPrint(os);
772 os << Brief(this);
782 void JSDate::JSDatePrint(std::ostream& os) { // NOLINT
783 JSObjectPrintHeader(os, this, "JSDate");
784 os << "\n - value = " << Brief(value());
786 os << "\n - time = NaN\n";
799 os << buf.start();
801 JSObjectPrintBody(os, this);
805 void JSProxy::JSProxyPrint(std::ostream& os) { // NOLINT
806 HeapObject::PrintHeader(os, "JSProxy");
807 os << "\n - map = " << reinterpret_cast<void*>(map());
808 os << "\n - target = ";
809 target()->ShortPrint(os);
810 os << "\n - handler = ";
811 handler()->ShortPrint(os);
812 os << "\n - hash = ";
813 hash()->ShortPrint(os);
814 os << "\n";
818 void JSSet::JSSetPrint(std::ostream& os) { // NOLINT
819 JSObjectPrintHeader(os, this, "JSSet");
820 os << " - table = " << Brief(table());
821 JSObjectPrintBody(os, this);
825 void JSMap::JSMapPrint(std::ostream& os) { // NOLINT
826 JSObjectPrintHeader(os, this, "JSMap");
827 os << " - table = " << Brief(table());
828 JSObjectPrintBody(os, this);
835 std::ostream& os) { // NOLINT
836 os << "\n - table = " << Brief(table());
837 os << "\n - index = " << Brief(index());
838 os << "\n - kind = " << Brief(kind());
839 os << "\n";
845 OrderedHashSet>::OrderedHashTableIteratorPrint(std::ostream& os); // NOLINT
850 OrderedHashMap>::OrderedHashTableIteratorPrint(std::ostream& os); // NOLINT
853 void JSSetIterator::JSSetIteratorPrint(std::ostream& os) { // NOLINT
854 JSObjectPrintHeader(os, this, "JSSetIterator");
855 OrderedHashTableIteratorPrint(os);
859 void JSMapIterator::JSMapIteratorPrint(std::ostream& os) { // NOLINT
860 JSObjectPrintHeader(os, this, "JSMapIterator");
861 OrderedHashTableIteratorPrint(os);
865 void JSWeakMap::JSWeakMapPrint(std::ostream& os) { // NOLINT
866 JSObjectPrintHeader(os, this, "JSWeakMap");
867 os << "\n - table = " << Brief(table());
868 JSObjectPrintBody(os, this);
872 void JSWeakSet::JSWeakSetPrint(std::ostream& os) { // NOLINT
873 JSObjectPrintHeader(os, this, "JSWeakSet");
874 os << "\n - table = " << Brief(table());
875 JSObjectPrintBody(os, this);
879 void JSArrayBuffer::JSArrayBufferPrint(std::ostream& os) { // NOLINT
880 JSObjectPrintHeader(os, this, "JSArrayBuffer");
881 os << "\n - backing_store = " << backing_store();
882 os << "\n - byte_length = " << Brief(byte_length());
883 if (was_neutered()) os << " - neutered\n";
884 JSObjectPrintBody(os, this, !was_neutered());
888 void JSTypedArray::JSTypedArrayPrint(std::ostream& os) { // NOLINT
889 JSObjectPrintHeader(os, this, "JSTypedArray");
890 os << "\n - buffer = " << Brief(buffer());
891 os << "\n - byte_offset = " << Brief(byte_offset());
892 os << "\n - byte_length = " << Brief(byte_length());
893 os << "\n - length = " << Brief(length());
894 if (WasNeutered()) os << " - neutered\n";
895 JSObjectPrintBody(os, this, !WasNeutered());
899 void JSDataView::JSDataViewPrint(std::ostream& os) { // NOLINT
900 JSObjectPrintHeader(os, this, "JSDataView");
901 os << "\n - buffer =" << Brief(buffer());
902 os << "\n - byte_offset = " << Brief(byte_offset());
903 os << "\n - byte_length = " << Brief(byte_length());
904 if (WasNeutered()) os << " - neutered\n";
905 JSObjectPrintBody(os, this, !WasNeutered());
909 void JSBoundFunction::JSBoundFunctionPrint(std::ostream& os) { // NOLINT
910 JSObjectPrintHeader(os, this, "JSBoundFunction");
911 os << "\n - bound_target_function = " << Brief(bound_target_function());
912 os << "\n - bound_this = " << Brief(bound_this());
913 os << "\n - bound_arguments = " << Brief(bound_arguments());
914 JSObjectPrintBody(os, this);
918 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT
919 JSObjectPrintHeader(os, this, "Function");
920 os << "\n - initial_map = ";
921 if (has_initial_map()) os << Brief(initial_map());
922 os << "\n - shared_info = " << Brief(shared());
923 os << "\n - name = " << Brief(shared()->name());
924 os << "\n - formal_parameter_count = "
927 os << "\n - generator";
929 os << "\n - async";
931 os << "\n - context = " << Brief(context());
932 os << "\n - literals = " << Brief(literals());
933 os << "\n - code = " << Brief(code());
934 JSObjectPrintBody(os, this);
938 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT
939 HeapObject::PrintHeader(os, "SharedFunctionInfo");
940 os << "\n - name = " << Brief(name());
941 os << "\n - formal_parameter_count = " << internal_formal_parameter_count();
942 os << "\n - expected_nof_properties = " << expected_nof_properties();
943 os << "\n - ast_node_count = " << ast_node_count();
944 os << "\n - instance class name = ";
945 instance_class_name()->Print(os);
946 os << "\n - code = " << Brief(code());
948 os << "\n - source code = ";
954 os << source_string.get();
957 // os << "\n - script =";
958 // script()->Print(os);
960 os << "\n - named expression";
962 os << "\n - anonymous expression";
964 os << "\n - declaration";
966 os << "\n - function token position = " << function_token_position();
967 os << "\n - start position = " << start_position();
968 os << "\n - end position = " << end_position();
969 os << "\n - debug info = " << Brief(debug_info());
970 os << "\n - length = " << length();
971 os << "\n - num_literals = " << num_literals();
972 os << "\n - optimized_code_map = " << Brief(optimized_code_map());
973 os << "\n - feedback_metadata = ";
974 feedback_metadata()->TypeFeedbackMetadataPrint(os);
976 os << "\n - bytecode_array = " << bytecode_array();
978 os << "\n";
982 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT
983 os << "global_proxy ";
984 JSObjectPrint(os);
985 os << "native context : " << Brief(native_context());
986 os << "\n";
990 void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT
991 os << "global ";
992 JSObjectPrint(os);
993 os << "native context : " << Brief(native_context());
994 os << "\n";
998 void Cell::CellPrint(std::ostream& os) { // NOLINT
999 HeapObject::PrintHeader(os, "Cell");
1000 os << "\n - value: " << Brief(value());
1001 os << "\n";
1005 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT
1006 HeapObject::PrintHeader(os, "PropertyCell");
1007 os << "\n - value: " << Brief(value());
1008 os << "\n - details: " << property_details();
1009 os << "\n";
1013 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT
1014 HeapObject::PrintHeader(os, "WeakCell");
1016 os << "\n - cleared";
1018 os << "\n - value: " << Brief(value());
1020 os << "\n";
1024 void Code::CodePrint(std::ostream& os) { // NOLINT
1025 HeapObject::PrintHeader(os, "Code");
1026 os << "\n";
1029 Disassemble(NULL, os);
1035 void Foreign::ForeignPrint(std::ostream& os) { // NOLINT
1036 os << "foreign address : " << foreign_address();
1037 os << "\n";
1041 void AccessorInfo::AccessorInfoPrint(std::ostream& os) { // NOLINT
1042 HeapObject::PrintHeader(os, "AccessorInfo");
1043 os << "\n - name: " << Brief(name());
1044 os << "\n - flag: " << flag();
1045 os << "\n - getter: " << Brief(getter());
1046 os << "\n - setter: " << Brief(setter());
1047 os << "\n - js_getter: " << Brief(js_getter());
1048 os << "\n - data: " << Brief(data());
1049 os << "\n";
1053 void Box::BoxPrint(std::ostream& os) { // NOLINT
1054 HeapObject::PrintHeader(os, "Box");
1055 os << "\n - value: " << Brief(value());
1056 os << "\n";
1060 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT
1061 HeapObject::PrintHeader(os, "PrototypeInfo");
1062 os << "\n - prototype users: " << Brief(prototype_users());
1063 os << "\n - registry slot: " << registry_slot();
1064 os << "\n - validity cell: " << Brief(validity_cell());
1065 os << "\n";
1070 SloppyBlockWithEvalContextExtensionPrint(std::ostream& os) { // NOLINT
1071 HeapObject::PrintHeader(os, "SloppyBlockWithEvalContextExtension");
1072 os << "\n - scope_info: " << Brief(scope_info());
1073 os << "\n - extension: " << Brief(extension());
1074 os << "\n";
1078 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT
1079 HeapObject::PrintHeader(os, "AccessorPair");
1080 os << "\n - getter: " << Brief(getter());
1081 os << "\n - setter: " << Brief(setter());
1082 os << "\n";
1086 void AccessCheckInfo::AccessCheckInfoPrint(std::ostream& os) { // NOLINT
1087 HeapObject::PrintHeader(os, "AccessCheckInfo");
1088 os << "\n - callback: " << Brief(callback());
1089 os << "\n - named_interceptor: " << Brief(named_interceptor());
1090 os << "\n - indexed_interceptor: " << Brief(indexed_interceptor());
1091 os << "\n - data: " << Brief(data());
1092 os << "\n";
1096 void InterceptorInfo::InterceptorInfoPrint(std::ostream& os) { // NOLINT
1097 HeapObject::PrintHeader(os, "InterceptorInfo");
1098 os << "\n - getter: " << Brief(getter());
1099 os << "\n - setter: " << Brief(setter());
1100 os << "\n - query: " << Brief(query());
1101 os << "\n - deleter: " << Brief(deleter());
1102 os << "\n - enumerator: " << Brief(enumerator());
1103 os << "\n - data: " << Brief(data());
1104 os << "\n";
1108 void CallHandlerInfo::CallHandlerInfoPrint(std::ostream& os) { // NOLINT
1109 HeapObject::PrintHeader(os, "CallHandlerInfo");
1110 os << "\n - callback: " << Brief(callback());
1111 os << "\n - data: " << Brief(data());
1112 os << "\n";
1117 std::ostream& os) { // NOLINT
1118 HeapObject::PrintHeader(os, "FunctionTemplateInfo");
1119 os << "\n - class name: " << Brief(class_name());
1120 os << "\n - tag: " << Brief(tag());
1121 os << "\n - serial_number: " << Brief(serial_number());
1122 os << "\n - property_list: " << Brief(property_list());
1123 os << "\n - call_code: " << Brief(call_code());
1124 os << "\n - property_accessors: " << Brief(property_accessors());
1125 os << "\n - prototype_template: " << Brief(prototype_template());
1126 os << "\n - parent_template: " << Brief(parent_template());
1127 os << "\n - named_property_handler: " << Brief(named_property_handler());
1128 os << "\n - indexed_property_handler: " << Brief(indexed_property_handler());
1129 os << "\n - instance_template: " << Brief(instance_template());
1130 os << "\n - signature: " << Brief(signature());
1131 os << "\n - access_check_info: " << Brief(access_check_info());
1132 os << "\n - hidden_prototype: " << (hidden_prototype() ? "true" : "false");
1133 os << "\n - undetectable: " << (undetectable() ? "true" : "false");
1134 os << "\n - need_access_check: " << (needs_access_check() ? "true" : "false");
1135 os << "\n - instantiated: " << (instantiated() ? "true" : "false");
1136 os << "\n";
1140 void ObjectTemplateInfo::ObjectTemplateInfoPrint(std::ostream& os) { // NOLINT
1141 HeapObject::PrintHeader(os, "ObjectTemplateInfo");
1142 os << "\n - tag: " << Brief(tag());
1143 os << "\n - serial_number: " << Brief(serial_number());
1144 os << "\n - property_list: " << Brief(property_list());
1145 os << "\n - property_accessors: " << Brief(property_accessors());
1146 os << "\n - constructor: " << Brief(constructor());
1147 os << "\n - internal_field_count: " << Brief(internal_field_count());
1148 os << "\n";
1152 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT
1153 HeapObject::PrintHeader(os, "AllocationSite");
1154 os << "\n - weak_next: " << Brief(weak_next());
1155 os << "\n - dependent code: " << Brief(dependent_code());
1156 os << "\n - nested site: " << Brief(nested_site());
1157 os << "\n - memento found count: "
1159 os << "\n - memento create count: "
1161 os << "\n - pretenure decision: "
1163 os << "\n - transition_info: ";
1166 os << "Array allocation with ElementsKind " << ElementsKindToString(kind);
1168 os << "Array literal " << Brief(transition_info());
1170 os << "unknown transition_info" << Brief(transition_info());
1172 os << "\n";
1176 void AllocationMemento::AllocationMementoPrint(std::ostream& os) { // NOLINT
1177 HeapObject::PrintHeader(os, "AllocationMemento");
1178 os << "\n - allocation site: ";
1180 GetAllocationSite()->Print(os);
1182 os << "<invalid>\n";
1187 void Script::ScriptPrint(std::ostream& os) { // NOLINT
1188 HeapObject::PrintHeader(os, "Script");
1189 os << "\n - source: " << Brief(source());
1190 os << "\n - name: " << Brief(name());
1191 os << "\n - line_offset: " << line_offset();
1192 os << "\n - column_offset: " << column_offset();
1193 os << "\n - type: " << type();
1194 os << "\n - id: " << id();
1195 os << "\n - context data: " << Brief(context_data());
1196 os << "\n - wrapper: " << Brief(wrapper());
1197 os << "\n - compilation type: " << compilation_type();
1198 os << "\n - line ends: " << Brief(line_ends());
1199 os << "\n - eval from shared: " << Brief(eval_from_shared());
1200 os << "\n - eval from position: " << eval_from_position();
1201 os << "\n - shared function infos: " << Brief(shared_function_infos());
1202 os << "\n";
1206 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT
1207 HeapObject::PrintHeader(os, "DebugInfo");
1208 os << "\n - shared: " << Brief(shared());
1209 os << "\n - code: " << Brief(abstract_code());
1210 os << "\n - break_points: ";
1211 break_points()->Print(os);
1215 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT
1216 HeapObject::PrintHeader(os, "BreakPointInfo");
1217 os << "\n - code_offset: " << code_offset();
1218 os << "\n - source_position: " << source_position();
1219 os << "\n - statement_position: " << statement_position();
1220 os << "\n - break_point_objects: " << Brief(break_point_objects());
1221 os << "\n";
1225 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT
1227 if ((i & 7) == 0) os << " ";
1228 os << (((value & 1) == 0) ? "_" : "x");
1235 OFStream os(stdout);
1236 this->Print(os);
1237 os << std::flush;
1241 void LayoutDescriptor::Print(std::ostream& os) { // NOLINT
1242 os << "Layout descriptor: ";
1244 os << "<uninitialized>";
1246 os << "<all tagged>";
1248 os << "fast";
1249 PrintBitMask(os, static_cast<uint32_t>(Smi::cast(this)->value()));
1251 os << "slow";
1254 if (i > 0) os << " |";
1255 PrintBitMask(os, get_scalar(i));
1258 os << "\n";
1318 OFStream os(stdout);
1319 this->PrintDescriptors(os);
1320 os << std::flush;
1324 void DescriptorArray::PrintDescriptors(std::ostream& os) { // NOLINT
1326 os << "Descriptor array #" << number_of_descriptors();
1330 os << "\n " << i << ": " << desc;
1332 os << "\n";
1337 OFStream os(stdout);
1338 TransitionArray::PrintTransitions(os, this);
1339 os << "\n" << std::flush;
1343 void TransitionArray::PrintTransitions(std::ostream& os, Object* transitions,
1347 os << "Transition array #" << num_transitions << ":";
1352 os << "\n ";
1354 key->NamePrint(os);
1356 key->ShortPrint(os);
1358 os << ": ";
1361 os << "(transition to non-extensible)";
1363 os << "(transition to sealed)";
1365 os << "(transition to frozen)";
1367 os << "(transition to " << ElementsKindToString(target->elements_kind())
1370 os << " (transition to strict function)";
1373 os << "(transition to ";
1375 os << "immutable ";
1377 os << (details.kind() == kData ? "data" : "accessor");
1381 os << " " << Brief(value);
1383 os << "), attrs: " << details.attributes();
1385 os << " -> " << Brief(target);
1390 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1394 os << "\n - transitions";
1395 TransitionArray::PrintTransitions(os, transitions, false);