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