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) << ": [" << id << "]\n"; in PrintHeader()
40 void HeapObject::HeapObjectPrint(std::ostream& os) { // NOLINT in HeapObjectPrint() argument
45 String::cast(this)->StringPrint(os); in HeapObjectPrint()
51 Symbol::cast(this)->SymbolPrint(os); in HeapObjectPrint()
54 Map::cast(this)->MapPrint(os); in HeapObjectPrint()
57 HeapNumber::cast(this)->HeapNumberPrint(os); in HeapObjectPrint()
60 os << "<mutable "; in HeapObjectPrint()
61 HeapNumber::cast(this)->HeapNumberPrint(os); in HeapObjectPrint()
62 os << ">"; in HeapObjectPrint()
65 Simd128Value::cast(this)->Simd128ValuePrint(os); in HeapObjectPrint()
68 FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(os); in HeapObjectPrint()
71 FixedArray::cast(this)->FixedArrayPrint(os); in HeapObjectPrint()
74 ByteArray::cast(this)->ByteArrayPrint(os); in HeapObjectPrint()
77 BytecodeArray::cast(this)->BytecodeArrayPrint(os); in HeapObjectPrint()
80 TransitionArray::cast(this)->TransitionArrayPrint(os); in HeapObjectPrint()
83 FreeSpace::cast(this)->FreeSpacePrint(os); in HeapObjectPrint()
88 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \ in HeapObjectPrint()
95 os << "filler"; in HeapObjectPrint()
102 JSObject::cast(this)->JSObjectPrint(os); in HeapObjectPrint()
105 JSRegExp::cast(this)->JSRegExpPrint(os); in HeapObjectPrint()
108 Oddball::cast(this)->to_string()->Print(os); in HeapObjectPrint()
111 JSModule::cast(this)->JSModulePrint(os); in HeapObjectPrint()
114 JSBoundFunction::cast(this)->JSBoundFunctionPrint(os); in HeapObjectPrint()
117 JSFunction::cast(this)->JSFunctionPrint(os); in HeapObjectPrint()
120 JSGlobalProxy::cast(this)->JSGlobalProxyPrint(os); in HeapObjectPrint()
123 JSGlobalObject::cast(this)->JSGlobalObjectPrint(os); in HeapObjectPrint()
126 JSValue::cast(this)->JSValuePrint(os); in HeapObjectPrint()
129 JSDate::cast(this)->JSDatePrint(os); in HeapObjectPrint()
132 Code::cast(this)->CodePrint(os); in HeapObjectPrint()
135 JSProxy::cast(this)->JSProxyPrint(os); in HeapObjectPrint()
138 JSSet::cast(this)->JSSetPrint(os); in HeapObjectPrint()
141 JSMap::cast(this)->JSMapPrint(os); in HeapObjectPrint()
144 JSSetIterator::cast(this)->JSSetIteratorPrint(os); in HeapObjectPrint()
147 JSMapIterator::cast(this)->JSMapIteratorPrint(os); in HeapObjectPrint()
150 JSIteratorResult::cast(this)->JSIteratorResultPrint(os); in HeapObjectPrint()
153 JSWeakMap::cast(this)->JSWeakMapPrint(os); in HeapObjectPrint()
156 JSWeakSet::cast(this)->JSWeakSetPrint(os); in HeapObjectPrint()
159 Foreign::cast(this)->ForeignPrint(os); in HeapObjectPrint()
162 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(os); in HeapObjectPrint()
165 JSMessageObject::cast(this)->JSMessageObjectPrint(os); in HeapObjectPrint()
168 Cell::cast(this)->CellPrint(os); in HeapObjectPrint()
171 PropertyCell::cast(this)->PropertyCellPrint(os); in HeapObjectPrint()
174 WeakCell::cast(this)->WeakCellPrint(os); in HeapObjectPrint()
177 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os); in HeapObjectPrint()
180 JSTypedArray::cast(this)->JSTypedArrayPrint(os); in HeapObjectPrint()
183 JSDataView::cast(this)->JSDataViewPrint(os); in HeapObjectPrint()
187 Name::cast(this)->Name##Print(os); \ in HeapObjectPrint()
193 os << "UNKNOWN TYPE " << map()->instance_type(); in HeapObjectPrint()
200 void Simd128Value::Simd128ValuePrint(std::ostream& os) { // NOLINT in Simd128ValuePrint() argument
202 if (Is##Type()) return Type::cast(this)->Type##Print(os); in Simd128ValuePrint()
209 void Float32x4::Float32x4Print(std::ostream& os) { // NOLINT in Float32x4Print() argument
212 os << std::string(DoubleToCString(get_lane(0), buffer)) << ", " in Float32x4Print()
220 void type::type##Print(std::ostream& os) { \
223 os << std::string(IntToCString(get_lane(0), buffer)); \
225 os << ", " << std::string(IntToCString(get_lane(i), buffer)); \
238 void type::type##Print(std::ostream& os) { \
241 os << std::string(get_lane(0) ? "true" : "false"); \
243 os << ", " << std::string(get_lane(i) ? "true" : "false"); \
252 void ByteArray::ByteArrayPrint(std::ostream& os) { // NOLINT in ByteArrayPrint() argument
253 os << "byte array, data starts at " << GetDataStartAddress(); in ByteArrayPrint()
257 void BytecodeArray::BytecodeArrayPrint(std::ostream& os) { // NOLINT in BytecodeArrayPrint() argument
258 Disassemble(os); in BytecodeArrayPrint()
262 void FreeSpace::FreeSpacePrint(std::ostream& os) { // NOLINT in FreeSpacePrint() argument
263 os << "free space, size " << Size(); in FreeSpacePrint()
269 std::ostream& os) { // NOLINT in FixedTypedArrayPrint() argument
270 os << "fixed " << Traits::Designator(); in FixedTypedArrayPrint()
274 void JSObject::PrintProperties(std::ostream& os) { // NOLINT in PrintProperties() argument
278 os << "\n "; in PrintProperties()
279 descs->GetKey(i)->NamePrint(os); in PrintProperties()
280 os << ": "; in PrintProperties()
285 os << "<unboxed double> " << RawFastDoublePropertyAt(index); in PrintProperties()
287 os << Brief(RawFastPropertyAt(index)); in PrintProperties()
289 os << " (data field at offset " << index.property_index() << ")"; in PrintProperties()
294 os << " (accessor field at offset " << index.property_index() << ")"; in PrintProperties()
298 os << Brief(descs->GetConstant(i)) << " (data constant)"; in PrintProperties()
301 os << Brief(descs->GetCallbacksObject(i)) << " (accessor constant)"; in PrintProperties()
306 global_dictionary()->Print(os); in PrintProperties()
308 property_dictionary()->Print(os); in PrintProperties()
314 static void DoPrintElements(std::ostream& os, Object* object) { // NOLINT in DoPrintElements() argument
317 os << "\n " << i << ": " << p->get_scalar(i); in DoPrintElements()
322 void JSObject::PrintElements(std::ostream& os) { // NOLINT in PrintElements() argument
333 os << "\n " << i << ": " << Brief(p->get(i)); in PrintElements()
343 os << "\n " << i << ": "; in PrintElements()
345 os << "<the hole>"; in PrintElements()
347 os << p->get_scalar(i); in PrintElements()
357 DoPrintElements<Type>(os, elements()); \ in PrintElements()
374 elements()->Print(os); in PrintElements()
379 os << "\n parameter map:"; in PrintElements()
381 os << " " << (i - 2) << ":" << Brief(p->get(i)); in PrintElements()
383 os << "\n context: " << Brief(p->get(0)) in PrintElements()
391 static void JSObjectPrintHeader(std::ostream& os, JSObject* obj, in JSObjectPrintHeader() argument
393 obj->PrintHeader(os, id); in JSObjectPrintHeader()
397 os << " - map = " << reinterpret_cast<void*>(obj->map()) << " [" in JSObjectPrintHeader()
403 static void JSObjectPrintBody(std::ostream& os, JSObject* obj, // NOLINT in JSObjectPrintBody() argument
405 os << "\n {"; in JSObjectPrintBody()
406 obj->PrintProperties(os); in JSObjectPrintBody()
407 obj->PrintTransitions(os); in JSObjectPrintBody()
408 if (print_elements) obj->PrintElements(os); in JSObjectPrintBody()
409 os << "\n }\n"; in JSObjectPrintBody()
413 void JSObject::JSObjectPrint(std::ostream& os) { // NOLINT in JSObjectPrint() argument
414 JSObjectPrintHeader(os, this, "JSObject"); in JSObjectPrint()
415 JSObjectPrintBody(os, this); in JSObjectPrint()
419 void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT in JSRegExpPrint() argument
420 JSObjectPrintHeader(os, this, "JSRegExp"); in JSRegExpPrint()
421 os << "\n - data = " << Brief(data()); in JSRegExpPrint()
422 JSObjectPrintBody(os, this); in JSRegExpPrint()
426 void JSModule::JSModulePrint(std::ostream& os) { // NOLINT in JSModulePrint() argument
427 JSObjectPrintHeader(os, this, "JSModule"); in JSModulePrint()
428 os << "\n - context = " << Brief(context()); in JSModulePrint()
429 os << " - scope_info = " << Brief(scope_info()); in JSModulePrint()
430 JSObjectPrintBody(os, this); in JSModulePrint()
434 void Symbol::SymbolPrint(std::ostream& os) { // NOLINT in SymbolPrint() argument
435 HeapObject::PrintHeader(os, "Symbol"); in SymbolPrint()
436 os << " - hash: " << Hash(); in SymbolPrint()
437 os << "\n - name: " << Brief(name()); in SymbolPrint()
439 os << " (" << PrivateSymbolToName() << ")"; in SymbolPrint()
441 os << "\n - private: " << is_private(); in SymbolPrint()
442 os << "\n"; in SymbolPrint()
446 void Map::MapPrint(std::ostream& os) { // NOLINT in MapPrint() argument
447 HeapObject::PrintHeader(os, "Map"); in MapPrint()
448 os << " - type: " << instance_type() << "\n"; in MapPrint()
449 os << " - instance size: " << instance_size() << "\n"; in MapPrint()
451 os << " - inobject properties: " << GetInObjectProperties() << "\n"; in MapPrint()
453 os << " - elements kind: " << ElementsKindToString(elements_kind()) << "\n"; in MapPrint()
454 os << " - unused property fields: " << unused_property_fields() << "\n"; in MapPrint()
455 if (is_deprecated()) os << " - deprecated_map\n"; in MapPrint()
456 if (is_stable()) os << " - stable_map\n"; in MapPrint()
457 if (is_dictionary_map()) os << " - dictionary_map\n"; in MapPrint()
458 if (is_hidden_prototype()) os << " - hidden_prototype\n"; in MapPrint()
459 if (has_named_interceptor()) os << " - named_interceptor\n"; in MapPrint()
460 if (has_indexed_interceptor()) os << " - indexed_interceptor\n"; in MapPrint()
461 if (is_undetectable()) os << " - undetectable\n"; in MapPrint()
462 if (is_callable()) os << " - callable\n"; in MapPrint()
463 if (is_constructor()) os << " - constructor\n"; in MapPrint()
464 if (is_access_check_needed()) os << " - access_check_needed\n"; in MapPrint()
465 if (!is_extensible()) os << " - non-extensible\n"; in MapPrint()
466 if (is_observed()) os << " - observed\n"; in MapPrint()
467 if (is_strong()) os << " - strong_map\n"; in MapPrint()
469 os << " - prototype_map\n"; in MapPrint()
470 os << " - prototype info: " << Brief(prototype_info()); in MapPrint()
472 os << " - back pointer: " << Brief(GetBackPointer()); in MapPrint()
474 os << "\n - instance descriptors " << (owns_descriptors() ? "(own) " : "") in MapPrint()
478 os << "\n - layout descriptor: " << Brief(layout_descriptor()); in MapPrint()
482 os << "\n - transitions #" << nof_transitions << ": " in MapPrint()
484 TransitionArray::PrintTransitions(os, raw_transitions(), false); in MapPrint()
486 os << "\n - prototype: " << Brief(prototype()); in MapPrint()
487 os << "\n - constructor: " << Brief(GetConstructor()); in MapPrint()
488 os << "\n - code cache: " << Brief(code_cache()); in MapPrint()
489 os << "\n - dependent code: " << Brief(dependent_code()); in MapPrint()
490 os << "\n - construction counter: " << construction_counter(); in MapPrint()
491 os << "\n"; in MapPrint()
495 void CodeCache::CodeCachePrint(std::ostream& os) { // NOLINT in CodeCachePrint() argument
496 HeapObject::PrintHeader(os, "CodeCache"); in CodeCachePrint()
497 os << "\n - default_cache: " << Brief(default_cache()); in CodeCachePrint()
498 os << "\n - normal_type_cache: " << Brief(normal_type_cache()); in CodeCachePrint()
503 std::ostream& os) { // NOLINT in PolymorphicCodeCachePrint() argument
504 HeapObject::PrintHeader(os, "PolymorphicCodeCache"); in PolymorphicCodeCachePrint()
505 os << "\n - cache: " << Brief(cache()); in PolymorphicCodeCachePrint()
509 void TypeFeedbackInfo::TypeFeedbackInfoPrint(std::ostream& os) { // NOLINT in TypeFeedbackInfoPrint() argument
510 HeapObject::PrintHeader(os, "TypeFeedbackInfo"); in TypeFeedbackInfoPrint()
511 os << " - ic_total_count: " << ic_total_count() in TypeFeedbackInfoPrint()
518 std::ostream& os) { // NOLINT in AliasedArgumentsEntryPrint() argument
519 HeapObject::PrintHeader(os, "AliasedArgumentsEntry"); in AliasedArgumentsEntryPrint()
520 os << "\n - aliased_context_slot: " << aliased_context_slot(); in AliasedArgumentsEntryPrint()
524 void FixedArray::FixedArrayPrint(std::ostream& os) { // NOLINT in FixedArrayPrint() argument
525 HeapObject::PrintHeader(os, "FixedArray"); in FixedArrayPrint()
526 os << " - length: " << length(); in FixedArrayPrint()
528 os << "\n [" << i << "]: " << Brief(get(i)); in FixedArrayPrint()
530 os << "\n"; in FixedArrayPrint()
534 void FixedDoubleArray::FixedDoubleArrayPrint(std::ostream& os) { // NOLINT in FixedDoubleArrayPrint() argument
535 HeapObject::PrintHeader(os, "FixedDoubleArray"); in FixedDoubleArrayPrint()
536 os << " - length: " << length(); in FixedDoubleArrayPrint()
538 os << "\n [" << i << "]: "; in FixedDoubleArrayPrint()
540 os << "<the hole>"; in FixedDoubleArrayPrint()
542 os << get_scalar(i); in FixedDoubleArrayPrint()
545 os << "\n"; in FixedDoubleArrayPrint()
549 void TransitionArray::TransitionArrayPrint(std::ostream& os) { // NOLINT in TransitionArrayPrint() argument
550 HeapObject::PrintHeader(os, "TransitionArray"); in TransitionArrayPrint()
551 os << " - capacity: " << length(); in TransitionArrayPrint()
553 os << "\n [" << i << "]: " << Brief(get(i)); in TransitionArrayPrint()
554 if (i == kNextLinkIndex) os << " (next link)"; in TransitionArrayPrint()
555 if (i == kPrototypeTransitionsIndex) os << " (prototype transitions)"; in TransitionArrayPrint()
556 if (i == kTransitionLengthIndex) os << " (number of transitions)"; in TransitionArrayPrint()
558 os << "\n"; in TransitionArrayPrint()
563 OFStream os(stdout); in Print() local
564 TypeFeedbackMetadataPrint(os); in Print()
565 os << std::flush; in Print()
570 std::ostream& os) { // NOLINT in TypeFeedbackMetadataPrint() argument
571 HeapObject::PrintHeader(os, "TypeFeedbackMetadata"); in TypeFeedbackMetadataPrint()
572 os << " - length: " << length(); in TypeFeedbackMetadataPrint()
574 os << " (empty)\n"; in TypeFeedbackMetadataPrint()
582 os << "\n Slot " << slot << " " << kind; in TypeFeedbackMetadataPrint()
584 os << "\n"; in TypeFeedbackMetadataPrint()
589 OFStream os(stdout); in Print() local
590 TypeFeedbackVectorPrint(os); in Print()
591 os << std::flush; in Print()
595 void TypeFeedbackVector::TypeFeedbackVectorPrint(std::ostream& os) { // NOLINT in TypeFeedbackVectorPrint() argument
596 HeapObject::PrintHeader(os, "TypeFeedbackVector"); in TypeFeedbackVectorPrint()
597 os << " - length: " << length(); in TypeFeedbackVectorPrint()
599 os << " (empty)\n"; in TypeFeedbackVectorPrint()
608 os << "\n Slot " << slot << " " << kind << " "; in TypeFeedbackVectorPrint()
612 os << Code::ICState2String(nexus.StateFromFeedback()); in TypeFeedbackVectorPrint()
617 os << Code::ICState2String(nexus.StateFromFeedback()); in TypeFeedbackVectorPrint()
622 os << Code::ICState2String(nexus.StateFromFeedback()); in TypeFeedbackVectorPrint()
627 os << Code::ICState2String(nexus.StateFromFeedback()); in TypeFeedbackVectorPrint()
632 os << Code::ICState2String(nexus.StateFromFeedback()); in TypeFeedbackVectorPrint()
646 os << "\n [" << index << "]: " << Brief(get(index)); in TypeFeedbackVectorPrint()
649 os << "\n"; in TypeFeedbackVectorPrint()
653 void JSValue::JSValuePrint(std::ostream& os) { // NOLINT in JSValuePrint() argument
654 JSObjectPrintHeader(os, this, "JSValue"); in JSValuePrint()
655 os << "\n - value = " << Brief(value()); in JSValuePrint()
656 JSObjectPrintBody(os, this); in JSValuePrint()
660 void JSMessageObject::JSMessageObjectPrint(std::ostream& os) { // NOLINT in JSMessageObjectPrint() argument
661 JSObjectPrintHeader(os, this, "JSMessageObject"); in JSMessageObjectPrint()
662 os << "\n - type: " << type(); in JSMessageObjectPrint()
663 os << "\n - arguments: " << Brief(argument()); in JSMessageObjectPrint()
664 os << "\n - start_position: " << start_position(); in JSMessageObjectPrint()
665 os << "\n - end_position: " << end_position(); in JSMessageObjectPrint()
666 os << "\n - script: " << Brief(script()); in JSMessageObjectPrint()
667 os << "\n - stack_frames: " << Brief(stack_frames()); in JSMessageObjectPrint()
668 JSObjectPrintBody(os, this); in JSMessageObjectPrint()
672 void String::StringPrint(std::ostream& os) { // NOLINT in StringPrint() argument
674 os << "#"; in StringPrint()
676 os << "c\""; in StringPrint()
678 os << "\""; in StringPrint()
689 os << AsUC16(Get(i)); in StringPrint()
692 os << truncated_epilogue; in StringPrint()
695 if (!StringShape(this).IsInternalized()) os << "\""; in StringPrint()
699 void Name::NamePrint(std::ostream& os) { // NOLINT in NamePrint() argument
701 String::cast(this)->StringPrint(os); in NamePrint()
703 Symbol::cast(this)->name()->Print(os); in NamePrint()
705 os << Brief(this); in NamePrint()
715 void JSDate::JSDatePrint(std::ostream& os) { // NOLINT in JSDatePrint() argument
716 JSObjectPrintHeader(os, this, "JSDate"); in JSDatePrint()
717 os << "\n - value = " << Brief(value()); in JSDatePrint()
719 os << "\n - time = NaN\n"; in JSDatePrint()
732 os << buf.start(); in JSDatePrint()
734 JSObjectPrintBody(os, this); in JSDatePrint()
738 void JSProxy::JSProxyPrint(std::ostream& os) { // NOLINT in JSProxyPrint() argument
739 HeapObject::PrintHeader(os, "JSProxy"); in JSProxyPrint()
740 os << " - map = " << reinterpret_cast<void*>(map()); in JSProxyPrint()
741 os << "\n - target = "; in JSProxyPrint()
742 target()->ShortPrint(os); in JSProxyPrint()
743 os << "\n - handler = "; in JSProxyPrint()
744 handler()->ShortPrint(os); in JSProxyPrint()
745 os << "\n - hash = "; in JSProxyPrint()
746 hash()->ShortPrint(os); in JSProxyPrint()
747 os << "\n"; in JSProxyPrint()
751 void JSSet::JSSetPrint(std::ostream& os) { // NOLINT in JSSetPrint() argument
752 JSObjectPrintHeader(os, this, "JSSet"); in JSSetPrint()
753 os << " - table = " << Brief(table()); in JSSetPrint()
754 JSObjectPrintBody(os, this); in JSSetPrint()
758 void JSMap::JSMapPrint(std::ostream& os) { // NOLINT in JSMapPrint() argument
759 JSObjectPrintHeader(os, this, "JSMap"); in JSMapPrint()
760 os << " - table = " << Brief(table()); in JSMapPrint()
761 JSObjectPrintBody(os, this); in JSMapPrint()
768 std::ostream& os) { // NOLINT in OrderedHashTableIteratorPrint() argument
769 os << "\n - table = " << Brief(table()); in OrderedHashTableIteratorPrint()
770 os << "\n - index = " << Brief(index()); in OrderedHashTableIteratorPrint()
771 os << "\n - kind = " << Brief(kind()); in OrderedHashTableIteratorPrint()
772 os << "\n"; in OrderedHashTableIteratorPrint()
778 OrderedHashSet>::OrderedHashTableIteratorPrint(std::ostream& os); // NOLINT
783 OrderedHashMap>::OrderedHashTableIteratorPrint(std::ostream& os); // NOLINT
786 void JSSetIterator::JSSetIteratorPrint(std::ostream& os) { // NOLINT in JSSetIteratorPrint() argument
787 JSObjectPrintHeader(os, this, "JSSetIterator"); in JSSetIteratorPrint()
788 OrderedHashTableIteratorPrint(os); in JSSetIteratorPrint()
792 void JSMapIterator::JSMapIteratorPrint(std::ostream& os) { // NOLINT in JSMapIteratorPrint() argument
793 JSObjectPrintHeader(os, this, "JSMapIterator"); in JSMapIteratorPrint()
794 OrderedHashTableIteratorPrint(os); in JSMapIteratorPrint()
798 void JSIteratorResult::JSIteratorResultPrint(std::ostream& os) { // NOLINT in JSIteratorResultPrint() argument
799 JSObjectPrintHeader(os, this, "JSIteratorResult"); in JSIteratorResultPrint()
800 os << "\n - done = " << Brief(done()); in JSIteratorResultPrint()
801 os << "\n - value = " << Brief(value()); in JSIteratorResultPrint()
802 os << "\n"; in JSIteratorResultPrint()
806 void JSWeakMap::JSWeakMapPrint(std::ostream& os) { // NOLINT in JSWeakMapPrint() argument
807 JSObjectPrintHeader(os, this, "JSWeakMap"); in JSWeakMapPrint()
808 os << "\n - table = " << Brief(table()); in JSWeakMapPrint()
809 JSObjectPrintBody(os, this); in JSWeakMapPrint()
813 void JSWeakSet::JSWeakSetPrint(std::ostream& os) { // NOLINT in JSWeakSetPrint() argument
814 JSObjectPrintHeader(os, this, "JSWeakSet"); in JSWeakSetPrint()
815 os << "\n - table = " << Brief(table()); in JSWeakSetPrint()
816 JSObjectPrintBody(os, this); in JSWeakSetPrint()
820 void JSArrayBuffer::JSArrayBufferPrint(std::ostream& os) { // NOLINT in JSArrayBufferPrint() argument
821 JSObjectPrintHeader(os, this, "JSArrayBuffer"); in JSArrayBufferPrint()
822 os << "\n - backing_store = " << backing_store(); in JSArrayBufferPrint()
823 os << "\n - byte_length = " << Brief(byte_length()); in JSArrayBufferPrint()
824 if (was_neutered()) os << " - neutered\n"; in JSArrayBufferPrint()
825 JSObjectPrintBody(os, this, !was_neutered()); in JSArrayBufferPrint()
829 void JSTypedArray::JSTypedArrayPrint(std::ostream& os) { // NOLINT in JSTypedArrayPrint() argument
830 JSObjectPrintHeader(os, this, "JSTypedArray"); in JSTypedArrayPrint()
831 os << "\n - buffer = " << Brief(buffer()); in JSTypedArrayPrint()
832 os << "\n - byte_offset = " << Brief(byte_offset()); in JSTypedArrayPrint()
833 os << "\n - byte_length = " << Brief(byte_length()); in JSTypedArrayPrint()
834 os << "\n - length = " << Brief(length()); in JSTypedArrayPrint()
835 if (WasNeutered()) os << " - neutered\n"; in JSTypedArrayPrint()
836 JSObjectPrintBody(os, this, !WasNeutered()); in JSTypedArrayPrint()
840 void JSDataView::JSDataViewPrint(std::ostream& os) { // NOLINT in JSDataViewPrint() argument
841 JSObjectPrintHeader(os, this, "JSDataView"); in JSDataViewPrint()
842 os << "\n - buffer =" << Brief(buffer()); in JSDataViewPrint()
843 os << "\n - byte_offset = " << Brief(byte_offset()); in JSDataViewPrint()
844 os << "\n - byte_length = " << Brief(byte_length()); in JSDataViewPrint()
845 if (WasNeutered()) os << " - neutered\n"; in JSDataViewPrint()
846 JSObjectPrintBody(os, this, !WasNeutered()); in JSDataViewPrint()
850 void JSBoundFunction::JSBoundFunctionPrint(std::ostream& os) { // NOLINT in JSBoundFunctionPrint() argument
851 JSObjectPrintHeader(os, this, "JSBoundFunction"); in JSBoundFunctionPrint()
852 os << "\n - bound_target_function = " << Brief(bound_target_function()); in JSBoundFunctionPrint()
853 os << "\n - bound_this = " << Brief(bound_this()); in JSBoundFunctionPrint()
854 os << "\n - bound_arguments = " << Brief(bound_arguments()); in JSBoundFunctionPrint()
855 JSObjectPrintBody(os, this); in JSBoundFunctionPrint()
859 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT in JSFunctionPrint() argument
860 JSObjectPrintHeader(os, this, "Function"); in JSFunctionPrint()
861 os << "\n - initial_map = "; in JSFunctionPrint()
862 if (has_initial_map()) os << Brief(initial_map()); in JSFunctionPrint()
863 os << "\n - shared_info = " << Brief(shared()); in JSFunctionPrint()
864 os << "\n - name = " << Brief(shared()->name()); in JSFunctionPrint()
866 os << "\n - generator"; in JSFunctionPrint()
868 os << "\n - context = " << Brief(context()); in JSFunctionPrint()
869 os << "\n - literals = " << Brief(literals()); in JSFunctionPrint()
870 os << "\n - code = " << Brief(code()); in JSFunctionPrint()
871 JSObjectPrintBody(os, this); in JSFunctionPrint()
875 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT in SharedFunctionInfoPrint() argument
876 HeapObject::PrintHeader(os, "SharedFunctionInfo"); in SharedFunctionInfoPrint()
877 os << " - name: " << Brief(name()); in SharedFunctionInfoPrint()
878 os << "\n - expected_nof_properties: " << expected_nof_properties(); in SharedFunctionInfoPrint()
879 os << "\n - ast_node_count: " << ast_node_count(); in SharedFunctionInfoPrint()
880 os << "\n - instance class name = "; in SharedFunctionInfoPrint()
881 instance_class_name()->Print(os); in SharedFunctionInfoPrint()
882 os << "\n - code = " << Brief(code()); in SharedFunctionInfoPrint()
884 os << "\n - source code = "; in SharedFunctionInfoPrint()
890 os << source_string.get(); in SharedFunctionInfoPrint()
895 os << "\n - function token position = " << function_token_position(); in SharedFunctionInfoPrint()
896 os << "\n - start position = " << start_position(); in SharedFunctionInfoPrint()
897 os << "\n - end position = " << end_position(); in SharedFunctionInfoPrint()
898 os << "\n - is expression = " << is_expression(); in SharedFunctionInfoPrint()
899 os << "\n - debug info = " << Brief(debug_info()); in SharedFunctionInfoPrint()
900 os << "\n - length = " << length(); in SharedFunctionInfoPrint()
901 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); in SharedFunctionInfoPrint()
902 os << "\n - feedback_vector = "; in SharedFunctionInfoPrint()
903 feedback_vector()->TypeFeedbackVectorPrint(os); in SharedFunctionInfoPrint()
905 os << "\n - bytecode_array = " << bytecode_array(); in SharedFunctionInfoPrint()
907 os << "\n"; in SharedFunctionInfoPrint()
911 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT in JSGlobalProxyPrint() argument
912 os << "global_proxy "; in JSGlobalProxyPrint()
913 JSObjectPrint(os); in JSGlobalProxyPrint()
914 os << "native context : " << Brief(native_context()); in JSGlobalProxyPrint()
915 os << "\n"; in JSGlobalProxyPrint()
919 void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT in JSGlobalObjectPrint() argument
920 os << "global "; in JSGlobalObjectPrint()
921 JSObjectPrint(os); in JSGlobalObjectPrint()
922 os << "native context : " << Brief(native_context()); in JSGlobalObjectPrint()
923 os << "\n"; in JSGlobalObjectPrint()
927 void Cell::CellPrint(std::ostream& os) { // NOLINT in CellPrint() argument
928 HeapObject::PrintHeader(os, "Cell"); in CellPrint()
929 os << " - value: " << Brief(value()); in CellPrint()
930 os << "\n"; in CellPrint()
934 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT in PropertyCellPrint() argument
935 HeapObject::PrintHeader(os, "PropertyCell"); in PropertyCellPrint()
936 os << " - value: " << Brief(value()); in PropertyCellPrint()
937 os << "\n - details: " << property_details(); in PropertyCellPrint()
938 os << "\n"; in PropertyCellPrint()
942 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT in WeakCellPrint() argument
943 HeapObject::PrintHeader(os, "WeakCell"); in WeakCellPrint()
945 os << "\n - cleared"; in WeakCellPrint()
947 os << "\n - value: " << Brief(value()); in WeakCellPrint()
949 os << "\n"; in WeakCellPrint()
953 void Code::CodePrint(std::ostream& os) { // NOLINT in CodePrint() argument
954 HeapObject::PrintHeader(os, "Code"); in CodePrint()
957 Disassemble(NULL, os); in CodePrint()
963 void Foreign::ForeignPrint(std::ostream& os) { // NOLINT in ForeignPrint() argument
964 os << "foreign address : " << foreign_address(); in ForeignPrint()
965 os << "\n"; in ForeignPrint()
970 std::ostream& os) { // NOLINT in ExecutableAccessorInfoPrint() argument
971 HeapObject::PrintHeader(os, "ExecutableAccessorInfo"); in ExecutableAccessorInfoPrint()
972 os << "\n - name: " << Brief(name()); in ExecutableAccessorInfoPrint()
973 os << "\n - flag: " << flag(); in ExecutableAccessorInfoPrint()
974 os << "\n - getter: " << Brief(getter()); in ExecutableAccessorInfoPrint()
975 os << "\n - setter: " << Brief(setter()); in ExecutableAccessorInfoPrint()
976 os << "\n - data: " << Brief(data()); in ExecutableAccessorInfoPrint()
977 os << "\n"; in ExecutableAccessorInfoPrint()
981 void Box::BoxPrint(std::ostream& os) { // NOLINT in BoxPrint() argument
982 HeapObject::PrintHeader(os, "Box"); in BoxPrint()
983 os << "\n - value: " << Brief(value()); in BoxPrint()
984 os << "\n"; in BoxPrint()
988 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT in PrototypeInfoPrint() argument
989 HeapObject::PrintHeader(os, "PrototypeInfo"); in PrototypeInfoPrint()
990 os << "\n - prototype users: " << Brief(prototype_users()); in PrototypeInfoPrint()
991 os << "\n - registry slot: " << registry_slot(); in PrototypeInfoPrint()
992 os << "\n - validity cell: " << Brief(validity_cell()); in PrototypeInfoPrint()
993 os << "\n"; in PrototypeInfoPrint()
998 SloppyBlockWithEvalContextExtensionPrint(std::ostream& os) { // NOLINT in SloppyBlockWithEvalContextExtensionPrint() argument
999 HeapObject::PrintHeader(os, "SloppyBlockWithEvalContextExtension"); in SloppyBlockWithEvalContextExtensionPrint()
1000 os << "\n - scope_info: " << Brief(scope_info()); in SloppyBlockWithEvalContextExtensionPrint()
1001 os << "\n - extension: " << Brief(extension()); in SloppyBlockWithEvalContextExtensionPrint()
1002 os << "\n"; in SloppyBlockWithEvalContextExtensionPrint()
1006 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT in AccessorPairPrint() argument
1007 HeapObject::PrintHeader(os, "AccessorPair"); in AccessorPairPrint()
1008 os << "\n - getter: " << Brief(getter()); in AccessorPairPrint()
1009 os << "\n - setter: " << Brief(setter()); in AccessorPairPrint()
1010 os << "\n"; in AccessorPairPrint()
1014 void AccessCheckInfo::AccessCheckInfoPrint(std::ostream& os) { // NOLINT in AccessCheckInfoPrint() argument
1015 HeapObject::PrintHeader(os, "AccessCheckInfo"); in AccessCheckInfoPrint()
1016 os << "\n - named_callback: " << Brief(named_callback()); in AccessCheckInfoPrint()
1017 os << "\n - indexed_callback: " << Brief(indexed_callback()); in AccessCheckInfoPrint()
1018 os << "\n - callback: " << Brief(callback()); in AccessCheckInfoPrint()
1019 os << "\n - data: " << Brief(data()); in AccessCheckInfoPrint()
1020 os << "\n"; in AccessCheckInfoPrint()
1024 void InterceptorInfo::InterceptorInfoPrint(std::ostream& os) { // NOLINT in InterceptorInfoPrint() argument
1025 HeapObject::PrintHeader(os, "InterceptorInfo"); in InterceptorInfoPrint()
1026 os << "\n - getter: " << Brief(getter()); in InterceptorInfoPrint()
1027 os << "\n - setter: " << Brief(setter()); in InterceptorInfoPrint()
1028 os << "\n - query: " << Brief(query()); in InterceptorInfoPrint()
1029 os << "\n - deleter: " << Brief(deleter()); in InterceptorInfoPrint()
1030 os << "\n - enumerator: " << Brief(enumerator()); in InterceptorInfoPrint()
1031 os << "\n - data: " << Brief(data()); in InterceptorInfoPrint()
1032 os << "\n"; in InterceptorInfoPrint()
1036 void CallHandlerInfo::CallHandlerInfoPrint(std::ostream& os) { // NOLINT in CallHandlerInfoPrint() argument
1037 HeapObject::PrintHeader(os, "CallHandlerInfo"); in CallHandlerInfoPrint()
1038 os << "\n - callback: " << Brief(callback()); in CallHandlerInfoPrint()
1039 os << "\n - data: " << Brief(data()); in CallHandlerInfoPrint()
1040 os << "\n"; in CallHandlerInfoPrint()
1045 std::ostream& os) { // NOLINT in FunctionTemplateInfoPrint() argument
1046 HeapObject::PrintHeader(os, "FunctionTemplateInfo"); in FunctionTemplateInfoPrint()
1047 os << "\n - class name: " << Brief(class_name()); in FunctionTemplateInfoPrint()
1048 os << "\n - tag: " << Brief(tag()); in FunctionTemplateInfoPrint()
1049 os << "\n - property_list: " << Brief(property_list()); in FunctionTemplateInfoPrint()
1050 os << "\n - serial_number: " << Brief(serial_number()); in FunctionTemplateInfoPrint()
1051 os << "\n - call_code: " << Brief(call_code()); in FunctionTemplateInfoPrint()
1052 os << "\n - property_accessors: " << Brief(property_accessors()); in FunctionTemplateInfoPrint()
1053 os << "\n - prototype_template: " << Brief(prototype_template()); in FunctionTemplateInfoPrint()
1054 os << "\n - parent_template: " << Brief(parent_template()); in FunctionTemplateInfoPrint()
1055 os << "\n - named_property_handler: " << Brief(named_property_handler()); in FunctionTemplateInfoPrint()
1056 os << "\n - indexed_property_handler: " << Brief(indexed_property_handler()); in FunctionTemplateInfoPrint()
1057 os << "\n - instance_template: " << Brief(instance_template()); in FunctionTemplateInfoPrint()
1058 os << "\n - signature: " << Brief(signature()); in FunctionTemplateInfoPrint()
1059 os << "\n - access_check_info: " << Brief(access_check_info()); in FunctionTemplateInfoPrint()
1060 os << "\n - hidden_prototype: " << (hidden_prototype() ? "true" : "false"); in FunctionTemplateInfoPrint()
1061 os << "\n - undetectable: " << (undetectable() ? "true" : "false"); in FunctionTemplateInfoPrint()
1062 os << "\n - need_access_check: " << (needs_access_check() ? "true" : "false"); in FunctionTemplateInfoPrint()
1063 os << "\n - instantiated: " << (instantiated() ? "true" : "false"); in FunctionTemplateInfoPrint()
1064 os << "\n"; in FunctionTemplateInfoPrint()
1068 void ObjectTemplateInfo::ObjectTemplateInfoPrint(std::ostream& os) { // NOLINT in ObjectTemplateInfoPrint() argument
1069 HeapObject::PrintHeader(os, "ObjectTemplateInfo"); in ObjectTemplateInfoPrint()
1070 os << " - tag: " << Brief(tag()); in ObjectTemplateInfoPrint()
1071 os << "\n - property_list: " << Brief(property_list()); in ObjectTemplateInfoPrint()
1072 os << "\n - property_accessors: " << Brief(property_accessors()); in ObjectTemplateInfoPrint()
1073 os << "\n - constructor: " << Brief(constructor()); in ObjectTemplateInfoPrint()
1074 os << "\n - internal_field_count: " << Brief(internal_field_count()); in ObjectTemplateInfoPrint()
1075 os << "\n"; in ObjectTemplateInfoPrint()
1079 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT in AllocationSitePrint() argument
1080 HeapObject::PrintHeader(os, "AllocationSite"); in AllocationSitePrint()
1081 os << " - weak_next: " << Brief(weak_next()); in AllocationSitePrint()
1082 os << "\n - dependent code: " << Brief(dependent_code()); in AllocationSitePrint()
1083 os << "\n - nested site: " << Brief(nested_site()); in AllocationSitePrint()
1084 os << "\n - memento found count: " in AllocationSitePrint()
1086 os << "\n - memento create count: " in AllocationSitePrint()
1088 os << "\n - pretenure decision: " in AllocationSitePrint()
1090 os << "\n - transition_info: "; in AllocationSitePrint()
1093 os << "Array allocation with ElementsKind " << ElementsKindToString(kind); in AllocationSitePrint()
1095 os << "Array literal " << Brief(transition_info()); in AllocationSitePrint()
1097 os << "unknown transition_info" << Brief(transition_info()); in AllocationSitePrint()
1099 os << "\n"; in AllocationSitePrint()
1103 void AllocationMemento::AllocationMementoPrint(std::ostream& os) { // NOLINT in AllocationMementoPrint() argument
1104 HeapObject::PrintHeader(os, "AllocationMemento"); in AllocationMementoPrint()
1105 os << " - allocation site: "; in AllocationMementoPrint()
1107 GetAllocationSite()->Print(os); in AllocationMementoPrint()
1109 os << "<invalid>\n"; in AllocationMementoPrint()
1114 void Script::ScriptPrint(std::ostream& os) { // NOLINT in ScriptPrint() argument
1115 HeapObject::PrintHeader(os, "Script"); in ScriptPrint()
1116 os << "\n - source: " << Brief(source()); in ScriptPrint()
1117 os << "\n - name: " << Brief(name()); in ScriptPrint()
1118 os << "\n - line_offset: " << line_offset(); in ScriptPrint()
1119 os << "\n - column_offset: " << column_offset(); in ScriptPrint()
1120 os << "\n - type: " << type(); in ScriptPrint()
1121 os << "\n - id: " << id(); in ScriptPrint()
1122 os << "\n - context data: " << Brief(context_data()); in ScriptPrint()
1123 os << "\n - wrapper: " << Brief(wrapper()); in ScriptPrint()
1124 os << "\n - compilation type: " << compilation_type(); in ScriptPrint()
1125 os << "\n - line ends: " << Brief(line_ends()); in ScriptPrint()
1126 os << "\n - eval from shared: " << Brief(eval_from_shared()); in ScriptPrint()
1127 os << "\n - eval from instructions offset: " in ScriptPrint()
1129 os << "\n - shared function infos: " << Brief(shared_function_infos()); in ScriptPrint()
1130 os << "\n"; in ScriptPrint()
1134 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT in DebugInfoPrint() argument
1135 HeapObject::PrintHeader(os, "DebugInfo"); in DebugInfoPrint()
1136 os << "\n - shared: " << Brief(shared()); in DebugInfoPrint()
1137 os << "\n - code: " << Brief(code()); in DebugInfoPrint()
1138 os << "\n - break_points: "; in DebugInfoPrint()
1139 break_points()->Print(os); in DebugInfoPrint()
1143 void BreakPointInfo::BreakPointInfoPrint(std::ostream& os) { // NOLINT in BreakPointInfoPrint() argument
1144 HeapObject::PrintHeader(os, "BreakPointInfo"); in BreakPointInfoPrint()
1145 os << "\n - code_position: " << code_position(); in BreakPointInfoPrint()
1146 os << "\n - source_position: " << source_position(); in BreakPointInfoPrint()
1147 os << "\n - statement_position: " << statement_position(); in BreakPointInfoPrint()
1148 os << "\n - break_point_objects: " << Brief(break_point_objects()); in BreakPointInfoPrint()
1149 os << "\n"; in BreakPointInfoPrint()
1153 static void PrintBitMask(std::ostream& os, uint32_t value) { // NOLINT in PrintBitMask() argument
1155 if ((i & 7) == 0) os << " "; in PrintBitMask()
1156 os << (((value & 1) == 0) ? "_" : "x"); in PrintBitMask()
1163 OFStream os(stdout); in Print() local
1164 this->Print(os); in Print()
1165 os << std::flush; in Print()
1169 void LayoutDescriptor::Print(std::ostream& os) { // NOLINT in Print() argument
1170 os << "Layout descriptor: "; in Print()
1172 os << "<uninitialized>"; in Print()
1174 os << "<all tagged>"; in Print()
1176 os << "fast"; in Print()
1177 PrintBitMask(os, static_cast<uint32_t>(Smi::cast(this)->value())); in Print()
1179 os << "slow"; in Print()
1182 if (i > 0) os << " |"; in Print()
1183 PrintBitMask(os, get_scalar(i)); in Print()
1186 os << "\n"; in Print()
1246 OFStream os(stdout); in Print() local
1247 this->PrintDescriptors(os); in Print()
1248 os << std::flush; in Print()
1252 void DescriptorArray::PrintDescriptors(std::ostream& os) { // NOLINT in PrintDescriptors() argument
1254 os << "Descriptor array #" << number_of_descriptors(); in PrintDescriptors()
1258 os << "\n " << i << ": " << desc; in PrintDescriptors()
1260 os << "\n"; in PrintDescriptors()
1265 OFStream os(stdout); in Print() local
1266 TransitionArray::PrintTransitions(os, this); in Print()
1267 os << "\n" << std::flush; in Print()
1271 void TransitionArray::PrintTransitions(std::ostream& os, Object* transitions, in PrintTransitions() argument
1275 os << "Transition array #" << num_transitions << ":"; in PrintTransitions()
1280 os << "\n "; in PrintTransitions()
1282 key->NamePrint(os); in PrintTransitions()
1284 key->ShortPrint(os); in PrintTransitions()
1286 os << ": "; in PrintTransitions()
1289 os << "(transition to non-extensible)"; in PrintTransitions()
1291 os << "(transition to sealed)"; in PrintTransitions()
1293 os << "(transition to frozen)"; in PrintTransitions()
1295 os << "(transition to " << ElementsKindToString(target->elements_kind()) in PrintTransitions()
1298 os << " (transition to strict function)"; in PrintTransitions()
1300 os << " (transition to strong function)"; in PrintTransitions()
1302 os << " (transition to Object.observe)"; in PrintTransitions()
1305 os << "(transition to "; in PrintTransitions()
1307 os << "immutable "; in PrintTransitions()
1309 os << (details.kind() == kData ? "data" : "accessor"); in PrintTransitions()
1313 os << " " << Brief(value); in PrintTransitions()
1315 os << "), attrs: " << details.attributes(); in PrintTransitions()
1317 os << " -> " << Brief(target); in PrintTransitions()
1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT in PrintTransitions() argument
1326 os << "\n - transitions"; in PrintTransitions()
1327 TransitionArray::PrintTransitions(os, transitions, false); in PrintTransitions()